wok view zsh/receipt @ rev 15806

Up: sudoku to 2.3. Fixed WEB_SITE and WGET_URL so we get the app and not a error page.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Jan 24 01:35:01 2014 +0000 (2014-01-24)
parents a6bab8cd726e
children fcb16f737698
line source
1 # SliTaz package receipt.
3 PACKAGE="zsh"
4 VERSION="4.3.15"
5 CATEGORY="system-tools"
6 SHORT_DESC="Zsh shell incorporates many features of bash, ksh, and tcsh"
7 MAINTAINER="sandys@gmail.com"
8 LICENSE="other"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://zsh.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="shell"
13 BUGS="Does not support build bot: configure: error: no controlling tty\nTry running configure with --with-tcsetpgrp or --without-tcsetpgrp"
15 DEPENDS="ncurses zlib ncursesw"
16 BUILD_DEPENDS="ncurses-dev zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure --bindir=/bin \
23 --disable-dynamic --enable-multibyte \
24 --enable-fndir=/usr/share/zsh/functions \
25 --enable-scriptdir=/usr/share/zsh/scripts \
26 $CONFIGURE_ARGS &&
27 make &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/bin $fs
36 # Config files.
37 #
38 mkdir $fs/etc
39 cp $stuff/example.zshrc $fs/etc/zshrc
41 #no way around this... gen_package will not automatically copy these
42 mkdir -p $fs/usr/share/zsh
43 cp -r $install/usr/share/zsh/functions $fs/usr/share/zsh
45 mkdir -p $fs/usr/share/zsh/scripts
47 }
49 # Post install commands for Tazpkg.
50 # Check /bin/sh stat.
51 #
52 post_install()
53 {
54 local root
55 root=$1
56 echo "Processing post-install commands..."
57 sh=`readlink $root/bin/sh`
58 if [ ! "$sh" = "/bin/zsh" ]; then
59 echo ""
60 echo "**** Actual SH link : $sh"
61 echo ""
62 echo -n "Do you want Zsh for /bin/sh (y/N) ? : "
63 read -t 30 answer < /dev/tty
64 if [ "$answer" == "y" ]; then
65 echo ""
66 echo -n "Removin sh link to make a new one pointing on /bin/zsh..."
67 rm $root/bin/sh && ln -s /bin/zsh $root/bin/sh
68 status
69 else
70 echo ""
71 echo "Leaving /bin/sh to : $sh"
72 fi
73 fi
74 }
76 # Restore a valid sh link if needed.
77 pre_remove()
78 {
79 local root
80 root=$1
81 sh=`readlink $root/bin/sh`
82 if [ ! "$sh" = "busybox" ]; then
83 rm $root/bin/sh &&
84 ln -s /bin/busybox $root/bin/sh
85 fi
86 }