diff --git a/srcpkgs/shake/template b/srcpkgs/shake/template new file mode 100644 index 00000000000..ec9b731cacf --- /dev/null +++ b/srcpkgs/shake/template @@ -0,0 +1,28 @@ +# Template file for 'shake' +pkgname=shake +version=1.0 +revision=1 +build_style=cmake +hostmakedepends="help2man" +makedepends="attr-devel" +short_desc="Defragmenter that runs in userspace while the system is used" +maintainer="Casper Ti. Vector " +license="GPL-3" +homepage="http://vleu.net/shake/" +distfiles="https://github.com/unbrice/$pkgname/archive/v$version.tar.gz" +checksum=ac5a57bd8d55e197734852bf66318ecf39b4c5c298e43a259ba1d8a4b7a2ced3 +if [ "$XBPS_TARGET_MACHINE" = *-musl ]; then + broken="musl does not provide error.h required by this package" +fi + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" shake" + post_extract() { + sed -i -e 's;get_target_property (HELP2MAN_COMMAND ${command} LOCATION);set(HELP2MAN_COMMAND ${command});' \ + CMakeLists.txt + } +fi + +post_install() { + vdoc README.md +}