2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Anatol Pomozov
|
|
|
|
# Contributor: Zhuoyun Wei <wzyboy@wzyboy.org>
|
|
|
|
|
|
|
|
pkgname=libnghttp2
|
2023-05-11 02:53:30 +02:00
|
|
|
_tag='00d2715ced9ea24e90a3bcbef1a54d5cecf208c5' # git rev-parse v${pkgver}
|
|
|
|
pkgver=1.53.0
|
|
|
|
pkgrel=1
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='Framing layer of HTTP/2 is implemented as a reusable C library'
|
2023-04-03 22:39:15 +02:00
|
|
|
arch=('x86_64')
|
2022-03-20 13:19:37 +01:00
|
|
|
url='https://nghttp2.org/'
|
2023-04-03 22:39:15 +02:00
|
|
|
license=('MIT')
|
|
|
|
depends=('glibc')
|
|
|
|
makedepends=('git')
|
2022-03-20 13:19:37 +01:00
|
|
|
conflicts=('nghttp2<1.20.0-2')
|
2023-04-03 22:39:15 +02:00
|
|
|
validpgpkeys=('F4F3B91474D1EB29889BD0EF7E8403D5D673C366') # Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
|
|
|
|
source=("git+https://github.com/nghttp2/nghttp2.git#tag=${_tag}?signed")
|
|
|
|
sha512sums=('SKIP')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
2023-04-03 22:39:15 +02:00
|
|
|
prepare() {
|
|
|
|
cd nghttp2
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
autoreconf -i
|
2023-04-03 22:39:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd nghttp2
|
|
|
|
|
2022-03-20 13:19:37 +01:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-examples \
|
|
|
|
--disable-python-bindings \
|
|
|
|
--enable-lib-only
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2023-04-03 22:39:15 +02:00
|
|
|
cd nghttp2
|
2022-03-20 13:19:37 +01:00
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-04-03 22:39:15 +02:00
|
|
|
cd nghttp2/lib
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/libnghttp2/COPYING"
|
|
|
|
}
|