blob: ba3d9d85b2336b1945102954e788f58695008824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevhtp
pkgver=1.2.12
pkgrel=2
pkgdesc="Flexible replacement for libevent's httpd API"
url="https://github.com/ellzey/libevhtp/"
arch="all"
license="BSD"
makedepends="cmake libevent-dev libressl-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 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCUSTOM_DOCDIR="/usr/share/doc/${pkgname}" \
-DCUSTOM_SHAREDIR="/usr/share/${pkgname}" \
-DEVHTP_BUILD_SHARED=ON .
make || return 1
}
package() {
cd "${builddir}"
make DESTDIR="${pkgdir}" install || return 1
}
sha512sums="b720d7c79db445420e83634a8d4c39ffd4c2c23e5fdef144c427455630913eee2bb23d3ee7aded079f634f8409d36eee9b642bebc852614ad5f9defb402f705d libevhtp-1.2.12.tar.gz"
|