wok-current view ccache/receipt @ rev 25434
Up znc (1.8.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 29 10:14:47 2022 +0000 (2022-08-29) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ccache"
4 VERSION="4.5.1"
5 CATEGORY="development"
6 TAGS="compiler"
7 SHORT_DESC="Compiler cache."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://ccache.dev/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL"
15 SUGGESTED="gcc"
16 DEPENDS="gcc83-lib-base hiredis libatomic zstd"
17 BUILD_DEPENDS="cmake gcc83 hiredis-dev zstd-dev"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export CC=gcc-83
29 export CXX=g++-83
31 mkdir _build &&
32 cd _build &&
33 cmake .. \
34 -D CMAKE_BUILD_TYPE=Release \
35 -D CMAKE_INSTALL_PREFIX=/usr &&
36 make &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cook_copy_folders bin
44 }