aboutsummaryrefslogtreecommitdiffstats
path: root/community/libevhtp/APKBUILD
blob: 4f26a49c7b83397806784aa2ea4892b504ba9bd9 (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevhtp
pkgver=1.2.18
pkgrel=1
pkgdesc="Flexible replacement for libevent's httpd API"
options="!check" # No testsuite
url="https://github.com/criticalstack/libevhtp/"
arch="all"
license="BSD-3-Clause"
makedepends="cmake libevent-dev openssl-dev oniguruma-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/criticalstack/libevhtp/archive/$pkgver.tar.gz"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=ON
	make
}

package() {
	make DESTDIR="${pkgdir}" install
}

sha512sums="e01d771a9358fcf912578f34acd235711a3231029b453781f2992cf51cea26aa3f1eb170d3a834f15d4f9b3f37235fb006853eeee509945e2c18e3a7fbb06ae4  libevhtp-1.2.18.tar.gz"