wok-4.x diff zsh/receipt @ rev 2139
Add jabberd2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 03 17:07:11 2009 +0000 (2009-02-03) |
parents | |
children | b303dfac3b48 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/zsh/receipt Tue Feb 03 17:07:11 2009 +0000 1.3 @@ -0,0 +1,71 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="zsh" 1.7 +VERSION="4.3.6" 1.8 +CATEGORY="system-tools" 1.9 +DEPENDS="ncurses zlib" 1.10 +BUILD_DEPENDS="ncurses-dev zlib-dev" 1.11 +SHORT_DESC="Zsh shell incorporates many features of bash, ksh, and tcsh" 1.12 +MAINTAINER="sandys@gmail.com" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 +WEB_SITE="http://zsh.sourceforge.net/" 1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + ./configure --prefix=/usr --bindir=/bin \ 1.22 + --disable-dynamic --enable-multibyte \ 1.23 + --infodir=/usr/share/info --mandir=/usr/share/man \ 1.24 + --enable-fndir=/usr/share/zsh/functions \ 1.25 + --enable-scriptdir=/usr/share/zsh/scripts \ 1.26 + $CONFIGURE_ARGS && 1.27 + make && 1.28 + make DESTDIR=$PWD/_pkg install 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + cp -a $_pkg/bin $fs 1.35 + strip -s $fs/bin/zsh 1.36 + 1.37 + # Config files. 1.38 + # 1.39 + mkdir $fs/etc 1.40 + cp stuff/example.zshrc $fs/etc/zshrc 1.41 + 1.42 + #no way around this... gen_package will not automatically copy these 1.43 + mkdir -p $fs/usr/share/zsh 1.44 + cp -r $_pkg/usr/share/zsh/functions $fs/usr/share/zsh 1.45 + 1.46 + mkdir -p $fs/usr/share/zsh/scripts 1.47 + 1.48 +} 1.49 + 1.50 +# Post install commands for Tazpkg. 1.51 +# Check /bin/sh stat. 1.52 +# 1.53 +post_install() 1.54 +{ 1.55 + local root 1.56 + root=$1 1.57 + echo "Processing post-install commands..." 1.58 + sh=`readlink $root/bin/sh` 1.59 + if [ ! "$sh" = "/bin/zsh" ]; then 1.60 + echo "" 1.61 + echo "**** Actual SH link : $sh" 1.62 + echo "" 1.63 + echo -n "Do you want Zsh for /bin/sh (y/N) ? : "; read anser 1.64 + if [ "$anser" == "y" ]; then 1.65 + echo "" 1.66 + echo -n "Removin sh link to make a new one pointing on /bin/zsh..." 1.67 + rm $root/bin/sh && ln -s /bin/zsh $root/bin/sh 1.68 + status 1.69 + else 1.70 + echo "" 1.71 + echo "Leaving /bin/sh to : $sh" 1.72 + fi 1.73 + fi 1.74 +}