# Contributor: Natanael Copa # Maintainer: pkgname=nghttp2 pkgver=1.6.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="b5b45ade2c9552a571278815d362a0f3 nghttp2-1.6.0.tar.xz" sha256sums="cc569501d243c934ea980a1f68fadb8ccc4f133ae8a5b15dcd29f0de76f9bac3 nghttp2-1.6.0.tar.xz" sha512sums="d0438e71c26063072e9fcae21ccbca760b122ba9f2a61440c2688d4e42a0d8309e28d12545951b6ec98399304e9a62887b129e17c1ea39eee5d6db669c5ae486 nghttp2-1.6.0.tar.xz"