wok-6.x view bash/receipt @ rev 11785

Down gnumeric (0.8.16) 0.8.17 references gtk+-3. Removed unrecognized option from goffice
author Samuel Trassare <samuel_trassare@yahoo.com>
date Fri Feb 24 10:18:11 2012 -0800 (2012-02-24)
parents e2c80c0bf72a
children 6b9560f1e886
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/bash/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="readline"
13 BUILD_DEPENDS="readline bison"
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 # Skip tests that can not run while cross-compiling.
29 cat > config.cache << "EOF"
30 ac_cv_func_mmap_fixed_mapped=yes
31 ac_cv_func_strcoll_works=yes
32 ac_cv_func_working_mktime=yes
33 bash_cv_func_sigsetjmp=present
34 bash_cv_getcwd_malloc=yes
35 bash_cv_job_control_missing=present
36 bash_cv_printf_a_format=yes
37 bash_cv_sys_named_pipes=present
38 bash_cv_ulimit_maxfds=yes
39 bash_cv_under_sys_siglist=yes
40 bash_cv_unusable_rtsigs=no
41 gt_cv_int_divbyzero_sigfpe=yes
42 EOF
43 ./configure \
44 $CONFIGURE_ARGS \
45 --cache-file=config.cache \
46 --bindir=/bin \
47 --enable-history --enable-alias \
48 --disable-nls --without-bash-malloc \
49 --disable-help-builtin \
50 --with-installed-readline &&
51 make &&
52 # Bash doesn't care about DESTDIR in environnment variable.
53 make DESTDIR=$DESTDIR install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 cp -a $_pkg/bin $fs
60 # Config files.
61 #
62 mkdir $fs/etc
63 cp $stuff/example.bashrc $fs/etc/bashrc
64 }
66 # Post install commands for Tazpkg.
67 # Check /bin/sh stat.
68 #
69 post_install()
70 {
71 local root
72 root=$1
73 echo "Processing post-install commands..."
74 sh=`readlink $root/bin/sh`
75 if [ ! "$sh" = "/bin/bash" ]; then
76 echo ""
77 echo "**** Actual SH link : $sh"
78 echo ""
79 echo -n "Do you want Bash for /bin/sh (yes/No) ? : "
80 read -t 30 anser
81 if [ "$anser" == "yes" ]; then
82 echo ""
83 echo -n "Removing sh link to make a new one pointing on /bin/bash..."
84 rm $root/bin/sh && ln -s /bin/bash $root/bin/sh
85 status
86 else
87 echo ""
88 echo "Leaving /bin/sh to : $sh"
89 fi
90 fi
91 }
93 # Restore a valid sh link if needed.
94 pre_remove()
95 {
96 local root
97 root=$1
98 sh=`readlink $root/bin/sh`
99 if [ ! "$sh" = "busybox" ]; then
100 rm $root/bin/sh &&
101 ln -s /bin/busybox $root/bin/sh
102 fi
103 }