aboutsummaryrefslogtreecommitdiffstats
path: root/community/libhtp/APKBUILD
blob: 173062e21d99d231e717dfeef32899a437f60851 (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
40
41
42
# Contributor: Steve McMaster <code@mcmaster.io>
# Maintainer: Steve McMaster <code@mcmaster.io>
pkgname=libhtp
pkgver=0.5.25
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="130e4af4c7b3d949472eb355334cb719d6792b57be41b847ee1aaaaf18aaf678dbef8137adc1567ec09bcef5ca6eb45d113776503173a7225e68a708c750ee21  libhtp-0.5.25.tar.gz"