aboutsummaryrefslogtreecommitdiffstats
path: root/main/libasr
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2019-11-04 17:04:45 +0100
committerJakub Jirutka <jakub@jirutka.cz>2019-11-04 18:11:04 +0100
commit9a373e5a486e7c18033c02425dde3cbc3d4c8944 (patch)
treeaf8026f06610225721c57380a420cd6eb734d9b1 /main/libasr
parent8d1dcddec44d136bfe3bf18dbbcb28b8420c39b2 (diff)
downloadaports-9a373e5a486e7c18033c02425dde3cbc3d4c8944.tar.bz2
aports-9a373e5a486e7c18033c02425dde3cbc3d4c8944.tar.xz
main/libasr: modernize abuild and fix code-style
Diffstat (limited to 'main/libasr')
-rw-r--r--main/libasr/APKBUILD16
1 files changed, 6 insertions, 10 deletions
diff --git a/main/libasr/APKBUILD b/main/libasr/APKBUILD
index 3c770da28b..959af9e5e5 100644
--- a/main/libasr/APKBUILD
+++ b/main/libasr/APKBUILD
@@ -16,21 +16,18 @@ source="https://github.com/OpenSMTPD/libasr/archive/libasr-$pkgver.tar.gz
0003-no-need-for-openssl-in-libasr.patch
0004-mod_automake_bootstrap_version.patch
"
-builddir=${srcdir}/${pkgname}-${pkgname}-${pkgver}
+builddir="$srcdir/$pkgname-$pkgname-$pkgver"
prepare() {
- default_prepare || return 1
-
- cd "$builddir"
- ./bootstrap || return 1
+ default_prepare
+ ./bootstrap
}
build() {
- cd "$builddir"
-
# XXX: Hotfix, see: https://github.com/OpenSMTPD/libasr/pull/18
CFLAGS="-Wno-error=maybe-uninitialized" \
- ./configure --build=$CBUILD \
+ ./configure \
+ --build=$CBUILD \
--host=$CHOST \
--with-pie \
--with-Werror \
@@ -42,8 +39,7 @@ build() {
}
package() {
- cd "$builddir"
- make DESTDIR=${pkgdir} install
+ make DESTDIR="$pkgdir" install
}
sha512sums="d70d5fb5728678074f4fd3d0f925b13a8a5ac9fec7a38277f2ed0e6b3f3fe2591845d035f43ece1ee16f1fdfd7d7443140ca36f171f94f310ed821b88b82b924 libasr-1.0.2.tar.gz