wok-4.x view zsh/receipt @ rev 11013

Up: bazaar-tools to 2.4.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Oct 13 03:26:28 2011 +0000 (2011-10-13)
parents 6fb7714626f8
children 93efe993d312
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 --bindir=/bin \
20 --disable-dynamic --enable-multibyte \
21 --enable-fndir=/usr/share/zsh/functions \
22 --enable-scriptdir=/usr/share/zsh/scripts \
23 $CONFIGURE_ARGS &&
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 }