void-packages/srcpkgs/mergerfs/template
2017-05-07 07:48:39 +00:00

29 lines
760 B
Bash

# Template file for 'mergerfs'
pkgname="mergerfs"
version=2.21.0
revision=1
build_style=gnu-makefile
makedepends="fuse-devel attr-devel"
hostmakedepends="pkg-config"
short_desc="FUSE union filesystem"
maintainer="xinterer <xinterer@users.noreply.github.com>"
license="ISC"
homepage="https://github.com/trapexit/mergerfs"
distfiles="${homepage}/archive/${version}/${pkgname}-${version}.tar.gz"
checksum=a47e93c83b12527d08d04637f3df77003cd2ae4af50b1de26c172d7d1d546bce
case "$XBPS_TARGET_MACHINE" in
*-musl) # Does not have pandoc
;;
*) hostmakedepends+=" pandoc"
;;
esac
pre_build() {
sed -i 's|^CFLAGS[[:blank:]]*=|override CFLAGS +=|g' Makefile
sed -i 's|^LDFLAGS[[:blank:]]*=|override LDFLAGS +=|g' Makefile
}
post_install() {
vlicense LICENSE
}