mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 12:24:17 +08:00
42 lines
685 B
Bash
42 lines
685 B
Bash
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 {
|
|
export CFLAGS="-static"
|
|
|
|
./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"
|
|
rm -f "$dest/lib/"*.la
|
|
skip=1
|
|
}
|