2019-06-22 01:28:08 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
./configure \
|
2020-04-18 23:36:48 -06:00
|
|
|
--prefix=/usr \
|
2021-07-06 05:30:58 -06:00
|
|
|
--disable-doc \
|
2020-04-18 23:36:48 -06:00
|
|
|
--disable-nls
|
2019-06-22 01:28:08 -06:00
|
|
|
|
|
|
|
make
|
2023-03-02 07:40:00 -07:00
|
|
|
make DESTDIR="$1" install
|
2022-07-07 15:35:39 -06:00
|
|
|
|
|
|
|
# Link the binaries statically
|
|
|
|
cd src
|
|
|
|
rm -f xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec
|
|
|
|
|
2022-07-12 20:21:51 -06:00
|
|
|
make LDFLAGS="$LDFLAGS -all-static" -C xz
|
|
|
|
make LDFLAGS="$LDFLAGS -all-static" -C lzmainfo
|
|
|
|
make LDFLAGS="$LDFLAGS -all-static" -C xzdec
|
2022-07-07 15:35:39 -06:00
|
|
|
|
|
|
|
for bin in xz/xz lzmainfo/lzmainfo xzdec/lzmadec xzdec/xzdec; do
|
2023-03-02 07:40:00 -07:00
|
|
|
cp "$bin" "$1/usr/bin"
|
|
|
|
chmod 755 "$1/usr/bin/${bin##*/}"
|
2022-07-07 15:35:39 -06:00
|
|
|
done
|