aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nghttp2/APKBUILD
blob: 11a2b239a06dd63727bd4bb4db1f8493f47d405c (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
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=nghttp2
pkgver=1.11.1
pkgrel=0
pkgdesc="Experimental HTTP/2 client, server and proxy"
url="https://nghttp2.org/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev python-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
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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

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

md5sums="22b3a70df7a0bb3a734b2d44973f1a0c  nghttp2-1.11.1.tar.xz"
sha256sums="865914ff3005df7a67c8d9ac474a900abc7c38d426a8c6fea8ce29dfe86da6ea  nghttp2-1.11.1.tar.xz"
sha512sums="4763eb66d40a28829fc92b4a88c18988c8e935e6676419f6d2b6a46ece2dccb3668de5727f7b06dbc6abbd82f3540f9e824df06861294c4f0f34338eab2a2f54  nghttp2-1.11.1.tar.xz"