wok annotate ccache/receipt @ rev 25403

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