base: kmod: ajoute le PKGBUILD
[glg-lfs.git] / toolchain / scripts / Diffutils-3.2
blobb46bfcaa9d2c2d7a5fd38f0bf1cc36ea514f242a
1 #!/bin/bash
3 pkgname=diffutils-3.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 "======> reparation d'une incompatibilite avec glibc-2.17"
19 sed -i -e '/gets is a/d' lib/stdio.in.h
21 echo "======> execution du script de configuration"
22 ./configure --prefix=/tools
24 echo "======> compilation de $pkgname"
25 make $make_flags
27 echo "======> installation de $pkgname"
28 make install
30 cd ../
32 echo "======> supression du rÃpertoire $pkgname"
33 rm -rf "$pkgname"
35 echo "======> compilation et installation de $pkgname reussi"
36 exit 0