aboutsummaryrefslogtreecommitdiffstats
path: root/main/serf/APKBUILD
blob: c6fb1454f7a804aa985eb48d3429f9294a147a18 (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
44
45
46
47
48
49
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=serf
pkgver=1.2.1
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"
install=""
subpackages="$pkgname-dev"
source="https://serf.googlecode.com/files/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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="4f8e76c9c6567aee1d66aba49f76a58b  serf-1.2.1.tar.bz2"
sha256sums="6988d394b62c3494635b6f0760bc3079f9a0cd380baf0f6b075af1eb9fa5e700  serf-1.2.1.tar.bz2"
sha512sums="370164d5ab6dc36169ca3eb6e0eae75e3b46dde4238a9726d300010b02ecff2cc01290ffd1cdc6da57fb9df05f719ca5f64e23a9f03881e092721e4102ca0521  serf-1.2.1.tar.bz2"