|
root / base / xz
xz Plain Text 54 lines 1.2 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/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 <chris.tusa@leafscale.com>"
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