blob: 4d3b0deebb86c1a16c247d7d81269fa2d2c2a9cb (
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
|
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevhtp
pkgver=1.2.16
pkgrel=0
pkgdesc="Flexible replacement for libevent's httpd API"
url="https://github.com/criticalstack/libevhtp/"
arch="all"
license="BSD"
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}"
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
}
package() {
cd "${builddir}"
make DESTDIR="${pkgdir}" install
}
sha512sums="0beb16a4ffc43fbc6364e456010b581fb55a79f7790ba698a754acb1bb39fb6256e77a3f9ccefe30f6bacd9201d674e31a3c6734fd98d082b35f3105521aff46 libevhtp-1.2.16.tar.gz"
|