base: kmod: ajoute le PKGBUILD
[glg-lfs.git] / toolchain / scripts / Findutils-4.4.2
blobeed60c91b66ca9a3e4705e62d4d15200421f0a22
1 #!/bin/bash
3 pkgname=findutils-4.4.2
4 archive="$pkgname".tar.gz
5 tar_flags="-xzf"
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