diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-04-12 06:49:51 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-04-12 06:49:51 +0000 |
commit | 3ecc1aceffb955409e0c0c85831d0883422d8c74 (patch) | |
tree | cabc9a2c471dda96ce828981b1323737435044a8 /main/nghttp2 | |
parent | 15980e5369e2477f5a3312c700d030b81b659e08 (diff) | |
download | aports-3ecc1aceffb955409e0c0c85831d0883422d8c74.tar.bz2 aports-3ecc1aceffb955409e0c0c85831d0883422d8c74.tar.xz |
main/nghttp2: enable static library and moved into a subpackage. Fixes #10229
Diffstat (limited to 'main/nghttp2')
-rw-r--r-- | main/nghttp2/APKBUILD | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/main/nghttp2/APKBUILD b/main/nghttp2/APKBUILD index 7a9b9f323f..5893c9cbd9 100644 --- a/main/nghttp2/APKBUILD +++ b/main/nghttp2/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=nghttp2 pkgver=1.37.0 -pkgrel=0 +pkgrel=1 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" -subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +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" builddir="$srcdir"/$pkgname-$pkgver @@ -36,12 +36,12 @@ build() { --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ - --disable-static \ --without-libxml2 \ --without-spdylay \ --without-neverbleed \ --without-jemalloc \ --disable-python-bindings \ + --enable-static \ --enable-app make } @@ -51,5 +51,15 @@ package() { 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="67a4b9df3f7f0edad719011fa289d9aa9ef04f31ef3ccf826b861c8830ed24e0743a33b54ab66d198fec7edbf723852b38a2007b335d7f566f702f4b02297b0f nghttp2-1.37.0.tar.xz d3f6a66ad6522babb5ad2b3721d52c1c2af88e57ed2895cf87037da1032ca42dcb95dacc23ea277b9507b4116cec117b5c9a3313759dc56b48199b687b74dd9a remove-mruby-tests.patch" |