void-packages/srcpkgs/shake/template

32 lines
825 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
CFLAGS="-D_GNU_SOURCE"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
makedepends+=" musl-legacy-compat"
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
}