wok-6.x view zsh/receipt @ rev 8247

Up: nmap to 5.50.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Jan 29 05:03:37 2011 +0000 (2011-01-29)
parents c46b4be12876
children 02bbaa9d12ba
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 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $_pkg/bin $fs
33 strip -s $fs/bin/zsh
35 # Config files.
36 #
37 mkdir $fs/etc
38 cp stuff/example.zshrc $fs/etc/zshrc
40 #no way around this... gen_package will not automatically copy these
41 mkdir -p $fs/usr/share/zsh
42 cp -r $_pkg/usr/share/zsh/functions $fs/usr/share/zsh
44 mkdir -p $fs/usr/share/zsh/scripts
46 }
48 # Post install commands for Tazpkg.
49 # Check /bin/sh stat.
50 #
51 post_install()
52 {
53 local root
54 root=$1
55 echo "Processing post-install commands..."
56 sh=`readlink $root/bin/sh`
57 if [ ! "$sh" = "/bin/zsh" ]; then
58 echo ""
59 echo "**** Actual SH link : $sh"
60 echo ""
61 echo -n "Do you want Zsh for /bin/sh (y/N) ? : "
62 read -t 30 answer < /dev/tty
63 if [ "$answer" == "y" ]; then
64 echo ""
65 echo -n "Removin sh link to make a new one pointing on /bin/zsh..."
66 rm $root/bin/sh && ln -s /bin/zsh $root/bin/sh
67 status
68 else
69 echo ""
70 echo "Leaving /bin/sh to : $sh"
71 fi
72 fi
73 }