mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-06 14:12:23 +01: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.9.2
|
|
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="fe21ba46c9297b55a6382497b689da2af88999a9a5716ffef0731057ce1bb053056e4f20147284c78338e48ed1a793a0270fe0edfe3f4b589926e3ede603d023 http-parser-2.9.2.tar.gz"
|