Add nghttp2

This commit is contained in:
Jeremy Soller 2019-04-09 17:57:08 -06:00
parent f31064caa1
commit 8e7074e369
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

40
recipes/nghttp2/recipe.sh Normal file
View File

@ -0,0 +1,40 @@
VERSION=1.37.0
TAR=https://github.com/nghttp2/nghttp2/releases/download/v${VERSION}/nghttp2-${VERSION}.tar.xz
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
./configure \
--build="${BUILD}" \
--host="${HOST}" \
--prefix="" \
--enable-lib-only
make -j"$(nproc)"
skip=1
}
function recipe_test {
echo "skipping test"
skip=1
}
function recipe_clean {
make clean
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
make install DESTDIR="$dest"
find "$dest/lib" -exec ${HOST}-strip {} ';' 2> /dev/null
rm -f "$dest/lib/"*.la
skip=1
}