# Contributor: Natanael Copa # Maintainer: Francesco Colista pkgname=nghttp2 pkgver=1.11.0 pkgrel=0 pkgdesc="Experimental HTTP/2 client, server and proxy" url="https://nghttp2.org/" arch="all" license="MIT" depends="" depends_dev="" makedepends="$depends_dev python-dev libev-dev openssl-dev zlib-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="https://github.com/tatsuhiro-t/$pkgname/releases/download/v$pkgver/nghttp2-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-ptyhon-bindings \ --disable-static \ --without-libxml2 \ --without-spdylay \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="6386c0f209bc51d1730038d7defdc484 nghttp2-1.11.0.tar.xz" sha256sums="40457054017318221fc6a4a65ec3250008919cf7eadf7f0f5eca19793ef0a730 nghttp2-1.11.0.tar.xz" sha512sums="cea5362a5064d111a69ff6ee5acfde6011e4df6889984044d8afb298e3f6219935bf312559784d6016716a4dd557ddfb703850b0f7099f19a9b2eab3efbdf605 nghttp2-1.11.0.tar.xz"