summaryrefslogtreecommitdiff
path: root/user/serf/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/serf/APKBUILD')
-rw-r--r--user/serf/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/serf/APKBUILD b/user/serf/APKBUILD
new file mode 100644
index 000000000..d30fa917f
--- /dev/null
+++ b/user/serf/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=serf
+pkgver=1.3.9
+pkgrel=0
+pkgdesc="High-performance HTTP library from Apache"
+url="https://serf.apache.org/"
+arch="all"
+license="Apache-2.0"
+depends=""
+makedepends="apr-dev apr-util-dev openssl-dev scons zlib-dev"
+subpackages="$pkgname-dev"
+source="https://www.apache.org/dist/serf/serf-$pkgver.tar.bz2
+ py3.patch
+ "
+
+build() {
+ cd "$builddir"
+ scons PREFIX=/usr -j "$JOBS"
+}
+
+check() {
+ cd "$builddir"
+ scons test
+}
+
+package() {
+ cd "$builddir"
+ local _header
+ install -D -m644 libserf-1.a "$pkgdir"/usr/lib/libserf-1.a
+ install -D -m755 libserf-1.so.1.3.0 "$pkgdir"/usr/lib/libserf-1.so.1.3.0
+ ln -s libserf-1.so.1.3.0 "$pkgdir"/usr/lib/libserf-1.so
+ for _header in serf{_bucket_{types,util},}.h; do
+ install -D -m644 $_header "$pkgdir"/usr/include/serf-1/$_header
+ done
+ install -D -m644 serf-1.pc "$pkgdir"/usr/lib/pkgconfig/serf-1.pc
+}
+
+sha512sums="9f5418d991840a08d293d1ecba70cd9534a207696d002f22dbe62354e7b005955112a0d144a76c89c7f7ad3b4c882e54974441fafa0c09c4aa25c49c021ca75d serf-1.3.9.tar.bz2
+4f55a30f8e505e757c36debc8e19041dbf824c5708495d9e0338e4bac736445eff72ea60aa9a9bafdcdde9b26e2ffb6c79c39b4e6f6422cffc34d3986e49d1b1 py3.patch"