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

./configure --prefix=/usr \
            --host="${LFS_TGT}" \
            --build="$(build-aux/config.guess)" \
            --disable-static \
            --docdir=/usr/share/doc/xz-5.2.5 &&
make &&
make DESTDIR="${LFS}" -j1 install
mv -v "${LFS}"/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat}  "${LFS}"/bin &&
mv -v "${LFS}"/usr/lib/liblzma.so.*                       "${LFS}"/lib &&
ln -svf ../../lib/"$(readlink "${LFS}"/usr/lib/liblzma.so)" "${LFS}"/usr/lib/liblzma.so