aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-11-10 12:47:00 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-11-10 12:47:36 +0100
commit76c8b58ff71561ae88f1efdfd502c1471763784d (patch)
tree8c4b869233f13e87cb96e1f132048f85b639c028 /main
parentcd2875f27e98c32a6f8aebbca4cba80f800e04e7 (diff)
downloadaports-76c8b58ff71561ae88f1efdfd502c1471763784d.tar.bz2
aports-76c8b58ff71561ae88f1efdfd502c1471763784d.tar.xz
main/serf: modernize abuild
Diffstat (limited to 'main')
-rw-r--r--main/serf/APKBUILD22
1 files changed, 7 insertions, 15 deletions
diff --git a/main/serf/APKBUILD b/main/serf/APKBUILD
index cd973ec058..8c6c9c375e 100644
--- a/main/serf/APKBUILD
+++ b/main/serf/APKBUILD
@@ -5,33 +5,25 @@ pkgrel=3
pkgdesc="High-Performance Asynchronous HTTP Client Library"
url="http://serf.apache.org/"
arch="all"
-license="ASL 2.0"
-depends=""
-depends_dev=""
-makedepends="$depends_dev apr-util-dev apr-dev libressl-dev zlib-dev scons
- chrpath python2"
-install=""
+license="ASL-2.0"
+makedepends="apr-util-dev apr-dev libressl-dev zlib-dev scons chrpath python2"
subpackages="$pkgname-dev"
-source="https://archive.apache.org/dist/serf/serf-$pkgver.tar.bz2
+source="https://archive.apache.org/dist/$pkgname/$pkgname-$pkgver.tar.bz2
libressl.patch
"
-builddir="$srcdir"/serf-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
- scons PREFIX=/usr || return 1
+ scons PREFIX=/usr
}
package() {
cd "$builddir"
- install -d "${pkgdir}/usr"
- scons PREFIX="${pkgdir}/usr" install || return 1
+ install -d "$pkgdir/usr"
+ scons PREFIX="$pkgdir/usr" install
chrpath -d "$pkgdir"/usr/lib/libserf-1.so*
}
-md5sums="370a6340ff20366ab088012cd13f2b57 serf-1.3.9.tar.bz2
-e8f86d99e68ade1500cf2ce564818485 libressl.patch"
-sha256sums="549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc serf-1.3.9.tar.bz2
-36539895e27757e5a5bf3a3f343c34de9c970fa07c82890b83178fdadbc06fd2 libressl.patch"
sha512sums="9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d serf-1.3.9.tar.bz2
f3e293124fbad9f7cd75f578e88259fd5a706eb56259d19be711c6e7527913c19146854042c4a7f6c14f828d2c14f8b42d2c71ae736d475df388bba8e0bd4df4 libressl.patch"