aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/xz.sh
blob: 52041639e1e9026ed8eb4a73f5d47ba136ffbb9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash


./configure --prefix=/usr \
            --disable-static \
            --docdir=/usr/share/doc/xz-"${VERSION}"

make
make -j1 install
mv -v /usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} /bin
mv -v /usr/lib/liblzma.so.* /lib
ln -svf ../../lib/"$(readlink /usr/lib/liblzma.so)" /usr/lib/liblzma.so