# Maintainer: PktSurf app=ccache version=4.11.3 build=1sml homepage="https://ccache.dev/" download="https://github.com/ccache/ccache/releases/download/v$version/ccache-$version.tar.xz" desc="Compiler cache to speed up re-compilation of C/C++ code by caching previous compiles" requires="musl" prepbuilddir() { mkandenterbuilddir rm -rf $app-$version tar xf $srcdir/$app-$version.tar.?z* cd $app-$version fixbuilddirpermissions } build() { mkdir -p smbuild && cd smbuild cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DHTTP_STORAGE_BACKEND=OFF \ -DREDIS_STORAGE_BACKEND=OFF make make install DESTDIR=$pkg cp ../LICENSE* $pkgdocs/ # Man page generation requires ruby, which is usually unavailable in the # early section build process, so supply our own install -Dm 644 $srcdir/ccache.1.gz $pkg/usr/share/man/man1/ccache.1.gz # Make some necessary symlinks mkdir -p $pkg/usr/lib/ccache ( cd $pkg/usr/lib/ccache ln -sf ../../bin/ccache gcc ln -sf ../../bin/ccache g++ ln -sf ../../bin/ccache cc ln -sf ../../bin/ccache c++ ) mkfinalpkg } sha512sums=" e3d9a7daa147451ef209b8f255d32a089adeab30c8289b4b1fb40f11a4dd67e48178408c1ecfd7492535ed643f1ff2fd9fb05b50e7c862ccf918692d5c037d7d ccache-4.11.3.tar.lz "