aboutsummaryrefslogblamecommitdiffstats
path: root/main/nghttp2/APKBUILD
blob: 98f9de3920dfa15cff0b476567078d6a9e7ca82e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    
                                                          
               

             
                                                      
                         

             
                                             
                                                                      
                                                                     
                                                                                                 

                                    
                                   
 




                     


                      





                                                                

 
         
                      
                       







                                           
                                   

                                      
                                           
                                 

                            


           
                      
                                      

 









                                                   
                                                                                                                                                                   

                                                                                                                                                                      
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=nghttp2
pkgver=1.40.0
pkgrel=0
pkgdesc="Experimental HTTP/2 client, server and proxy"
url="https://nghttp2.org"
arch="all"
license="MIT"
makedepends_build="autoconf automake libtool"
makedepends_host="libev-dev openssl-dev zlib-dev c-ares-dev cunit-dev"
subpackages="$pkgname-static $pkgname-doc $pkgname-dev $pkgname-libs"
source="https://github.com/tatsuhiro-t/$pkgname/releases/download/v$pkgver/nghttp2-$pkgver.tar.xz
remove-mruby-tests.patch
disable-failing-musl-unittest.patch"
builddir="$srcdir"/$pkgname-$pkgver

# secfixes:
#   1.39.2-r0:
#     - CVE-2019-9511
#     - CVE-2019-9513

check() {
	cd "$builddir"
	make check
	# integration tests require go, which is only available
	# in community at the moment of writing. Disabling until
	# go is moved into main
#	cd "integration-tests"
#	make itprep
#	make it
}

build() {
	cd "$builddir"
	autoreconf -vif
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--without-libxml2 \
		--without-neverbleed \
		--without-jemalloc \
		--disable-python-bindings \
		--enable-static \
		--enable-app
	make
}

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

static() {
	pkgdesc="$pkgname static libraries"
	mkdir -p "$subpkgdir"/usr/lib
	cd "$pkgdir"
	for _lib in  $(find . -name '*.a'); do
		mkdir -p "$subpkgdir"/${_lib%/*}
		mv "$_lib" "$subpkgdir"/${_lib%/*}/
	done
}

sha512sums="3f9b989c4bd9571b11bb9d59fe2dfd5596ba3962babfc836587d5047e780400a6cf46e43c602caa25ca83c03b84a1629953140d45223099b193df54a719745ce  nghttp2-1.40.0.tar.xz
d3f6a66ad6522babb5ad2b3721d52c1c2af88e57ed2895cf87037da1032ca42dcb95dacc23ea277b9507b4116cec117b5c9a3313759dc56b48199b687b74dd9a  remove-mruby-tests.patch
ad9a645e00d33747338cd23d1d0ff7c744ea6abd504b9175e086574d23881b188fd014464b660923ff37a64c0c46c4379c96374ac8997b03eb2350f9ec817740  disable-failing-musl-unittest.patch"