Commit 97cfaba2 authored by Leo's avatar Leo

main/ccache: upgrade to 4.0

parent 9141c3f2
Pipeline #54083 failed with stages
in 1 minute and 48 seconds
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ccache
pkgver=3.7.12
pkgver=4.0
pkgrel=0
pkgdesc="fast C/C++ compiler cache"
url="https://ccache.dev/"
arch="all"
license="GPL-3.0-or-later"
makedepends="zlib-dev"
checkdepends="bash perl"
makedepends="cmake zstd-dev"
checkdepends="bash"
subpackages="$pkgname-doc"
source="https://github.com/ccache/ccache/releases/download/v$pkgver/ccache-$pkgver.tar.xz"
prepare() {
default_prepare
update_config_sub
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
$CMAKE_CROSSOPTS
cmake --build build
}
check() {
......@@ -33,16 +28,13 @@ check() {
}
package() {
install -Dm 755 ccache "$pkgdir"/usr/bin/ccache
install -Dm 644 doc/ccache.1 "$pkgdir"/usr/share/man/man1/ccache.1
DESTDIR="$pkgdir" cmake --build build --target install
local link=
mkdir -p "$pkgdir"/usr/lib/ccache/bin
for link in cc gcc g++ cpp c++ $CHOST-cc $CHOST-gcc \
local link; for link in cc gcc g++ cpp c++ $CHOST-cc $CHOST-gcc \
$CHOST-g++ $CHOST-cpp $CHOST-c++; do
ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/$link
done
}
sha512sums="0eb47869f86d36b3e5fad0d5073973f0444f3efe23fd14469a9e05154ea219228443098b1c5e4a8a0c5c78b4bfa7623735b50ebd6b8b4d0626766061850d6a62 ccache-3.7.12.tar.xz"
sha512sums="1e55767bc2919109ae3c9b74f0adcd518e7e11df45c3981b2e9f8b04a780f9730457eeef1df137c65ab20e0959600c5317f06b58ffb82f5806c7c9f6cc305715 ccache-4.0.tar.xz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment