diff --git a/recipes/nghttp2/recipe.sh b/recipes/nghttp2/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b73275d4531fdec54716c84cec069600e3f66cc --- /dev/null +++ b/recipes/nghttp2/recipe.sh @@ -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 +}