summaryrefslogtreecommitdiffstats
path: root/main/serf/APKBUILD
blob: 24e9c5456b7075bb85313fe965c70fd6fe8e02dd (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.8
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="92a9e90bf77d203de659d13adc2d1605  serf-1.3.8.zip"
sha256sums="d202c064e05c5483c4a81c6519a8a95137c65f10177b83cec9db885b88f4c690  serf-1.3.8.zip"
sha512sums="5521999f8f73f4871e42d43e02236cd8945b8af6d0524db224b7b6c8e86e15edc8031636c23ecc0b08fe52ef7ab1870246cf78d830bd0b8e00bec21ede766609  serf-1.3.8.zip"