summaryrefslogtreecommitdiffstats
path: root/abs/extra/http-parser/PKGBUILD
blob: 668229c9404e8e38aa47bcc7663d7fe6ae5fcca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"
}