aboutsummaryrefslogtreecommitdiffstats
path: root/main/serf/APKBUILD
blob: 66cf4ac0efd8c93cf990108bc02dbd2d5c7bdb83 (plain)
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
42
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=serf
pkgver=1.3.8
pkgrel=0
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 openssl-dev zlib-dev scons
	chrpath"
install=""
subpackages="$pkgname-dev"
source="https://archive.apache.org/dist/serf/serf-$pkgver.tar.bz2"

_builddir="$srcdir"/serf-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	scons PREFIX=/usr || return 1
}

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

md5sums="2e4efe57ff28cb3202a112e90f0c2889  serf-1.3.8.tar.bz2"
sha256sums="e0500be065dbbce490449837bb2ab624e46d64fc0b090474d9acaa87c82b2590  serf-1.3.8.tar.bz2"
sha512sums="78787a0d1e3e72dd9afc2e0de65e9af3b4303fefdcb865bd5e087fae570a7fe4d1395ce021756db4685c6e63e31c495563afe57baf677bf9846657f5d63d4205  serf-1.3.8.tar.bz2"