aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2018-03-09 14:24:57 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2018-03-09 14:41:40 +0100
commit05939679df9ab879e8a70c02c7220923449f7613 (patch)
tree43750f67ab096ff0e5f747afaa0a25395a69f43b /main
parentf1c9c951b593bcab3afed024810745bc4106953a (diff)
downloadaports-05939679df9ab879e8a70c02c7220923449f7613.tar.gz
aports-05939679df9ab879e8a70c02c7220923449f7613.tar.bz2
aports-05939679df9ab879e8a70c02c7220923449f7613.tar.xz
main/libgssglue: modernize APKBUILD
Diffstat (limited to 'main')
-rw-r--r--main/libgssglue/APKBUILD28
1 files changed, 17 insertions, 11 deletions
diff --git a/main/libgssglue/APKBUILD b/main/libgssglue/APKBUILD
index 593fe2f50e..d3e39bf346 100644
--- a/main/libgssglue/APKBUILD
+++ b/main/libgssglue/APKBUILD
@@ -10,28 +10,34 @@ depends=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.citi.umich.edu/projects/nfsv4/linux/$pkgname/$pkgname-$pkgver.tar.gz
gssapi_mech.conf"
-
-_builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
+ default_prepare
+ cd "$builddir"
+ update_config_sub
}
+
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- || return 1
- make || return 1
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir/" install || return 1
- install -D -m 644 ../gssapi_mech.conf "$pkgdir/"etc/gssapi_mech.conf
- install -D -m644 COPYING $pkgdir/usr/share/licenses/libgssglue/COPYING
+ cd "$builddir"
+ make DESTDIR="$pkgdir/" install
+
+ install -Dm644 "$srcdir"/gssapi_mech.conf \
+ "$pkgdir/"etc/gssapi_mech.conf
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/libgssglue/COPYING
}
+
sha512sums="25d514c08320e42851ff153d7691267a8454f205492faf942f566aa30c1ac1c83bd095732a1a0fcc010ba3a5d48b4c95a196ad05bc821598cc1fc3a2c4960d29 libgssglue-0.4.tar.gz
e97d7256ab05cd33178988d28139f0ba80797ac828dff3f7b0ab4cf6c04d016de1f731b8fe114f18319c6a07780a9701cd84a4e9fd5db6480c8d1df129f2402e gssapi_mech.conf"