wok diff bash/receipt @ rev 96
Set BUILD_DEPENDS for fontconfig
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 04 14:26:12 2008 +0100 (2008-01-04) |
parents | |
children | 4a1d0ce00353 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/bash/receipt Fri Jan 04 14:26:12 2008 +0100 1.3 @@ -0,0 +1,64 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="bash" 1.7 +VERSION="3.2" 1.8 +CATEGORY="extra" 1.9 +SHORT_DESC="The GNU bourne SHell." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="ncurses" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.gnu.org/software/bash/" 1.14 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() 1.18 +{ 1.19 + # Patch and then build. 1.20 + cd $src 1.21 + patch -p1 -i ../stuff/bash32-025.patch 1.22 + ./configure --prefix=/usr --bindir=/bin \ 1.23 + --enable-history --enable-alias \ 1.24 + --disable-nls --without-bash-malloc \ 1.25 + --disable-select --disable-help-builtin \ 1.26 + --infodir=/usr/share/info --mandir=/usr/share/man \ 1.27 + $CONFIGURE_ARGS 1.28 + make 1.29 + make DESTDIR=$PWD/_pkg install 1.30 +} 1.31 + 1.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.33 +genpkg_rules() 1.34 +{ 1.35 + cp -a $_pkg/bin $fs 1.36 + strip -s $fs/bin/bash 1.37 + # Config files. 1.38 + # 1.39 + mkdir $fs/etc 1.40 + cp stuff/example.bashrc $fs/etc/bashrc 1.41 +} 1.42 + 1.43 +# Post install commands for Tazpkg. 1.44 +# Check /bin/sh stat. 1.45 +# 1.46 +post_install() 1.47 +{ 1.48 + local root 1.49 + root=$1 1.50 + echo "Processing post-install commands..." 1.51 + sh=`readlink $root/bin/sh` 1.52 + if [ ! "$sh" = "/bin/bash" ]; then 1.53 + echo "" 1.54 + echo "**** Actual SH link : $sh" 1.55 + echo "" 1.56 + echo -n "Do you want Bash for /bin/sh (y/N) ? : "; read anser 1.57 + if [ "$anser" == "y" ]; then 1.58 + echo "" 1.59 + echo -n "Removin sh link to make a new one pointing on /bin/bash..." 1.60 + rm $root/bin/sh && ln -s /bin/bash $root/bin/sh 1.61 + status 1.62 + else 1.63 + echo "" 1.64 + echo "Leaving /bin/sh to : $sh" 1.65 + fi 1.66 + fi 1.67 +}