aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nghttp2/APKBUILD
blob: a3c422eb359374b1f8a0a20ab5b471cd281030e7 (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:
pkgname=nghttp2
pkgver=1.3.2
pkgrel=0
pkgdesc="Experimental HTTP/2 client, server and proxy"
url="https://nghttp2.org/"
arch="all"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev libev-dev openssl-dev zlib-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://github.com/tatsuhiro-t/nghttp2/releases/download/v$pkgver/nghttp2-$pkgver.tar.xz"

_builddir="$srcdir"/nghttp2-$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="fe9c9cccbc314b0f9a4056bef4ba7362  nghttp2-1.3.2.tar.xz"
sha256sums="3188f46a7f1de852d65a3d34c0c60f69f870c49555944ef1b1fc7df6ce9f02a8  nghttp2-1.3.2.tar.xz"
sha512sums="a29f6e371de19e13be8c01d9ad75c871b381a182012758666f927964e32a84fea2f0119d9ed5b2a52ef899e38261e5518e95b9a13da08f0d42ed26c2e154ee9a  nghttp2-1.3.2.tar.xz"