void-packages/srcpkgs/mergerfs/template
Noel Cower 7d9ec219a8 mergerfs: update to 2.25.1.
Removes patches that are no longer needed and sets INTERNAL_FUSE=0 so
that the Makefile will defer to pkg-config for libfuse.

Adds a patch to replace non-portable use of loff_t with int64_t for the
copy_file_range syscall.

Also adopting the package since it's an orphan.
2019-02-11 05:27:44 -02:00

27 lines
851 B
Bash

# Template file for 'mergerfs'
pkgname=mergerfs
version=2.25.1
revision=1
build_style=gnu-makefile
make_build_args="INTERNAL_FUSE=0"
make_install_args="${make_build_args}"
hostmakedepends="automake libtool pandoc pkg-config"
makedepends="fuse-devel"
short_desc="FUSE union filesystem"
maintainer="Noel Cower <ncower@gmail.com>"
license="ISC"
homepage="https://github.com/trapexit/mergerfs"
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.gz"
checksum=f604ad04aad99983c5f91e50e27275deefab4797c1343d8e0cf3664d1ca53fc5
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
}