wok-current annotate zsh/receipt @ rev 10628
gambas2: fix last commit
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 26 22:24:08 2011 +0200 (2011-05-26) |
parents | 6fb7714626f8 |
children | 93efe993d312 |
rev | line source |
---|---|
pascal@1531 | 1 # SliTaz package receipt. |
pascal@1531 | 2 |
pascal@1531 | 3 PACKAGE="zsh" |
slaxemulator@7745 | 4 VERSION="4.3.11" |
pascal@1531 | 5 CATEGORY="system-tools" |
pascal@5008 | 6 DEPENDS="ncurses zlib ncursesw" |
pascal@1531 | 7 BUILD_DEPENDS="ncurses-dev zlib-dev" |
pascal@1531 | 8 SHORT_DESC="Zsh shell incorporates many features of bash, ksh, and tcsh" |
pascal@1531 | 9 MAINTAINER="sandys@gmail.com" |
pascal@1531 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@1531 | 11 WEB_SITE="http://zsh.sourceforge.net/" |
pascal@1531 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
jozee@4978 | 13 TAGS="shell" |
pascal@1531 | 14 |
pascal@1531 | 15 # Rules to configure and make the package. |
pascal@1531 | 16 compile_rules() |
pascal@1531 | 17 { |
pascal@1531 | 18 cd $src |
slaxemulator@10039 | 19 ./configure --bindir=/bin \ |
slaxemulator@10039 | 20 --disable-dynamic --enable-multibyte \ |
pascal@1531 | 21 --enable-fndir=/usr/share/zsh/functions \ |
slaxemulator@10039 | 22 --enable-scriptdir=/usr/share/zsh/scripts \ |
slaxemulator@10039 | 23 $CONFIGURE_ARGS && |
pascal@1531 | 24 make && |
slaxemulator@9723 | 25 make install |
pascal@1531 | 26 } |
pascal@1531 | 27 |
pascal@1531 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1531 | 29 genpkg_rules() |
pascal@1531 | 30 { |
pascal@1531 | 31 cp -a $_pkg/bin $fs |
pascal@1531 | 32 |
pascal@1531 | 33 # Config files. |
pascal@1531 | 34 # |
pascal@1531 | 35 mkdir $fs/etc |
slaxemulator@9723 | 36 cp $stuff/example.zshrc $fs/etc/zshrc |
pascal@1531 | 37 |
pascal@1531 | 38 #no way around this... gen_package will not automatically copy these |
pascal@1531 | 39 mkdir -p $fs/usr/share/zsh |
pascal@1531 | 40 cp -r $_pkg/usr/share/zsh/functions $fs/usr/share/zsh |
pascal@1531 | 41 |
pascal@1531 | 42 mkdir -p $fs/usr/share/zsh/scripts |
pascal@1531 | 43 |
pascal@1531 | 44 } |
pascal@1531 | 45 |
pascal@1531 | 46 # Post install commands for Tazpkg. |
pascal@1531 | 47 # Check /bin/sh stat. |
pascal@1531 | 48 # |
pascal@1531 | 49 post_install() |
pascal@1531 | 50 { |
pascal@1531 | 51 local root |
pascal@1531 | 52 root=$1 |
pascal@1531 | 53 echo "Processing post-install commands..." |
pascal@1531 | 54 sh=`readlink $root/bin/sh` |
pascal@1531 | 55 if [ ! "$sh" = "/bin/zsh" ]; then |
pascal@1531 | 56 echo "" |
pascal@1531 | 57 echo "**** Actual SH link : $sh" |
pascal@1531 | 58 echo "" |
pascal@6073 | 59 echo -n "Do you want Zsh for /bin/sh (y/N) ? : " |
pascal@6073 | 60 read -t 30 answer < /dev/tty |
pascal@6073 | 61 if [ "$answer" == "y" ]; then |
pascal@1531 | 62 echo "" |
pascal@1531 | 63 echo -n "Removin sh link to make a new one pointing on /bin/zsh..." |
pascal@1531 | 64 rm $root/bin/sh && ln -s /bin/zsh $root/bin/sh |
pascal@1531 | 65 status |
pascal@1531 | 66 else |
pascal@1531 | 67 echo "" |
pascal@1531 | 68 echo "Leaving /bin/sh to : $sh" |
pascal@1531 | 69 fi |
pascal@1531 | 70 fi |
pascal@1531 | 71 } |