mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
diffutils: convert to toml
This commit is contained in:
parent
859ba46161
commit
7e696080e9
@ -1,36 +0,0 @@
|
||||
VERSION=3.6
|
||||
TAR=https://ftp.gnu.org/gnu/diffutils/diffutils-$VERSION.tar.xz
|
||||
|
||||
function recipe_version {
|
||||
echo "$VERSION"
|
||||
skip=1
|
||||
}
|
||||
|
||||
function recipe_build {
|
||||
export LDFLAGS="-static"
|
||||
autoreconf
|
||||
./configure \
|
||||
--build=${BUILD} \
|
||||
--host=${HOST} \
|
||||
--prefix=/ \
|
||||
gt_cv_locale_fr=false \
|
||||
gt_cv_locale_fr_utf8=false \
|
||||
gt_cv_locale_ja=false \
|
||||
gt_cv_locale_tr_utf8=false \
|
||||
gt_cv_locale_zh_CN=false
|
||||
"$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
|
||||
${HOST}-strip "$dest"/bin/*
|
||||
rm -rf "$dest"/{lib,share}
|
||||
skip=1
|
||||
}
|
||||
21
recipes/tools/diffutils/recipe.toml
Normal file
21
recipes/tools/diffutils/recipe.toml
Normal file
@ -0,0 +1,21 @@
|
||||
[source]
|
||||
tar = "https://ftp.gnu.org/gnu/diffutils/diffutils-3.6.tar.xz"
|
||||
blake3 = "086a95093c15edcdb826e75ff4de6c2213de6fbd2eb13538d07bdc3286dfb4a4"
|
||||
patches = ["diffutils.patch"]
|
||||
script = """
|
||||
autoreconf
|
||||
"""
|
||||
|
||||
[build]
|
||||
template = "custom"
|
||||
script = """
|
||||
export LDFLAGS="-static"
|
||||
COOKBOOK_CONFIGURE_FLAGS+=(
|
||||
gt_cv_locale_fr=false
|
||||
gt_cv_locale_fr_utf8=false
|
||||
gt_cv_locale_ja=false
|
||||
gt_cv_locale_tr_utf8=false
|
||||
gt_cv_locale_zh_CN=false
|
||||
)
|
||||
cookbook_configure
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user