blob: 4edaa977086ef31f70af2f01c9b808b81aa07273 (
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
44
45
|
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevhtp
pkgver=1.2.10
pkgrel=0
pkgdesc="Flexible replacement for libevent's httpd API"
url="https://github.com/ellzey/libevhtp/"
arch="all"
license="BSD"
makedepends="cmake libevent-dev openssl-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="e7261c7e34654f78047431d169b88806 libevhtp-1.2.10.tar.gz"
sha256sums="1cecc250a766cd6f5df35706181427cfcff62541a7a135a821eed9f61c9c8907 libevhtp-1.2.10.tar.gz"
sha512sums="3aff2ef940afef6ea725dce9b0d24a503c2acbab5abe6ae27f82e64ed8b700843c56b1e3686aae51f86644e80052aedb7df1490c8a9162c1c4c0a6f2fed24e98 libevhtp-1.2.10.tar.gz"
|