From 0178d99e9fc53db76707b1684a56cdb7d007a8c4 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Wed, 1 Nov 2017 21:21:30 +0100 Subject: testing/mergerfs: improve abuild --- testing/mergerfs/APKBUILD | 18 +++++++++++------- testing/mergerfs/APKBUILD.2 | 26 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 testing/mergerfs/APKBUILD.2 (limited to 'testing') 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 +# Maintainer: Nathan Caldwell +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" -- cgit v1.2.3