# Contributor: Natanael Copa # Maintainer: pkgname=nghttp2 pkgver=1.3.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="24df3ea1d68f98f628562092fecc19af nghttp2-1.3.0.tar.xz" sha256sums="85be1e859cf310bd13204c58d1e4539cfb1d74eb5ef6b0146063fa2907d7b3f2 nghttp2-1.3.0.tar.xz" sha512sums="42f04f6cd6666ed3db6fa81e7c6abdad8baa8af46a4e9e1f9694887e8037cd505bae467b55555144b810456061e1cfbb0106219e5ff74aec95cbc65c161b30da nghttp2-1.3.0.tar.xz"