aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mergerfs
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-11-01 21:21:30 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-11-01 21:49:07 +0100
commit0178d99e9fc53db76707b1684a56cdb7d007a8c4 (patch)
tree8c6b8fd794d5896e021c603c4bc210fa511b64ae /testing/mergerfs
parentd966a9ddf01ccc73de7a3bafccc907b3a4427195 (diff)
downloadaports-0178d99e9fc53db76707b1684a56cdb7d007a8c4.tar.bz2
aports-0178d99e9fc53db76707b1684a56cdb7d007a8c4.tar.xz
testing/mergerfs: improve abuild
Diffstat (limited to 'testing/mergerfs')
-rw-r--r--testing/mergerfs/APKBUILD18
-rw-r--r--testing/mergerfs/APKBUILD.226
2 files changed, 37 insertions, 7 deletions
diff --git a/testing/mergerfs/APKBUILD b/testing/mergerfs/APKBUILD
index fa93af28ab..f06038059d 100644
--- a/testing/mergerfs/APKBUILD
+++ b/testing/mergerfs/APKBUILD
@@ -8,22 +8,26 @@ url="https://github.com/trapexit/mergerfs"
arch="all"
license="ISC"
depends="libattr fuse"
-depends_dev="attr-dev fuse-dev linux-headers"
-makedepends="$depends_dev autoconf automake libtool gettext-dev"
-install=""
+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"
-
-builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
- make OPTS="$CXXFLAGS" || return 1
+ make OPTS="$CXXFLAGS"
+}
+
+check() {
+ cd "$builddir"
+
+ # Both --version and --help exists with 1...
+ ./mergerfs --version | grep 'mergerfs version'
}
package() {
cd "$builddir"
- make PREFIX="/usr" DESTDIR="$pkgdir" install || return 1
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
}
sha512sums="46f8c083333370a19f5f8b11e016456140b2cd32f5fe8dec344b09f89738305a8a5cfe94cc04943ba827fad4b82a2569e63ec771252501a1cf2e7928ba7e2b82 mergerfs-2.23.0.tar.gz"
diff --git a/testing/mergerfs/APKBUILD.2 b/testing/mergerfs/APKBUILD.2
new file mode 100644
index 0000000000..4a07688b16
--- /dev/null
+++ b/testing/mergerfs/APKBUILD.2
@@ -0,0 +1,26 @@
+# Contributor: Nathan Caldwell <saintdev@gmail.com>
+# Maintainer: Nathan Caldwell <saintdev@gmail.com>
+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"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ make OPTS="$CXXFLAGS"
+}
+
+package() {
+ cd "$builddir"
+ make PREFIX="/usr" DESTDIR="$pkgdir" install
+}
+
+sha512sums="1f2ecb162bd2aee390d5067a888f38c0b7137022f7447b93ff2b743d759b815408f6f09e68bcf240e5274d6c872b9a8c9cbe48b5e11538ae0af02713a4f66745 mergerfs-2.23.1.tar.gz"