mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 23:04:19 +08:00
Add nghttp2
This commit is contained in:
parent
f31064caa1
commit
8e7074e369
40
recipes/nghttp2/recipe.sh
Normal file
40
recipes/nghttp2/recipe.sh
Normal 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
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user