aboutsummaryrefslogtreecommitdiffstats
path: root/main/serf/APKBUILD
blob: b22198f2a0782ae35414091a4d3d18ac8bcd3f72 (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
43
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=serf
pkgver=1.3.4
pkgrel=0
pkgdesc="High-Performance Asynchronous HTTP Client Library"
url="http://code.google.com/p/serf"
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="http://serf.googlecode.com/svn/src_releases/$pkgname-$pkgver.zip"

_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	
	rm -f "$pkgdir"/usr/lib/*.la
	chrpath -d "$pkgdir"/usr/lib/libserf-1.so*
}

md5sums="f2d469ac03db98781c9d414fed5368ae  serf-1.3.4.zip"
sha256sums="7926ad3f3204e798bae61aa339b38d8011663d48ed7814009907947b939172e7  serf-1.3.4.zip"
sha512sums="ca7ca2028bd2e968d63ab74083116815b3702d3a41dae5fbbb65dcb80fa882cb5075150a06d3d2832c84f4f2ea54af4934e4d9ce4ec9bfacb3be7cc56d5e994d  serf-1.3.4.zip"