mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 22:04:19 +08:00
Add duktape recipe
This commit is contained in:
parent
282bd44ea1
commit
0ab0a11720
35
recipes/duktape/recipe.sh
Normal file
35
recipes/duktape/recipe.sh
Normal file
@ -0,0 +1,35 @@
|
||||
VERSION=2.2.0
|
||||
TAR=http://duktape.org/duktape-$VERSION.tar.xz
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
sed -i "s/= gcc/= $TARGET-gcc/g" Makefile.cmdline
|
||||
make -f Makefile.cmdline
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_test {
|
||||
echo "skipping test"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
make clean
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
mkdir -pv "$1/bin"
|
||||
cp ./duk "$1/bin/duk"
|
||||
|
||||
skip=1
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user