mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-18 22:32:28 +01:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=llhttp
|
|
pkgver=6.0.6
|
|
pkgrel=0
|
|
pkgdesc="Port of http_parser to llparse"
|
|
url="https://llhttp.org/"
|
|
license="MIT"
|
|
arch="all !riscv64" # limited by nodejs/npm
|
|
makedepends="cmake clang npm"
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="https://github.com/nodejs/llhttp/archive/v$pkgver/llhttp-$pkgver.tar.gz
|
|
soname.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
npm ci
|
|
}
|
|
|
|
build() {
|
|
make release
|
|
cmake -S release -B releasebuild \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_SHARED_LIBS=ON
|
|
cmake --build releasebuild
|
|
}
|
|
|
|
check() {
|
|
npm test
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install releasebuild
|
|
install -Dm644 LICENSE-MIT "$pkgdir"/usr/share/doc/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
6d621aafcf8b0fcddfb8ceb04b69caa4c79f4b955c9548ee8616290a538fcbdd3b2f1f1d35c6609e03d49de01db2b771a60e38fd7f277dd89b5f1a0abc0c31ae llhttp-6.0.6.tar.gz
|
|
17bb4f27f4e09cda3909451f1825bbba59148b24ffc542f6bb691ce0b0167e50a91c62ed3ead97e6c7b18a67e97bfefca1939d2431e40f83a0a88090f63b1778 soname.patch
|
|
"
|