From 3f3f3acd64550ce1585eef934c10e9b918894278 Mon Sep 17 00:00:00 2001 From: Steve McMaster Date: Sat, 19 Aug 2017 17:03:07 -0400 Subject: [PATCH] community/libhtp: Move from testing to community --- {testing => community}/libhtp/APKBUILD | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) rename {testing => community}/libhtp/APKBUILD (74%) diff --git a/testing/libhtp/APKBUILD b/community/libhtp/APKBUILD similarity index 74% rename from testing/libhtp/APKBUILD rename to community/libhtp/APKBUILD index 26826394bb8..173062e21d9 100644 --- a/testing/libhtp/APKBUILD +++ b/community/libhtp/APKBUILD @@ -7,10 +7,10 @@ pkgdesc="HTTP normalizer and parser library" url="https://github.com/OISF/libhtp" arch="all" license="BSD" -depends="zlib" +# 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="automake autoconf libtool zlib-dev" -install="" +makedepends="$depends_dev automake autoconf libtool" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/OISF/libhtp/archive/$pkgver.tar.gz " @@ -18,7 +18,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/OISF/libhtp/archive/$pkgver. builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" - autoreconf -vif || return 1 + autoreconf -vif ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -27,11 +27,16 @@ build() { --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 - make || return 1 + make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install +} + +check() { + cd "$builddir" + make check } sha512sums="130e4af4c7b3d949472eb355334cb719d6792b57be41b847ee1aaaaf18aaf678dbef8137adc1567ec09bcef5ca6eb45d113776503173a7225e68a708c750ee21 libhtp-0.5.25.tar.gz"