wok view zsh/receipt @ rev 9721
pangomm: Add cairomm-dev and glibmm-dev to build depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon May 09 01:41:52 2011 +0000 (2011-05-09) |
parents | 5f1a833b72ff |
children | 6fb7714626f8 |
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
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) ? : "
61 read -t 30 answer < /dev/tty
62 if [ "$answer" == "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 }