aboutsummaryrefslogtreecommitdiffstats
path: root/main/serf/APKBUILD
blob: 41c5c913a0b5c364cd797371026632684e43989c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=serf
pkgver=1.3.9
pkgrel=5
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"
subpackages="$pkgname-dev"
source="https://archive.apache.org/dist/serf/serf-$pkgver.tar.bz2
	scons-py3.patch
	"

build() {
	ln -s /usr/bin/python3 python
	export PATH="$PATH:."
	scons CFLAGS="$CFLAGS" LINKFLAGS="$LDFLAGS" PREFIX=/usr
}

package() {
	scons install --install-sandbox="$pkgdir"
	chrpath -d "$pkgdir"/usr/lib/libserf-1.so*
}

sha512sums="9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d  serf-1.3.9.tar.bz2
61547b360d92c29569d60c1e137f009c214e95cffd2edd20a7374da5b659c258d34759252d6ad6958eb7da0aa58fbb374153ee92323f0b84dc4b350f2ede17a1  scons-py3.patch"