aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mergerfs/APKBUILD
blob: 36d0d76e2a2b3a5f55c47b6997a58e4dda405239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Nathan Caldwell <saintdev@gmail.com>
# Maintainer: Nathan Caldwell <saintdev@gmail.com>
# TODO: Build against system-provided libfuse, don't use bundled libfuse.
pkgname=mergerfs
pkgver=2.23.1
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="1f2ecb162bd2aee390d5067a888f38c0b7137022f7447b93ff2b743d759b815408f6f09e68bcf240e5274d6c872b9a8c9cbe48b5e11538ae0af02713a4f66745  mergerfs-2.23.1.tar.gz
1836bbfc38d167d0107fdb1b29630625d4eec0ce3e505d48df1fcb8fc9122e55522535a7f45c9db51e9b66a43af7293eb9c684fd4faec5ced2ba2140c2615c5e  makefile-no-debug.patch"