diff --git a/srcpkgs/mergerfs/patches/fix-path_xattr_h.patch b/srcpkgs/mergerfs/patches/fix-path_xattr_h.patch new file mode 100644 index 00000000000..0cda0800e0c --- /dev/null +++ b/srcpkgs/mergerfs/patches/fix-path_xattr_h.patch @@ -0,0 +1,11 @@ +--- src/xattr.hpp 2016-01-29 21:16:29.000000000 +0100 ++++ src/xattr.hpp 2016-08-06 18:20:30.389725795 +0200 +@@ -15,7 +15,7 @@ + */ + + #ifndef WITHOUT_XATTR +-#include ++#include + #endif + + #ifndef ENOATTR diff --git a/srcpkgs/mergerfs/template b/srcpkgs/mergerfs/template new file mode 100644 index 00000000000..c0adc738b0d --- /dev/null +++ b/srcpkgs/mergerfs/template @@ -0,0 +1,24 @@ +# Template file for 'mergerfs' +pkgname=mergerfs +version=2.14.0 +revision=1 +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends="fuse-devel" +short_desc="Another (FUSE based) union filesystem" +maintainer="Jürgen Buchmüller " +license="ISC" +homepage="https://github.com/trapexit/mergerfs" +distfiles="https://github.com/trapexit/mergerfs/releases/download/${version}/mergerfs-${version}.tar.gz" +checksum=91b323ac848d373dde455a2f7bc7567b31d2def81839ae801c1d38d1ffb3ba61 + +CFLAGS="-DFUSE_USE_VERSION=26" +LDFLAGS="-lfuse" + +pre_build() { + sed -i Makefile -e"s;attr/xattr.h;sys/xattr.h;" +} + +post_install() { + vlicense LICENSE +}