void-packages/srcpkgs/mergerfs/template

26 lines
780 B
Bash

# Template file for 'mergerfs'
pkgname=mergerfs
version=2.24.2
revision=1
build_style=gnu-makefile
hostmakedepends="automake libtool pandoc pkg-config"
makedepends="attr-devel fuse-devel"
short_desc="FUSE union filesystem"
maintainer="Orphaned <orphan@voidlinux.eu>"
license="ISC"
homepage="https://github.com/trapexit/mergerfs"
distfiles="${homepage}/archive/${version}/${pkgname}-${version}.tar.gz"
checksum=bd0c9e5962361aae1040f341ebe05fe4ceef7c503e17e03d73b572643bfdfbfd
pre_build() {
sed -i 's|^CFLAGS[[:blank:]]*=|override CFLAGS +=|g' Makefile
sed -i 's|^LDFLAGS[[:blank:]]*=|override LDFLAGS +=|g' Makefile
echo "#pragma once" > src/version.hpp
echo "static const char MERGERFS_VERSION[] = \"${version}\";" >> src/version.hpp
}
post_install() {
vlicense LICENSE
}