summaryrefslogtreecommitdiff
path: root/system/nghttp2/APKBUILD
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-11-07 17:20:18 +0000
committerZach van Rijn <me@zv.io>2021-11-07 17:20:18 +0000
commit5b7fdab13bde1f85f838e34199dcf551e6ea6f76 (patch)
tree1a970980f607a132b3bd324721b727277edb8850 /system/nghttp2/APKBUILD
parent818b68caae7c3a484f6f5011805690973a7d8dff (diff)
parentd045b5bca8cd983b9512fd45e19d2c5770323a32 (diff)
downloadpackages-5b7fdab13bde1f85f838e34199dcf551e6ea6f76.tar.gz
packages-5b7fdab13bde1f85f838e34199dcf551e6ea6f76.tar.bz2
packages-5b7fdab13bde1f85f838e34199dcf551e6ea6f76.tar.xz
packages-5b7fdab13bde1f85f838e34199dcf551e6ea6f76.zip
Merge branch 'move/nghttp2' into 'master'
Move nghttp2 for HTTP/2 support in system/curl See merge request adelie/packages!637
Diffstat (limited to 'system/nghttp2/APKBUILD')
-rw-r--r--system/nghttp2/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/system/nghttp2/APKBUILD b/system/nghttp2/APKBUILD
new file mode 100644
index 000000000..a1f7c74c6
--- /dev/null
+++ b/system/nghttp2/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Síle Ekaterin Liszka <sheila@adelielinux.org>
+pkgname=nghttp2
+pkgver=1.46.0
+pkgrel=0
+pkgdesc="Experimental HTTP/2 client, server and proxy"
+url="https://nghttp2.org/"
+arch="all"
+options="!check" # Requires cunit, which we don't currently ship
+license="MIT"
+depends=""
+makedepends="c-ares-dev libev-dev libxml2-dev openssl-dev zlib-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="https://github.com/tatsuhiro-t/$pkgname/releases/download/v$pkgver/nghttp2-$pkgver.tar.xz"
+
+# secfixes:
+# 1.41.0-r0:
+# - CVE-2020-11080
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static \
+ --without-neverbleed \
+ --without-jemalloc \
+ --disable-python-bindings \
+ --enable-app
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="fcf3573bcc421705190c7cf0e3230f6f3028b669cb2976d29cfeb73e706deaae91ce60d0a615472e3f296454049ea5798f1e8defdd260a98895e94fea6a7a16b nghttp2-1.46.0.tar.xz"