# Contributor: Nathan Caldwell # Maintainer: Nathan Caldwell # TODO: Build against system-provided libfuse, don't use bundled libfuse. pkgname=mergerfs pkgver=2.24.2 pkgrel=0 pkgdesc="A FUSE based union filesystem" url="https://github.com/trapexit/mergerfs" arch="all" license="ISC" depends="libattr fuse" makedepends="autoconf automake libtool gettext-dev attr-dev fuse-dev linux-headers" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/trapexit/$pkgname/archive/$pkgver.tar.gz makefile-no-debug.patch" builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare echo "$pkgver" > "$builddir"/VERSION } build() { cd "$builddir" make OPTS="$CXXFLAGS" GIT= } check() { cd "$builddir" # Both --version and --help exists with 1... ./mergerfs --version | grep 'mergerfs version' } package() { cd "$builddir" make PREFIX="/usr" DESTDIR="$pkgdir" install } sha512sums="a2a66ed95936e00aee9148267acec8687f3b106cefa0fe59337f10ce6bf543afa109cd889c6949b38bb87bb26b38ab2d67d9dac2a022a82fb152f368ddfe68a6 mergerfs-2.24.2.tar.gz 1836bbfc38d167d0107fdb1b29630625d4eec0ce3e505d48df1fcb8fc9122e55522535a7f45c9db51e9b66a43af7293eb9c684fd4faec5ced2ba2140c2615c5e makefile-no-debug.patch"