# Maintainer: Natanael Copa pkgname=ccache pkgver=3.3.1 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="72a3db9788bcb615b251b4bde7247598 ccache-3.3.1.tar.xz" sha256sums="c6d87a49cc6d7639636d289ed9a5f560bc2acf7ab698fe8ee14e9c9f15ba41c6 ccache-3.3.1.tar.xz" sha512sums="a7849d53257f7e72256a7e88d02f9317ea07a783ad3ab14fbffd2fccc1098c56b4c1bab72d8002df85fc567ce883197af30e88277e25ed1afa09855831c9b598 ccache-3.3.1.tar.xz"