mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-20 20:04:19 +08:00
jansson: convert recipe to toml
This commit is contained in:
parent
80cb620b93
commit
d5fcda1bfb
@ -1,27 +0,0 @@
|
||||
VERSION=2.10
|
||||
TAR=https://github.com/akheron/jansson/releases/download/v$VERSION/jansson-$VERSION.tar.gz
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export LDFLAGS="-L$sysroot/lib"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
./configure --build=${BUILD} --host=${HOST} --prefix=/
|
||||
"$REDOX_MAKE" -j"$($NPROC)"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
"$REDOX_MAKE" clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
"$REDOX_MAKE" DESTDIR="$dest" install
|
||||
skip=1
|
||||
}
|
||||
6
recipes/libs/jansson/recipe.toml
Normal file
6
recipes/libs/jansson/recipe.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[source]
|
||||
tar = "https://github.com/akheron/jansson/releases/download/v2.10/jansson-2.10.tar.gz"
|
||||
blake3 = "3c74f374a6c7ac5e323f72d87e49e5309ca922ca26cfe4992873b31f28776624"
|
||||
|
||||
[build]
|
||||
template = "configure"
|
||||
Loading…
Reference in New Issue
Block a user