aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/xz.sh
blob: 64832ad712820565de766d3da77cd2b4ca8c00f4 (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