aboutsummaryrefslogtreecommitdiff
path: root/core/xz/build
blob: 606cc351a2e24cefced293b8bac7a35fd68ae8c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

./configure \
    --prefix=/usr

make
make DESTDIR="$1" install

# Link the binaries statically
cd src
rm -f xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec

make LDFLAGS=-all-static -C xz
make LDFLAGS=-all-static -C lzmainfo
make LDFLAGS=-all-static -C xzdec

for bin in xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec; do
    clinst -m755 "$bin" "$1/usr/bin/${bin##*/}"
done