Skip to content

Commit

Permalink
Change xz repo
Browse files Browse the repository at this point in the history
the old one has been archived

Signed-off-by: nanake <nanake@users.noreply.github.com>
  • Loading branch information
nanake committed Nov 26, 2023
1 parent dc8a4b4 commit 1a9cda8
Showing 1 changed file with 16 additions and 23 deletions.
39 changes: 16 additions & 23 deletions scripts.d/25-xz.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

XZ_REPO="https://github.com/xz-mirror/xz.git"
XZ_COMMIT="74c3449d8b816a724b12ebce7417e00fb597309a"
XZ_REPO="https://github.com/tukaani-project/xz.git"
XZ_COMMIT="12b89bcc9915090eb42ae638e565af44b6832a23"

ffbuild_enabled() {
return 0
Expand All @@ -11,27 +11,20 @@ ffbuild_dockerbuild() {
git-mini-clone "$XZ_REPO" "$XZ_COMMIT" xz
cd xz

./autogen.sh --no-po4a --no-doxygen

local myconf=(
--prefix="$FFBUILD_PREFIX"
--disable-{shared,doc,lzmadec,lzmainfo,nls,scripts,xz,xzdec}
--enable-static
--with-pic
)

if [[ $TARGET == win* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi

./configure "${myconf[@]}"
make -j"$(nproc)"
make install
mkdir build && cd build

cmake \
-DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
-DBUILD_{SHARED_LIBS,TESTING}=OFF \
-DENABLE_THREADS=posix \
-DCMAKE_USE_PTHREADS_INIT=ON \
-GNinja \
..

ninja -j"$(nproc)"
ninja install
}

ffbuild_configure() {
Expand Down

0 comments on commit 1a9cda8

Please sign in to comment.