diff options
author | tmpfile <tmpfile@users.noreply.github.com> | 2017-05-14 15:08:25 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-09 15:17:42 +0000 |
commit | 6aca75b68078ec5970313477d341a5b6f3267075 (patch) | |
tree | 7ddfe1580f7bd4c1765a8e92e488bda6373b8f93 /community | |
parent | 2c1a38c9c3a52b40b70507fac981eca12b59567a (diff) | |
download | aports-6aca75b68078ec5970313477d341a5b6f3267075.tar.bz2 aports-6aca75b68078ec5970313477d341a5b6f3267075.tar.xz |
community/duo_unix: modernize abuild
Diffstat (limited to 'community')
-rw-r--r-- | community/duo_unix/APKBUILD | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/community/duo_unix/APKBUILD b/community/duo_unix/APKBUILD index 82434fcbae..3be181684b 100644 --- a/community/duo_unix/APKBUILD +++ b/community/duo_unix/APKBUILD @@ -10,39 +10,27 @@ license="GPL2" depends="" depends_dev="libressl-dev zlib-dev" makedepends="$depends_dev" -install="" options="suid" subpackages="$pkgname-dev $pkgname-doc" source="https://dl.duosecurity.com/$pkgname-$pkgver.tar.gz libressl.patch" -_builddir="$srcdir"/$pkgname-$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 -} - +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/duo \ --mandir=/usr/share/man \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } sha512sums="8caf1b9dea266662d2e221fa120be1989622828ba346f874f77090ed0f91431e250da2cfe335bc9ff0b8a6336a20458851e715342c5f90151cf4514e76b04fa9 duo_unix-1.9.21.tar.gz |