void-packages/srcpkgs/mergerfs/template

30 lines
777 B
Bash

# Template file for 'mergerfs'
pkgname="mergerfs"
version=2.22.0
revision=2
build_style=gnu-makefile
makedepends="fuse-devel attr-devel"
hostmakedepends="automake libtool 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=258de9611e7300a50708b33b0f3971496ac313ecec1ae695c92b5cd853148a75
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
}