Revert "Remove xz"

This reverts commit f3c0a067c96093bf81326952fec78ce543df47fe.
This commit is contained in:
BtbN 2024-07-30 20:39:41 +02:00
parent 86a3439d3d
commit 31f5efbaf7

41
scripts.d/25-xz.sh Executable file
View File

@ -0,0 +1,41 @@
#!/bin/bash
SCRIPT_REPO="https://github.com/tukaani-project/xz.git"
SCRIPT_COMMIT="6e8732c5a317a349986a4078718f1d95b67072c5"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
./autogen.sh --no-po4a --no-doxygen
local myconf=(
--prefix="$FFBUILD_PREFIX"
--disable-symbol-versions
--disable-shared
--enable-static
--with-pic
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {
echo --enable-lzma
}
ffbuild_unconfigure() {
echo --disable-lzma
}