aboutsummaryrefslogtreecommitdiffstats
path: root/main/nghttp2/APKBUILD
blob: df33120fc39625f336faec3a0ff26b1f72f15313 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=nghttp2
pkgver=1.16.0
pkgrel=0
pkgdesc="Experimental HTTP/2 client, server and proxy"
url="https://nghttp2.org/"
arch="all"
license="MIT"
depends=""
makedepends="python2-dev libev-dev libressl-dev zlib-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://github.com/tatsuhiro-t/$pkgname/releases/download/v$pkgver/nghttp2-$pkgver.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		--without-libxml2 \
		--without-spdylay \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="583dfd423dbf276eb4cd8df8fb61b8bc  nghttp2-1.16.0.tar.xz"
sha256sums="311d53e13d1aea8991d06f7963b75dc0a853eca961e53a38b6bd3d8b1d89019d  nghttp2-1.16.0.tar.xz"
sha512sums="8dccecea61cdbbeeefefaba078af76125cfa81231fb36202055e0abda6153ffdb86d7e58133edfd65b2a517e36a617d13f32459b922774a48bc5dc93d3f57d77  nghttp2-1.16.0.tar.xz"