# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=http-parser pkgver=2.9.0 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="40acecbf71b9f0b4ae857c74c3ec0784d7f341a0cb83cf82b308387d0c5b56d38b282241aaf8ca93816970f2a9e67989f3d9d456459f3986c29fe51ab520155e http-parser-2.9.0.tar.gz"