summaryrefslogtreecommitdiff
path: root/user/serf/APKBUILD
blob: db2ae54258fd90365925f6f8b8ff39ca8b940059 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=serf
pkgver=1.3.9
pkgrel=0
pkgdesc="High-performance HTTP library from Apache"
url="https://serf.apache.org/"
arch="all"
license="Apache-2.0"
depends=""
makedepends="apr-dev apr-util-dev openssl-dev scons zlib-dev"
subpackages="$pkgname-dev"
source="https://www.apache.org/dist/serf/serf-$pkgver.tar.bz2
	py3.patch
	"

build() {
	cd "$builddir"
	scons PREFIX=/usr -j "$JOBS"
}

check() {
	cd "$builddir"
	scons test
}

package() {
	cd "$builddir"
	local _header
	install -D -m644 libserf-1.a "$pkgdir"/usr/lib/libserf-1.a
	install -D -m755 libserf-1.so.1.3.0 "$pkgdir"/usr/lib/libserf-1.so.1.3.0
	ln -s libserf-1.so.1.3.0 "$pkgdir"/usr/lib/libserf-1.so.1
	ln -s libserf-1.so.1.3.0 "$pkgdir"/usr/lib/libserf-1.so
	for _header in serf{_bucket_{types,util},}.h; do
		install -D -m644 $_header "$pkgdir"/usr/include/serf-1/$_header
	done
	install -D -m644 serf-1.pc "$pkgdir"/usr/lib/pkgconfig/serf-1.pc
}

sha512sums="9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d  serf-1.3.9.tar.bz2
4f55a30f8e505e757c36debc8e19041dbf824c5708495d9e0338e4bac736445eff72ea60aa9a9bafdcdde9b26e2ffb6c79c39b4e6f6422cffc34d3986e49d1b1  py3.patch"