void-packages/srcpkgs/shake/template
2021-05-17 00:32:25 -03:00

31 lines
835 B
Bash

# Template file for 'shake'
pkgname=shake
version=1.0
revision=2
build_style=cmake
hostmakedepends="help2man"
makedepends="attr-devel"
short_desc="Defragmenter that runs in userspace while the system is used"
maintainer="Casper Ti. Vector <caspervector@gmail.com>"
license="GPL-3.0-or-later"
homepage="http://vleu.net/shake/"
distfiles="https://github.com/unbrice/$pkgname/archive/v$version.tar.gz"
checksum=ac5a57bd8d55e197734852bf66318ecf39b4c5c298e43a259ba1d8a4b7a2ced3
case "$XBPS_TARGET_MACHINE" in
*-musl)
broken="musl does not provide error.h required by this package"
;;
esac
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
}