libnghttp2/PKGBUILD
2024-11-04 18:58:01 +08:00

55 lines
1.4 KiB
Bash

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=libnghttp2
pkgver=1.64.0
pkgrel=1
pkgdesc="Framing layer of HTTP/2 is implemented as a reusable C library"
arch=('x86_64')
url="https://nghttp2.org/"
license=('MIT')
depends=('glibc')
makedepends=('git')
source=(git+https://github.com/nghttp2/nghttp2.git#tag=v${pkgver}
git+https://github.com/ngtcp2/munit.git
git+https://github.com/mruby/mruby.git
git+https://github.com/tatsuhiro-t/neverbleed.git)
sha256sums=(SKIP
SKIP
SKIP
SKIP)
prepare() {
cd nghttp2
git config --file=.gitmodules submodule.tests/munit.url ${srcdir}/munit/
git config --file=.gitmodules submodule.third-party/mruby.url ${srcdir}/mruby/
git config --file=.gitmodules submodule.tests/neverbleed.url ${srcdir}/neverbleed/
git submodule init
git -c protocol.file.allow=always submodule update
autoreconf -i
}
build() {
cd nghttp2
${CONFIGURE} \
--disable-static \
--enable-lib-only \
--disable-examples \
--disable-python-bindings
make
}
package() {
cd nghttp2
make -C lib DESTDIR=${pkgdir} install
}