parent
c39bfa84d8
commit
4dcc03b96d
2 changed files with 40 additions and 0 deletions
11
srcpkgs/mergerfs/patches/fix-default_source.patch
Normal file
11
srcpkgs/mergerfs/patches/fix-default_source.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/readdir.cpp 2016-02-18 19:03:13.000000000 +0100
|
||||
+++ src/readdir.cpp 2016-08-06 19:04:39.696672433 +0200
|
||||
@@ -14,7 +14,7 @@
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
-#define _BSD_SOURCE
|
||||
+#define _DEFAULT_SOURCE
|
||||
|
||||
#include <fuse.h>
|
||||
|
29
srcpkgs/mergerfs/template
Normal file
29
srcpkgs/mergerfs/template
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Template file for 'mergerfs'
|
||||
pkgname="mergerfs"
|
||||
version=2.14.0
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
makedepends="fuse-devel attr-devel"
|
||||
hostmakedepends="pkg-config"
|
||||
short_desc="FUSE union filesystem"
|
||||
maintainer="xinterer <xinterer@users.noreply.github.com>"
|
||||
license="ISC"
|
||||
homepage="https://github.com/trapexit/mergerfs"
|
||||
distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}.tar.gz"
|
||||
checksum="91b323ac848d373dde455a2f7bc7567b31d2def81839ae801c1d38d1ffb3ba61"
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue