Skip to content
Snippets Groups Projects
Commit b9d7ab7e authored by alice's avatar alice
Browse files

community/libevhtp: build with samurai

parent e3f13f39
No related merge requests found
......@@ -3,26 +3,28 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevhtp
pkgver=1.2.18
pkgrel=5
pkgrel=6
pkgdesc="Flexible replacement for libevent's httpd API"
options="!check" # No testsuite
url="https://github.com/Yellow-Camper/libevhtp"
arch="all"
license="BSD-3-Clause"
makedepends="cmake libevent-dev openssl-dev>3 oniguruma-dev"
makedepends="cmake libevent-dev openssl-dev>3 oniguruma-dev samurai"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/Yellow-Camper/libevhtp/archive/$pkgver.tar.gz"
build() {
cmake \
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON
make
cmake --build build
}
package() {
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="e01d771a9358fcf912578f34acd235711a3231029b453781f2992cf51cea26aa3f1eb170d3a834f15d4f9b3f37235fb006853eeee509945e2c18e3a7fbb06ae4 libevhtp-1.2.18.tar.gz"
sha512sums="
e01d771a9358fcf912578f34acd235711a3231029b453781f2992cf51cea26aa3f1eb170d3a834f15d4f9b3f37235fb006853eeee509945e2c18e3a7fbb06ae4 libevhtp-1.2.18.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment