aboutsummaryrefslogtreecommitdiffstats
path: root/main/serf/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-08 14:18:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-08 14:18:20 +0000
commita6a02df3da5b4cdf62f24dddefd5bfeeac9908f4 (patch)
tree0a1bc3cdebf617f96b8c323a93b448e540cb8187 /main/serf/APKBUILD
parent84e21090e3d8ae5b34a44a03d764906376b76ba3 (diff)
downloadaports-a6a02df3da5b4cdf62f24dddefd5bfeeac9908f4.tar.bz2
aports-a6a02df3da5b4cdf62f24dddefd5bfeeac9908f4.tar.xz
main/serf: moved from testing
Diffstat (limited to 'main/serf/APKBUILD')
-rw-r--r--main/serf/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/main/serf/APKBUILD b/main/serf/APKBUILD
new file mode 100644
index 0000000000..c6fb1454f7
--- /dev/null
+++ b/main/serf/APKBUILD
@@ -0,0 +1,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"