wok-next annotate zsh/receipt @ rev 21445

updated scim (1.4.17 -> 1.4.18)
author Hans-G?nter Theisgen
date Tue May 05 16:55:11 2020 +0100 (2020-05-05)
parents 6c12ac1293fc
children
rev   line source
pascal@1531 1 # SliTaz package receipt.
pascal@1531 2
pascal@1531 3 PACKAGE="zsh"
pascal@18104 4 VERSION="5.0.7"
pascal@1531 5 CATEGORY="system-tools"
pascal@1531 6 SHORT_DESC="Zsh shell incorporates many features of bash, ksh, and tcsh"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15361 8 LICENSE="other"
pascal@1531 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@1531 10 WEB_SITE="http://zsh.sourceforge.net/"
pascal@1531 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@4978 12 TAGS="shell"
pascal@1531 13
pascal@19952 14 DEPENDS="ncurses zlib"
slaxemulator@11123 15 BUILD_DEPENDS="ncurses-dev zlib-dev"
slaxemulator@11123 16
al@21020 17 compile_rules() {
al@21020 18 ./configure \
al@21020 19 --bindir=/bin \
al@21020 20 --disable-dynamic \
al@21020 21 --enable-multibyte \
pascal@18744 22 --enable-fndir=/usr/share/zsh/functions \
pascal@18744 23 --enable-scriptdir=/usr/share/zsh/scripts \
pascal@18744 24 --with-tcsetpgrp \
pascal@11771 25 $CONFIGURE_ARGS &&
pascal@1531 26 make &&
slaxemulator@9723 27 make install
pascal@1531 28 }
pascal@1531 29
al@21020 30 genpkg_rules() {
pascal@15361 31 cp -a $install/bin $fs
pascal@1531 32
pascal@1531 33 # Config files.
al@18741 34
pascal@1531 35 mkdir $fs/etc
slaxemulator@9723 36 cp $stuff/example.zshrc $fs/etc/zshrc
al@18741 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@15361 40 cp -r $install/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
al@21020 45 post_install() {
pascal@18730 46 sh=$(readlink "$1/bin/sh")
al@18741 47 if [ "$sh" != '/bin/zsh' ]; then
al@18741 48 echo ''
pascal@1531 49 echo "**** Actual SH link : $sh"
al@18741 50 echo ''
al@18741 51 echo -n 'Do you want Zsh for /bin/sh (y/N) ? : '
pascal@6073 52 read -t 30 answer < /dev/tty
al@18741 53 if [ "$answer" == 'y' ]; then
al@18741 54 echo ''
al@18741 55 action 'Removing sh link to make a new one pointing on /bin/zsh...'
pascal@18730 56 rm "$1/bin/sh" && ln -s /bin/zsh "$1/bin/sh"
pascal@1531 57 status
pascal@1531 58 else
al@18741 59 echo ''
pascal@1531 60 echo "Leaving /bin/sh to : $sh"
pascal@1531 61 fi
pascal@1531 62 fi
pascal@1531 63 }
mojo@11667 64
mojo@11667 65 # Restore a valid sh link if needed.
al@21020 66 pre_remove() {
al@18741 67 sh=$(readlink "$1/bin/sh")
al@18741 68 [ "$sh" != 'busybox' ] && ln -sf /bin/busybox "$1/bin/sh"
mojo@11667 69 }