aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-06-23 20:50:38 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-24 00:32:26 +0200
commitb1e325735643f28222b7016119236a1305496d69 (patch)
tree43e93ff4911bd69d4e9c87e31ea94c8f2496a379 /main
parentc97f248cd14028f57789d030146a3768514f6c37 (diff)
downloadaports-b1e325735643f28222b7016119236a1305496d69.tar.bz2
aports-b1e325735643f28222b7016119236a1305496d69.tar.xz
main/unfs3: modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r--main/unfs3/APKBUILD36
1 files changed, 16 insertions, 20 deletions
diff --git a/main/unfs3/APKBUILD b/main/unfs3/APKBUILD
index e96ffce588..47d3854bea 100644
--- a/main/unfs3/APKBUILD
+++ b/main/unfs3/APKBUILD
@@ -2,25 +2,25 @@
pkgname=unfs3
pkgver=0.9.22
pkgrel=4
-pkgdesc="a user-space implementation of the NFSv3 server specification"
+pkgdesc="A user-space implementation of the NFSv3 server specification"
url="http://unfs3.sourceforge.net/"
arch="all"
license='GPL'
depends="rpcbind"
-depends_dev="libtirpc-dev flex-dev"
-makedepends="$depends_dev flex"
+makedepends="flex-dev libtirpc-dev"
+subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
unfs3-0.9.22-musl.patch
unfs3.confd
unfs3.initd
"
-subpackages="$pkgname-doc"
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$srcdir/$pkgname-$pkgver"
- export CFLAGS="$CFLAGS `pkgconf --cflags libtirpc`"
- export LDFLAGS="$LDFLAGS `pkgconf --libs-only-L libtirpc`"
- export LIBS="$LIBS `pkgconf --libs-only-l libtirpc`"
+ cd "$builddir"
+ export CFLAGS="$CFLAGS $(pkgconf --cflags libtirpc)"
+ export LDFLAGS="$LDFLAGS $(pkgconf --libs-only-L libtirpc)"
+ export LIBS="$LIBS $(pkgconf --libs-only-l libtirpc)"
sed -i '/LDFLAGS=/ s,-R/usr/ucblib,,' ./configure
@@ -28,26 +28,22 @@ build() {
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --mandir=/usr/share/man \
- || return 1
- make -j1 || return 1
+ --mandir=/usr/share/man
+ make -j1
+}
+
+check() {
+ cd "$builddir"
+ ./unfsd -h
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$builddir"
make DESTDIR="$pkgdir/" install
install -D -m0644 "$srcdir"/unfs3.confd "$pkgdir"/etc/conf.d/unfs3
install -D -m0755 "$srcdir"/unfs3.initd "$pkgdir"/etc/init.d/unfs3
}
-md5sums="ddf679a5d4d80096a59f3affc64f16e5 unfs3-0.9.22.tar.gz
-0cf4e87daee20f8504cc8af2106033b7 unfs3-0.9.22-musl.patch
-cbddfb3bee3a2af77b0c0e20f9967a2d unfs3.confd
-40fa047b09b7a811bf3326cf630e4df5 unfs3.initd"
-sha256sums="482222cae541172c155cd5dc9c2199763a6454b0c5c0619102d8143bb19fdf1c unfs3-0.9.22.tar.gz
-6d5e371dbacb055e8775e409c24a4fd73153510fcb5ace2c0a4e7a189f9140d7 unfs3-0.9.22-musl.patch
-e7ba94b1091eb7069b8f87945a6cfebf45a511942cf8719d2060c29f85280074 unfs3.confd
-0c1bb1e53c405ef922121f5d82a17413d2ffcbe5ad21b88ceec2dd9894df8e3c unfs3.initd"
sha512sums="b1e4b7f5b7b7de27bb5411c69363a6b40be0fcf1f772e283f0868a2155fa9ea4b9b8e7f05b1706e41cf09dd2ee4baab472a01bc4640ae47e3be2a19d8d3f5f9e unfs3-0.9.22.tar.gz
f2221651fad842acb8b5fd637514caa07300f627efd5b168ee2939ab3b6ea55fdefa3c3f3336425e255ee7badd326528c722d4064a04936b5468aabc79cbca02 unfs3-0.9.22-musl.patch
e3a3b7a71117482fd3214eadfd957f5cd3f05da268f748f931945c390f1d8e46e19b33d53b2ce0505c61745f8dd6285f7a9de409196fedef07d23ae029f1c035 unfs3.confd