# Contributor: Natanael Copa # Maintainer: pkgname=nghttp2 pkgver=1.5.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 libev-dev openssl-dev zlib-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="https://github.com/tatsuhiro-t/nghttp2/releases/download/v$pkgver/nghttp2-$pkgver.tar.xz" _builddir="$srcdir"/nghttp2-$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="eac2f94ca8f233a861c6a7f73c61a29d nghttp2-1.5.0.tar.xz" sha256sums="52e345d46d6f990dc19be8a35403a5230345182d26d04cb82abbea4a168f5987 nghttp2-1.5.0.tar.xz" sha512sums="8a8e9f53468edfb914a48eeadd6918042eb7e61e667a807f3fa9be751bfd90ba1351ce2fdad1dac482ab01df1df9c0d4f0fe6074c83b929fec72c944c2746d08 nghttp2-1.5.0.tar.xz"