mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 09:07:14 +08:00
ccache: 3.1.9
This commit is contained in:
parent
a8cd1baf69
commit
baa27d39a8
36
ccache/PKGBUILD
Normal file
36
ccache/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
||||
|
||||
pkgname=ccache
|
||||
pkgver=3.1.9
|
||||
pkgrel=2
|
||||
pkgdesc="A compiler cache."
|
||||
url="http://ccache.samba.org/"
|
||||
license=('GPL2')
|
||||
arch=('x86_64')
|
||||
depends=('zlib')
|
||||
source=(http://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.bz2)
|
||||
md5sums=('65f48376a91d3651d6527ca568858be8')
|
||||
|
||||
build() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
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++
|
||||
}
|
Loading…
Reference in New Issue
Block a user