wok view bash/receipt @ rev 10350
gdk-pixbuf: fix build (no cross)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 22 22:16:30 2011 +0200 (2011-05-22) |
parents | 342cd0420c47 |
children | e2c80c0bf72a |
line source
1 # SliTaz package receipt.
3 PACKAGE="bash"
4 VERSION="4.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="The GNU bourne SHell."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="readline"
9 BUILD_DEPENDS="readline bison"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.gnu.org/software/bash/"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 CROSS="bug"
15 # Rules to compile & install the temporary toolchain.
16 cook_tmp_toolchain()
17 {
18 cd $src
19 ./configure --without-bash-malloc &&
20 make && make install
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # Patch and then build.
27 cd $src
28 ./configure \
29 --build=$HOST_SYSTEM \
30 --host=$HOST_SYSTEM \
31 --bindir=/bin \
32 --enable-history --enable-alias \
33 --disable-nls --without-bash-malloc \
34 --disable-help-builtin \
35 --with-installed-readline &&
36 make &&
37 # Bash doesn't care about DESTDIR in environnment variable.
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $_pkg/bin $fs
45 # Config files.
46 #
47 mkdir $fs/etc
48 cp $stuff/example.bashrc $fs/etc/bashrc
49 }
51 # Post install commands for Tazpkg.
52 # Check /bin/sh stat.
53 #
54 post_install()
55 {
56 local root
57 root=$1
58 echo "Processing post-install commands..."
59 sh=`readlink $root/bin/sh`
60 if [ ! "$sh" = "/bin/bash" ]; then
61 echo ""
62 echo "**** Actual SH link : $sh"
63 echo ""
64 echo -n "Do you want Bash for /bin/sh (yes/No) ? : "
65 read -t 30 anser
66 if [ "$anser" == "yes" ]; then
67 echo ""
68 echo -n "Removing sh link to make a new one pointing on /bin/bash..."
69 rm $root/bin/sh && ln -s /bin/bash $root/bin/sh
70 status
71 else
72 echo ""
73 echo "Leaving /bin/sh to : $sh"
74 fi
75 fi
76 }
78 # Restore a valid sh link if needed.
79 pre_remove()
80 {
81 local root
82 root=$1
83 sh=`readlink $root/bin/sh`
84 if [ ! "$sh" = "busybox" ]; then
85 rm $root/bin/sh &&
86 ln -s /bin/busybox $root/bin/sh
87 fi
88 }