#!/bin/bash # Build script for XZ Utils set -e cd "$SRCDIR" # Fix illumos gnulib compatibility issues (if present) for f in lib/localename-unsafe.c lib/localename.c; do if [ -f "$f" ]; then sed -i 's/extern char \* getlocalename_l/extern const char * getlocalename_l/' "$f" fi done ./configure \ --prefix=$PREFIX \ --build=$BUILD_TRIPLE \ --host=$BUILD_TRIPLE \ --disable-nls # Fix illumos memset_s false detection if present for config in lib/config.h config.h; do if [ -f "$config" ]; then sed -i 's/#define HAVE_MEMSET_S 1/\/* #undef HAVE_MEMSET_S - illumos has it as macro only *\//' "$config" fi done gmake -j${JOBS:-1} gmake install DESTDIR="$PKGDIR" # XZ Utils - LZMA compression utility # https://tukaani.org/xz/ [package] name = "xz" version = "5.8.2" release = 1 description = "XZ Utils - LZMA compression utility" url = "https://tukaani.org/xz/" license = "LGPL-2.1" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = [] build = [] [[source]] file = "xz-5.8.2.tar.gz" urls = ["https://github.com/tukaani-project/xz/releases/download/v5.8.2/xz-5.8.2.tar.gz"] checksum = "ce09c50a5962786b83e5da389c90dd2c15ecd0980a258dd01f70f9e7ce58a8f1" [build] parallel = true