void-packages/srcpkgs/mergerfs/template

25 lines
705 B
Bash

# Template file for 'mergerfs'
pkgname=mergerfs
version=2.29.0
revision=1
build_style=gnu-makefile
hostmakedepends="automake libtool pkg-config which"
short_desc="FUSE union filesystem"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://github.com/trapexit/mergerfs"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=f16f7c90d9db35b9f8fadbb529c4bf0f7d65d18fd2e7443a662cbfa7a8dbd4f9
pre_build() {
vsed -i 's|^CXXFLAGS[[:blank:]]*=|override CXXFLAGS +=|g' Makefile
vsed -i 's|^LDFLAGS[[:blank:]]*=|override LDFLAGS +=|g' Makefile
# we build from source, spoof release tarball
echo "$version" > VERSION
./tools/update-version
}
post_install() {
vlicense LICENSE
}