mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-24 09:11:34 +01:00
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=ccache
|
|
pkgver=3.2.4
|
|
pkgrel=0
|
|
pkgdesc="A fast C/C++ compiler cache"
|
|
url="http://ccache.samba.org/"
|
|
arch="all"
|
|
license="GPL3+"
|
|
depends=""
|
|
makedepends=""
|
|
subpackages="$pkgname-doc"
|
|
source="http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
prepare() {
|
|
cd "$_builddir"
|
|
update_config_sub || return 1
|
|
}
|
|
|
|
build () {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
install -Dm 755 ccache "$pkgdir"/usr/bin/ccache || return 1
|
|
install -Dm 644 ccache.1 "$pkgdir"/usr/share/man/man1/ccache.1 || return 1
|
|
mkdir -p "$pkgdir"/usr/lib/ccache/bin
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/cc
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/gcc
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/g++
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/cpp
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/c++
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-cc
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-gcc
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-g++
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-cpp
|
|
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/${CHOST}-c++
|
|
}
|
|
|
|
md5sums="8112dd77f2bbb60b60a8a846cf318a0f ccache-3.2.4.tar.gz"
|
|
sha256sums="bf07d13e3c806971ea01af1d5a8db50319af434c920b4e4b742229aaa04d270c ccache-3.2.4.tar.gz"
|
|
sha512sums="4b0470f299ce3310dcd5ce67b54860b5718410b46f6fa68623e4030a9b8927f24991a658784dfd4780bd21d28cd1e391193c89016079c469ac59e70f40604e57 ccache-3.2.4.tar.gz"
|