aboutsummaryrefslogtreecommitdiffstats
path: root/main/nghttp2/APKBUILD
blob: fe642f1f16fd1e6eb4b9f5e4d685863e99111d1a (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.14.1
pkgrel=0
pkgdesc="Experimental HTTP/2 client, server and proxy"
url="https://nghttp2.org/"
arch="all"
license="MIT"
depends=""
makedepends="python2-dev libev-dev openssl-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="f11be3a51af6e1f0a5539efdcb7d9e8f  nghttp2-1.14.1.tar.xz"
sha256sums="2dfa665cd898b0b03ce304d9fc2e20c6c5facf56b212e4b2b1834ed6314c897e  nghttp2-1.14.1.tar.xz"
sha512sums="36f7383096ac1cb7c978ddc87c4118e79ab213e005576460c3569d282d876ab1ea2d37ca7f59eb1d1935ae14046a23c2332450df27c929c74010156d1581bb61  nghttp2-1.14.1.tar.xz"