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

mirror-tools/search.cgi: add receipt object
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 16 09:22:41 2009 +0200 (2009-06-16)
parents
children b303dfac3b48
line source
1 # SliTaz package receipt.
3 PACKAGE="zsh"
4 VERSION="4.3.6"
5 CATEGORY="system-tools"
6 DEPENDS="ncurses zlib"
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr --bindir=/bin \
19 --disable-dynamic --enable-multibyte \
20 --infodir=/usr/share/info --mandir=/usr/share/man \
21 --enable-fndir=/usr/share/zsh/functions \
22 --enable-scriptdir=/usr/share/zsh/scripts \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 cp -a $_pkg/bin $fs
32 strip -s $fs/bin/zsh
34 # Config files.
35 #
36 mkdir $fs/etc
37 cp stuff/example.zshrc $fs/etc/zshrc
39 #no way around this... gen_package will not automatically copy these
40 mkdir -p $fs/usr/share/zsh
41 cp -r $_pkg/usr/share/zsh/functions $fs/usr/share/zsh
43 mkdir -p $fs/usr/share/zsh/scripts
45 }
47 # Post install commands for Tazpkg.
48 # Check /bin/sh stat.
49 #
50 post_install()
51 {
52 local root
53 root=$1
54 echo "Processing post-install commands..."
55 sh=`readlink $root/bin/sh`
56 if [ ! "$sh" = "/bin/zsh" ]; then
57 echo ""
58 echo "**** Actual SH link : $sh"
59 echo ""
60 echo -n "Do you want Zsh for /bin/sh (y/N) ? : "; read anser
61 if [ "$anser" == "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 }