mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 04:44:19 +08:00
Add dash recipe
This commit is contained in:
parent
a6195c65b0
commit
fe9e69d273
48
recipes/dash/recipe.sh
Normal file
48
recipes/dash/recipe.sh
Normal file
@ -0,0 +1,48 @@
|
||||
GIT=https://github.com/redox-os/dash.git
|
||||
BRANCH=redox
|
||||
|
||||
HOST=x86_64-elf-redox
|
||||
export AR="${HOST}-ar"
|
||||
export AS="${HOST}-as"
|
||||
export CC="${HOST}-gcc"
|
||||
export CXX="${HOST}-g++"
|
||||
export LD="${HOST}-ld"
|
||||
export NM="${HOST}-nm"
|
||||
export OBJCOPY="${HOST}-objcopy"
|
||||
export OBJDUMP="${HOST}-objdump"
|
||||
export RANLIB="${HOST}-ranlib"
|
||||
export READELF="${HOST}-readelf"
|
||||
export STRIP="${HOST}-strip"
|
||||
|
||||
function recipe_version {
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_update {
|
||||
echo "skipping update"
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
./autogen.sh
|
||||
./configure --host=${HOST} --prefix=/
|
||||
make
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_test {
|
||||
echo "skipping test"
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_clean {
|
||||
make clean
|
||||
return 1
|
||||
}
|
||||
|
||||
function recipe_stage {
|
||||
dest="$(realpath $1)"
|
||||
make DESTDIR="$dest" install
|
||||
return 1
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user