# SliTaz package receipt. PACKAGE="ccache" VERSION="4.5.1" CATEGORY="development" TAGS="compiler" SHORT_DESC="Compiler cache." MAINTAINER="erjo@slitaz.org" LICENSE="GPL3" WEB_SITE="https://ccache.dev/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/v$VERSION/$TARBALL" SUGGESTED="gcc" DEPENDS="gcc83-lib-base hiredis libatomic zstd" BUILD_DEPENDS="cmake gcc83 hiredis-dev zstd-dev" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { export CC=gcc-83 export CXX=g++-83 mkdir _build && cd _build && cmake .. \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=/usr && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin }