4 archive
="$pkgname".
tar.xz
13 echo "======> extraction de l'archive $archive"
14 tar "$tar_flags" "$archive"
18 echo "======> verification des entetes RPC"
19 if [ ! -r /usr
/include
/rpc
/types.h
]; then
20 su
-c 'mkdir -p /usr/include/rpc'
21 su
-c 'cp sunrpc/rpc/*.h /usr/include/rpc'
26 mkdir
-v "$pkgname"-build
29 echo "======> exe©cution du script de configuration"
30 ..
/"$pkgname"/configure \
33 --build=$
(..
/$pkgname/scripts
/config.guess
) \
35 --enable-kernel=2.6.25 \
36 --with-headers=/tools
/include \
37 libc_cv_forced_unwind
=yes \
38 libc_cv_ctors_header
=yes \
41 echo "======> compilation de $pkgname"
44 echo "======> installation de $pkgname"
47 echo "======> verification de la toolchain"
48 echo 'main(){}' > dummy.c
50 readelf
-l a.out |
grep ': /tools'
52 echo "======> supression du repertoire" "$pkgname"-build
54 rm -rf "$pkgname"-build
56 echo "======> supression du rÃpertoire $pkgname"
59 echo "======> compilation et installation de $pkgname reussi"