diff options
-rw-r--r-- | testing/serf/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/serf/APKBUILD b/testing/serf/APKBUILD new file mode 100644 index 0000000000..c6fb1454f7 --- /dev/null +++ b/testing/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" |