diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-04-27 15:24:31 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-04-27 15:24:31 (GMT) |
commit | 0381ef5ed937e31abcf3e2e66e23a52b934fd5d9 (patch) | |
tree | 286e3488293f3d078bf0a4360f8f935203f59d52 /abs/extra/http-parser | |
parent | 2713ceae0b96d8a35292ffbc4377ce6c5178249e (diff) | |
download | linhes_pkgbuild-0381ef5ed937e31abcf3e2e66e23a52b934fd5d9.zip linhes_pkgbuild-0381ef5ed937e31abcf3e2e66e23a52b934fd5d9.tar.gz linhes_pkgbuild-0381ef5ed937e31abcf3e2e66e23a52b934fd5d9.tar.bz2 |
http-parser: initial inclusion. dep of nodejs v6
Diffstat (limited to 'abs/extra/http-parser')
-rw-r--r-- | abs/extra/http-parser/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/abs/extra/http-parser/PKGBUILD b/abs/extra/http-parser/PKGBUILD new file mode 100644 index 0000000..668229c --- /dev/null +++ b/abs/extra/http-parser/PKGBUILD @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Felix Yan <felixonmars@archlinux.org> +# Contributor: Brian Bidulock <bidulock@openss7.org> + +pkgname=http-parser +pkgver=2.7.0 +pkgrel=1 +pkgdesc="Parser for HTTP Request/Response written in C" +arch=('i686' 'x86_64') +url="https://github.com/nodejs/http-parser" +license=('MIT') +depends=('glibc') +makedepends=('git') +source=("git+https://github.com/nodejs/http-parser.git#tag=v$pkgver") +md5sums=('SKIP') + +prepare() { + sed -i 's|-Werror||' $pkgname/Makefile +} + +build() { + cd $pkgname + make library +} + +check() { + cd $pkgname + make test +} + +package() { + cd $pkgname + make PREFIX="$pkgdir/usr" install + + install -Dm644 LICENSE-MIT \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT" + + ln -sf libhttp_parser.so.$pkgver "${pkgdir}/usr/lib/libhttp_parser.so" +} |