PKGBUILDs/extra/ccache/PKGBUILD
2009-10-23 21:14:54 -05:00

33 lines
1.2 KiB
Bash

# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=ccache
pkgver=2.4
pkgrel=5
pkgdesc="ccache is a compiler cache"
url="http://ccache.samba.org/"
source=(http://samba.org/ftp/${pkgname}/$pkgname-$pkgver.tar.gz)
license=('GPL')
arch=('arm')
depends=('glibc')
md5sums=('73c1ed1e767c1752dd0f548ec1e66ce7')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr
make || return 1
install -Dm 755 ccache ${pkgdir}/usr/bin/ccache
install -Dm 644 ccache.1 ${pkgdir}/usr/share/man/man1/ccache.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++
}