wok-next view zsh/receipt @ rev 5281
jack : fix missing .pc file
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Apr 16 12:55:45 2010 -0400 (2010-04-16) |
parents | b303dfac3b48 |
children | 57183cc0d94b |
line source
1 # SliTaz package receipt.
3 PACKAGE="zsh"
4 VERSION="4.3.6"
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) ? : "; read anser
62 if [ "$anser" == "y" ]; then
63 echo ""
64 echo -n "Removin sh link to make a new one pointing on /bin/zsh..."
65 rm $root/bin/sh && ln -s /bin/zsh $root/bin/sh
66 status
67 else
68 echo ""
69 echo "Leaving /bin/sh to : $sh"
70 fi
71 fi
72 }