blob: a7df196789d06d29333b1928beabf7ec6b2d886f (
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.9.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/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="731d43eecec51d522005d14b5427004f nghttp2-1.9.1.tar.xz"
sha256sums="b8f8a0a1abac50da1eeb9238d0dadcda9725a7fe95eb0b4f7a482beabaf2b5fb nghttp2-1.9.1.tar.xz"
sha512sums="937d181e62b33eaf96c9476f19d1ad1f5b0eb2f2779272f7e46d425d05903e60282abdac7d16e27cf895010a5040a2a51fc86dde1302e60d25435928d9b56df1 nghttp2-1.9.1.tar.xz"
|