wok view zsh/receipt @ rev 9958

nagios-plugins-mysql: bump
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed May 18 15:25:31 2011 +0200 (2011-05-18)
parents 02bbaa9d12ba
children b13331a9b7da
line source
1 # SliTaz package receipt.
3 PACKAGE="zsh"
4 VERSION="4.3.11"
5 CATEGORY="system-tools"
6 DEPENDS="ncurses zlib ncursesw"
7 BUILD_DEPENDS="ncurses-dev zlib-dev"
8 SHORT_DESC="Zsh shell incorporates many features of bash, ksh, and tcsh"
9 MAINTAINER="sandys@gmail.com"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://zsh.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 TAGS="shell"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr --bindir=/bin \
20 --disable-dynamic --enable-multibyte \
21 --infodir=/usr/share/info --mandir=/usr/share/man \
22 --enable-fndir=/usr/share/zsh/functions \
23 --enable-scriptdir=/usr/share/zsh/scripts &&
24 make &&
25 make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 cp -a $_pkg/bin $fs
33 # Config files.
34 #
35 mkdir $fs/etc
36 cp $stuff/example.zshrc $fs/etc/zshrc
38 #no way around this... gen_package will not automatically copy these
39 mkdir -p $fs/usr/share/zsh
40 cp -r $_pkg/usr/share/zsh/functions $fs/usr/share/zsh
42 mkdir -p $fs/usr/share/zsh/scripts
44 }
46 # Post install commands for Tazpkg.
47 # Check /bin/sh stat.
48 #
49 post_install()
50 {
51 local root
52 root=$1
53 echo "Processing post-install commands..."
54 sh=`readlink $root/bin/sh`
55 if [ ! "$sh" = "/bin/zsh" ]; then
56 echo ""
57 echo "**** Actual SH link : $sh"
58 echo ""
59 echo -n "Do you want Zsh for /bin/sh (y/N) ? : "
60 read -t 30 answer < /dev/tty
61 if [ "$answer" == "y" ]; then
62 echo ""
63 echo -n "Removin sh link to make a new one pointing on /bin/zsh..."
64 rm $root/bin/sh && ln -s /bin/zsh $root/bin/sh
65 status
66 else
67 echo ""
68 echo "Leaving /bin/sh to : $sh"
69 fi
70 fi
71 }