# Maintainer: Zhuoyun Wei pkgname=nghttp2 pkgver=1.3.4 _pkgver=v1.3.4 pkgrel=1 pkgdesc="HTTP/2 C Library" arch=('i686' 'x86_64') url="https://nghttp2.org/" license=('MIT') depends=('openssl' 'libev' 'zlib' 'libxml2' 'jansson' 'jemalloc') source=("https://github.com/tatsuhiro-t/nghttp2/releases/download/${_pkgver}/nghttp2-${pkgver}.tar.gz") backup=('etc/nghttpx/nghttpx.conf' 'etc/logrotate.d/nghttpx') sha256sums=('70da762f021ca6a56912da112f414da8100b035e635bfb056fcf35289229e9ce') build() { cd "$srcdir/$pkgname-$pkgver" ./configure \ --prefix=/usr \ --with-spdylay=no \ --disable-examples \ --disable-python-bindings make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -Dm644 contrib/nghttpx.service "$pkgdir/usr/lib/systemd/system/nghttpx.service" install -Dm644 contrib/nghttpx-logrotate "$pkgdir/etc/logrotate.d/nghttpx" install -Dm644 nghttpx.conf.sample "$pkgdir/etc/nghttpx/nghttpx.conf" install -Dm644 COPYING "$pkgdir/usr/share/licenses/nghttp2/COPYING" }