upgpkg: sbcl 2.2.9-1
[arch-packages.git] / http-parser / trunk / PKGBUILD
blob108d91b16245767b595b185d6b61f35deda9edcb
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Brian Bidulock <bidulock@openss7.org>
4 pkgname=http-parser
5 pkgver=2.9.4
6 pkgrel=1
7 pkgdesc="Parser for HTTP Request/Response written in C"
8 arch=('x86_64')
9 url="https://github.com/nodejs/http-parser"
10 license=('MIT')
11 depends=('glibc')
12 source=($pkgname-$pkgver.tar.gz::"${url}/archive/v$pkgver.tar.gz")
13 sha512sums=('b45df7b94d1c51079d44687d0a7f901f44faae51df4e84c7e3fe38f130c2d809d0e7c2a146c57b3723e60732aededc246bf44eadb10a95b710963d641f9fe7cd')
15 prepare() {
16   sed -i 's|-Werror||' $pkgname-$pkgver/Makefile
19 build() {
20   cd $pkgname-$pkgver
21   make library
24 check() {
25   cd $pkgname-$pkgver
26   make test
29 package() {
30   cd $pkgname-$pkgver
31   make PREFIX="$pkgdir/usr" install
32   install -Dm644 LICENSE-MIT -t "$pkgdir"/usr/share/licenses/$pkgname/