Merge pull request #135 from xTibor/duktape

Add duktape recipe
This commit is contained in:
Jeremy Soller 2018-03-24 16:47:37 -06:00 committed by GitHub
commit 8296057a37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

35
recipes/duktape/recipe.sh Normal file
View 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
}