aboutsummaryrefslogtreecommitdiffstats
path: root/main/libevhtp
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-10-31 11:50:35 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-31 11:50:35 +0100
commitbd40d543bcea6700c99518d1dda8e9c82e3449bf (patch)
tree68691b8f8eb470855c1655b7792599a815db5b4d /main/libevhtp
parentc3e2c12d30f48a88fbc9b4aa98a0861ebb06d052 (diff)
downloadaports-bd40d543bcea6700c99518d1dda8e9c82e3449bf.tar.bz2
aports-bd40d543bcea6700c99518d1dda8e9c82e3449bf.tar.xz
testing/seafile: move seafile and deps to main
Diffstat (limited to 'main/libevhtp')
-rw-r--r--main/libevhtp/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/main/libevhtp/APKBUILD b/main/libevhtp/APKBUILD
new file mode 100644
index 0000000000..911dbb814e
--- /dev/null
+++ b/main/libevhtp/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: <xmingske@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libevhtp
+pkgver=1.1.7
+pkgrel=0
+pkgdesc="Flexible replacement for libevent's httpd API"
+url="https://github.com/ellzey/libevhtp/"
+arch="all"
+license="BSD"
+makedepends="cmake libevent-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/ellzey/libevhtp/archive/${pkgver}.tar.gz"
+#subpackages="$pkgname-dev"
+
+_builddir="${srcdir}/${pkgname}-${pkgver}"
+
+prepare() {
+ local pf
+ cd "${_builddir}"
+ for pf in $source; do
+ case $pf in
+ *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "${_builddir}"
+ cmake -DCUSTOM_BINDIR=/usr/bin \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCUSTOM_DOCDIR="/usr/share/doc/${pkgname}" \
+ -DCUSTOM_SHAREDIR="/usr/share/${pkgname}" \
+ .
+ make || return 1
+}
+
+package() {
+ cd "${_builddir}"
+ make DESTDIR="${pkgdir}" install || return 1
+}
+
+md5sums="b29d5df06e09e90f2d585172d7f3d7a6 libevhtp-1.1.7.tar.gz"
+sha256sums="8bdfd87f09c898098a60c3618df29527c93b160a72ed7819769905ecddae1332 libevhtp-1.1.7.tar.gz"
+sha512sums="e5cda76877b15de97fcce85149c97c221548bc6b59fb9cf56404adbfd748aaf4cfeeba12e5facfbecfd46252924a37e0098d0f533912effdd03def56fd5d3aa6 libevhtp-1.1.7.tar.gz"