aboutsummaryrefslogtreecommitdiffstats
path: root/main/serf/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-01-21 03:45:09 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-01-21 03:45:09 +0100
commitdab21027d74c68c020527d38b542b1b434118811 (patch)
tree88ce66f00224b3db719ef10bd4fe829382bdf990 /main/serf/APKBUILD
parentf8ff7cd3d3691dd2393301a29c4442f793db1fd6 (diff)
downloadaports-dab21027d74c68c020527d38b542b1b434118811.tar.gz
aports-dab21027d74c68c020527d38b542b1b434118811.tar.bz2
aports-dab21027d74c68c020527d38b542b1b434118811.tar.xz
main/serf: switch to python3
Diffstat (limited to 'main/serf/APKBUILD')
-rw-r--r--main/serf/APKBUILD18
1 files changed, 8 insertions, 10 deletions
diff --git a/main/serf/APKBUILD b/main/serf/APKBUILD
index 9f66add418..41c5c913a0 100644
--- a/main/serf/APKBUILD
+++ b/main/serf/APKBUILD
@@ -6,24 +6,22 @@ pkgdesc="High-Performance Asynchronous HTTP Client Library"
url="http://serf.apache.org/"
arch="all"
license="Apache-2.0"
-makedepends="apr-util-dev apr-dev openssl-dev zlib-dev scons chrpath python2"
+makedepends="apr-util-dev apr-dev openssl-dev zlib-dev scons chrpath"
subpackages="$pkgname-dev"
-source="https://archive.apache.org/dist/$pkgname/$pkgname-$pkgver.tar.bz2
- libressl.patch
+source="https://archive.apache.org/dist/serf/serf-$pkgver.tar.bz2
+ scons-py3.patch
"
-builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$builddir"
- scons PREFIX=/usr
+ ln -s /usr/bin/python3 python
+ export PATH="$PATH:."
+ scons CFLAGS="$CFLAGS" LINKFLAGS="$LDFLAGS" PREFIX=/usr
}
package() {
- cd "$builddir"
- install -d "$pkgdir/usr"
- scons PREFIX="$pkgdir/usr" install
+ scons install --install-sandbox="$pkgdir"
chrpath -d "$pkgdir"/usr/lib/libserf-1.so*
}
sha512sums="9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d serf-1.3.9.tar.bz2
-f3e293124fbad9f7cd75f578e88259fd5a706eb56259d19be711c6e7527913c19146854042c4a7f6c14f828d2c14f8b42d2c71ae736d475df388bba8e0bd4df4 libressl.patch"
+61547b360d92c29569d60c1e137f009c214e95cffd2edd20a7374da5b659c258d34759252d6ad6958eb7da0aa58fbb374153ee92323f0b84dc4b350f2ede17a1 scons-py3.patch"