diffutils: convert to toml

This commit is contained in:
Jeremy Soller 2023-12-13 14:56:11 -07:00
parent 859ba46161
commit 7e696080e9
No known key found for this signature in database
GPG Key ID: DCFCA852D3906975
2 changed files with 21 additions and 36 deletions

View File

@ -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
}

View 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
"""