2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 15:02:27 +00:00
repo/core/xz/build

23 lines
484 B
Plaintext
Raw Normal View History

#!/bin/sh -e
./configure \
2020-04-19 05:36:48 +00:00
--prefix=/usr \
2021-07-06 11:30:58 +00:00
--disable-doc \
2020-04-19 05:36:48 +00:00
--disable-nls
make
2021-07-15 11:59:08 +00:00
make install
# Link the binaries statically
cd src
rm -f xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec
2022-07-13 02:21:51 +00:00
make LDFLAGS="$LDFLAGS -all-static" -C xz
make LDFLAGS="$LDFLAGS -all-static" -C lzmainfo
make LDFLAGS="$LDFLAGS -all-static" -C xzdec
for bin in xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec; do
cp "$bin" "$DESTDIR/usr/bin"
chmod 755 "$DESTDIR/usr/bin/${bin##*/}"
done