blob: a36f573c250b5af463e3501460faec5f4623b9db (
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
42
43
|
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevhtp
pkgver=1.2.11n
pkgrel=3
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/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}" \
-DEVHTP_BUILD_SHARED=ON .
make || return 1
}
package() {
cd "${_builddir}"
make DESTDIR="${pkgdir}" install || return 1
}
md5sums="38e11f0623ce13c01ce7626d11ddffd1 libevhtp-1.2.11n.tar.gz"
sha256sums="ae114300659267c7e5f9805ba15f7e3f3461613371f38e3f84520a1703146afd libevhtp-1.2.11n.tar.gz"
sha512sums="cfa84e9b2b29b3c0808edbf50a8d63ad0b4a6f59abebdbf8f34146c288c8ecdc0434370ae77bd611dcc8733456bccc365f1c59fc132a594af9e91c68c3d58ee7 libevhtp-1.2.11n.tar.gz"
|