NAME="http-parser"
DESC="Parser for HTTP Request/Response written in C"
VERSION="2.9.4"
FILES=("https://github.com/nodejs/http-parser/archive/refs/tags/v$VERSION.tar.gz")
HASHES=("467b9e30fd0979ee301065e70f637d525c28193449e1b13fbcb1b1fab3ad224f")
DEPENDS=("glibc")

PACKAGE() {
  tar xf v$VERSION.tar.gz
  cd $NAME-$VERSION

  sed -i 's|-Werror||' Makefile
	make library
  make PREFIX="$ROOTDIR/usr" install

  cd .. && rm -r $NAME-$VERSION
}
