# Contributor: Steve McMaster # Maintainer: Steve McMaster pkgname=libhtp pkgver=0.5.29 pkgrel=0 pkgdesc="HTTP normalizer and parser library" url="https://github.com/OISF/libhtp" arch="all" license="BSD" # the zlib-dev dependency is not listed in the .pc file but the headers # needs zlib.h, so we add explicit to depends_dev depends_dev="zlib-dev" makedepends="$depends_dev automake autoconf libtool" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/OISF/libhtp/archive/$pkgver.tar.gz " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" autoreconf -vif ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 make } package() { cd "$builddir" make DESTDIR="$pkgdir" install } check() { cd "$builddir" make check } sha512sums="2d009a709415945f4a48cbcafdd90ab617575c4c4b355643bcb4342c8f3236c5b21a684c3728024da5113ac87caf0f048be36f6e6a63a670fc564fc9deee4759 libhtp-0.5.29.tar.gz"