mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
34 lines
983 B
Bash
34 lines
983 B
Bash
pkgname=ccache
|
|
pkgver=3.5
|
|
pkgrel=1
|
|
pkgdesc="A compiler cache."
|
|
url="https://ccache.samba.org/"
|
|
license=('GPL3')
|
|
arch=('x86_64')
|
|
depends=('zlib')
|
|
source=(https://samba.org/ftp/$pkgname/$pkgname-$pkgver.tar.xz)
|
|
sha256sums=('bdd44b72ae4506a2e2deef9fefb15c606a474bbca7658cd2be26105155eec012')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
./configure --prefix=/usr --sysconfdir=/etc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
install -Dm 755 ccache -t "${pkgdir}/usr/bin"
|
|
install -Dm 644 doc/ccache.1 -t "${pkgdir}/usr/share/man/man1"
|
|
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
|
|
}
|