# Maintainer: Natanael Copa pkgname=ccache pkgver=3.3.2 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.xz" builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$builddir" update_config_sub || return 1 } build () { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ || 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="2767d8f88f5ec218983a2f05c9e20df2 ccache-3.3.2.tar.xz" sha256sums="907685cb23d8f82074b8d1a9b4ebabb36914d151ac7b96a840c68c08d1a14530 ccache-3.3.2.tar.xz" sha512sums="297a0b59c507df2609aac725a68ba2e1cf4775b0db97d8e6f37de709a9db74ccb9e93b40c1db39376036efb37de88dbb712d9e352217f9b4f1856d5e98ade6d1 ccache-3.3.2.tar.xz"