mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
34 lines
876 B
Plaintext
34 lines
876 B
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=http-parser
|
|
pkgver=2.8.1
|
|
pkgrel=0
|
|
pkgdesc="HTTP request/response parser for C"
|
|
url="https://github.com/nodejs/http-parser"
|
|
arch="all"
|
|
license="MIT"
|
|
depends=""
|
|
makedepends=""
|
|
subpackages="$pkgname-dev"
|
|
# Note: All the patches are copied from Gentoo ebuild.
|
|
# upstream: https://github.com/nodejs/http-parser/pull/272
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/nodejs/$pkgname/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
make library
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make install DESTDIR="$pkgdir" PREFIX="/usr"
|
|
}
|
|
|
|
sha512sums="6f52f543d979f39688ccefae236527a8183929b3d30f5370570107b01cf89d0338b448249a81102b78d31615d2e8f6e7c708f8961f55ece08e7d3a40e5ad0883 http-parser-2.8.1.tar.gz"
|