diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-01 11:03:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-07 16:46:13 +0000 |
commit | 991e0ca1085b78300fa3814a4b03467ae4cc331c (patch) | |
tree | 445eebd9f1a050bff6a48442df8a6d5578cf8eb0 /community/libevhtp/APKBUILD | |
parent | 7c32eb8b1d5ed89f0845378073555925928a3333 (diff) | |
download | aports-991e0ca1085b78300fa3814a4b03467ae4cc331c.tar.bz2 aports-991e0ca1085b78300fa3814a4b03467ae4cc331c.tar.xz |
community/libevhtp: upgrade to 1.2.16, modernize
Diffstat (limited to 'community/libevhtp/APKBUILD')
-rw-r--r-- | community/libevhtp/APKBUILD | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/community/libevhtp/APKBUILD b/community/libevhtp/APKBUILD index ba3d9d85b2..4d3b0deebb 100644 --- a/community/libevhtp/APKBUILD +++ b/community/libevhtp/APKBUILD @@ -1,28 +1,18 @@ # Contributor: <xmingske@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libevhtp -pkgver=1.2.12 -pkgrel=2 +pkgver=1.2.16 +pkgrel=0 pkgdesc="Flexible replacement for libevent's httpd API" -url="https://github.com/ellzey/libevhtp/" +url="https://github.com/criticalstack/libevhtp/" arch="all" license="BSD" -makedepends="cmake libevent-dev libressl-dev" +makedepends="cmake libevent-dev openssl-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/criticalstack/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 \ @@ -30,12 +20,12 @@ build() { -DCUSTOM_DOCDIR="/usr/share/doc/${pkgname}" \ -DCUSTOM_SHAREDIR="/usr/share/${pkgname}" \ -DEVHTP_BUILD_SHARED=ON . - make || return 1 + make } package() { cd "${builddir}" - make DESTDIR="${pkgdir}" install || return 1 + make DESTDIR="${pkgdir}" install } -sha512sums="b720d7c79db445420e83634a8d4c39ffd4c2c23e5fdef144c427455630913eee2bb23d3ee7aded079f634f8409d36eee9b642bebc852614ad5f9defb402f705d libevhtp-1.2.12.tar.gz" +sha512sums="0beb16a4ffc43fbc6364e456010b581fb55a79f7790ba698a754acb1bb39fb6256e77a3f9ccefe30f6bacd9201d674e31a3c6734fd98d082b35f3105521aff46 libevhtp-1.2.16.tar.gz" |