81 lines
2.3 KiB
Bash
81 lines
2.3 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=libnghttp2
|
|
pkgver=1.63.0
|
|
pkgrel=01
|
|
pkgdesc='Framing layer of HTTP/2 is implemented as a reusable C library'
|
|
url='https://nghttp2.org/'
|
|
depends=(glibc)
|
|
makedepends=('automake' 'autoconf' 'git')
|
|
conflicts=('nghttp2<1.20.0-2')
|
|
provides=('libnghttp2.so')
|
|
#source=(https://github.com/nghttp2/nghttp2/releases/download/v$pkgver/nghttp2-$pkgver.tar.xz)
|
|
#source=("git+https://github.com/nghttp2/nghttp2.git#tag=${_tag}?signed"
|
|
source=("git+https://github.com/nghttp2/nghttp2.git#tag=v${pkgver}?signed"
|
|
'git+https://github.com/ngtcp2/munit.git'
|
|
'git+https://github.com/mruby/mruby.git'
|
|
'git+https://github.com/tatsuhiro-t/neverbleed.git')
|
|
|
|
prepare() {
|
|
cd nghttp2
|
|
|
|
git config --file=.gitmodules submodule.tests/munit.url ../munit/
|
|
git config --file=.gitmodules submodule.third-party/mruby.url ../mruby/
|
|
git config --file=.gitmodules submodule.tests/neverbleed.url ../neverbleed/
|
|
|
|
git submodule init
|
|
git -c protocol.file.allow=always submodule update
|
|
|
|
autoreconf -i
|
|
}
|
|
|
|
build() {
|
|
|
|
cd nghttp2
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-examples \
|
|
--disable-python-bindings \
|
|
--enable-lib-only
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# cd nghttp2-$pkgver
|
|
cd nghttp2
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
# cd nghttp2-$pkgver/lib
|
|
cd nghttp2/lib
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/libnghttp2/COPYING"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(MIT)
|
|
|
|
validpgpkeys=('F4F3B91474D1EB29889BD0EF7E8403D5D673C366') # Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
|
|
|
|
sha512sums=('b95341a958ea32c6131c9598cf75a3232b963a798d314a94df05b363a7b0a144014c48ac2a436fb867f742ce6761a8ca5a6a87cdbdee94d9fdcab5d3412415c5'
|
|
'SKIP'
|
|
'SKIP'
|
|
'SKIP')
|
|
|
|
sha256sums=(1c3d53df82f24e19a4f47087c7991ac8e52e08bba0335adf3d1d4a26f4e6ef80 # nghttp2
|
|
SKIP
|
|
SKIP
|
|
SKIP)
|
|
|
|
## ca30c3d125917ff9f992cf061ec20678ace97edf7627f04d43fcaea09db62c47 libnghttp2-1.63.0-01-x86_64.pkg.tar.lz
|
|
|