base: kmod: ajoute le PKGBUILD
[glg-lfs.git] / toolchain / scripts / Xz-5.0.4
blob37da48a9fe232fb3e00dfd474aaf11c65fa8eb09
1 #!/bin/bash
3 pkgname=xz-5.0.4
4 archive="$pkgname".tar.xz
5 tar_flags="-xJf"
6 make_flags="--jobs=4 "
8 set -u
9 set -e
11 cd $LFS/sources
13 echo "======> extraction de l'archive $archive"
14 tar "$tar_flags" "$archive"
16 cd "$pkgname"
18 echo "======> execution du script de configuration"
19 ./configure --prefix=/tools
21 echo "======> compilation de $pkgname"
22 make $make_flags
24 echo "======> installation de $pkgname"
25 make install
27 cd ../
29 echo "======> supression du rÃpertoire $pkgname"
30 rm -rf "$pkgname"
32 echo "======> compilation et installation de $pkgname reussi"
33 exit 0