Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _pkgname=ccache
- pkgname=$_pkgname-git
- pkgver=v3.5.34.g066f6f2
- pkgrel=1
- _realver=3.5
- pkgdesc='Compiler cache that speeds up recompilation by caching previous compilations'
- url='https://ccache.samba.org/'
- arch=('x86_64')
- license=('GPL3')
- depends=('zlib')
- source=("git+https://github.com/ccache/ccache.git")
- sha256sums=('SKIP')
- pkgver() {
- cd "$srcdir/$_pkgname"
- git describe --always | sed 's|-|.|g'
- }
- prepare() {
- cd "$srcdir/$_pkgname"
- }
- build() {
- cd "$srcdir/$_pkgname"
- ./autogen.sh
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc
- make
- }
- check() {
- cd "$srcdir/$_pkgname"
- make check
- }
- package() {
- cd "$srcdir/$_pkgname"
- install -Dm 755 ccache -t "${pkgdir}/usr/bin"
- install -Dm 644 doc/{AUTHORS,MANUAL,NEWS}.adoc README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -d "${pkgdir}/usr/lib/ccache/bin"
- local _prog
- for _prog in gcc g++ c++; do
- ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/$_prog"
- ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/${CHOST}-$_prog"
- done
- for _prog in cc clang clang++; do
- ln -s /usr/bin/ccache "${pkgdir}/usr/lib/ccache/bin/$_prog"
- done
- }
- # vim: ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement