aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-05-23 20:01:30 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-05-23 20:01:30 -0300
commit8a5eb594314fdefa817f16d36ca0754e2d0cfc3b (patch)
treefaf90ac1ab288120405aece1fdb8dd747adc15aa
parent8d7b2bf73dfb87dd49e1ffe447cdf5e11c98bec8 (diff)
downloadaports-8a5eb594314fdefa817f16d36ca0754e2d0cfc3b.tar.gz
aports-8a5eb594314fdefa817f16d36ca0754e2d0cfc3b.tar.bz2
aports-8a5eb594314fdefa817f16d36ca0754e2d0cfc3b.tar.xz
community/afpfs-ng: modernize
-rw-r--r--community/afpfs-ng/APKBUILD26
1 files changed, 7 insertions, 19 deletions
diff --git a/community/afpfs-ng/APKBUILD b/community/afpfs-ng/APKBUILD
index dca3edf79e..62075db55c 100644
--- a/community/afpfs-ng/APKBUILD
+++ b/community/afpfs-ng/APKBUILD
@@ -2,15 +2,13 @@
# Maintainer:
pkgname=afpfs-ng
pkgver=0.8.1
-pkgrel=8
+pkgrel=9
pkgdesc="A client for the Apple Filing Protocol (AFP)"
url="http://alexthepuffin.googlepages.com/"
arch="all"
-license="GPL-2.0"
-depends=""
+license="GPL-2.0-only"
depends_dev="libgcrypt-dev libedit-dev ncurses-dev"
makedepends="$depends_dev autoconf automake libtool linux-headers"
-install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/afpfs-ng/afpfs-ng-$pkgver.tar.bz2
00-afpfs-ng-0.8.1-fix_afpfs-ng_includes.patch
@@ -27,20 +25,12 @@ source="https://downloads.sourceforge.net/sourceforge/afpfs-ng/afpfs-ng-$pkgver.
libedit.patch
"
-_builddir="$srcdir"/afpfs-ng-$pkgver
prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- autoreconf -vif || return 1
+ default_prepare
+ autoreconf -vif
}
build() {
- cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -50,14 +40,12 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-gcrypt \
- --disable-fuse \
- || return 1
- make -j1 || return 1
+ --disable-fuse
+ make -j1
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
sha512sums="cfb4ab145566cf75490ff6835482a2b3378f56cc223c5f4360cdd85acb221bf744ba2b00e0a851c8f155ad88a9deb778762547c4eda236cb80f671ef85f4525e afpfs-ng-0.8.1.tar.bz2