From af17b294149fc4001157771caf457d2f9959f781 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 17 Apr 2026 18:39:18 +0300 Subject: [PATCH] ports: Add xz port --- ports/xz/build.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 ports/xz/build.sh diff --git a/ports/xz/build.sh b/ports/xz/build.sh new file mode 100755 index 00000000..68b11b21 --- /dev/null +++ b/ports/xz/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash ../install.sh + +NAME='xz' +VERSION='5.8.2' +DOWNLOAD_URL="https://github.com/tukaani-project/xz/releases/download/v5.8.2/xz-$VERSION.tar.xz#890966ec3f5d5cc151077879e157c0593500a522f413ac50ba26d22a9a145214" + +configure() { + cmake --fresh -B build -S . -G Ninja \ + --toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SHARED_LIBS=ON \ + -DXZ_NLS=OFF \ + -DXZ_DOC=OFF \ + || exit 1 +} + +build() { + cmake --build build ||exit 1 +} + +install() { + cmake --install build ||exit 1 +}