# Contributor: Natanael Copa # Maintainer: pkgname=nghttp2 pkgver=1.7.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="fd51e2cfce29bbe51aa3ed79b7ee1e8b nghttp2-1.7.0.tar.xz" sha256sums="0de13c21507b01e80531bbe69617ce2b8a33305a74f22ec3b5b0d111a5daeeb5 nghttp2-1.7.0.tar.xz" sha512sums="aff796e375a520cfc1752b73e73925772369aa31aaaaa2b99d9bcb975d04968dafa8b804a5aef27bb242826bc3015357f2aa943796e9c7ac763c3f566762723a nghttp2-1.7.0.tar.xz"