# HG changeset patch # User Hans-G?nter Theisgen # Date 1590151681 -3600 # Node ID 98d2ef9efb6772ae2d89cef907289807e7768203 # Parent 4e55d27fb0742e3f3a497e2831502b98fbfeb887 updated zsh (5.7.1 -> 5.8) diff -r 4e55d27fb074 -r 98d2ef9efb67 zsh/receipt --- a/zsh/receipt Fri May 22 13:39:32 2020 +0100 +++ b/zsh/receipt Fri May 22 13:48:01 2020 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="zsh" -VERSION="5.7.1" +VERSION="5.8" CATEGORY="system-tools" TAGS="shell" SHORT_DESC="Zsh shell incorporates many features of bash, ksh, and tcsh." @@ -33,17 +33,18 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - cp -a $install/bin $fs + mkdir $fs/etc + mkdir -p $fs/usr/share/zsh + mkdir -p $fs/usr/share/zsh/scripts + + cp -a $install/bin $fs # Configuration files. - mkdir $fs/etc cp $stuff/example.zshrc $fs/etc/zshrc #no way around this... gen_package will not automatically copy these - mkdir -p $fs/usr/share/zsh - cp -r $install/usr/share/zsh/functions $fs/usr/share/zsh - - mkdir -p $fs/usr/share/zsh/scripts + cp -r $install/usr/share/zsh/functions \ + $fs/usr/share/zsh } # Post install commands for Tazpkg. @@ -52,18 +53,20 @@ post_install() { sh=$(readlink "$1/bin/sh") - if [ "$sh" != '/bin/zsh' ]; then + if [ "$sh" != '/bin/zsh' ] + then echo '' echo "**** Actual SH link : $sh" echo '' echo -n 'Do you want Zsh for /bin/sh (y/N) ? : ' read -t 30 answer < /dev/tty - if [ "$answer" = 'y' ]; then + if [ "$answer" = 'y' ] + then echo '' action 'Removing sh link to make a new one pointing on /bin/zsh...' rm "$1/bin/sh" && ln -s /bin/zsh "$1/bin/sh" status - else + else echo '' echo "Leaving /bin/sh to : $sh" fi @@ -74,5 +77,6 @@ pre_remove() { sh=$(readlink "$1/bin/sh") - [ "$sh" != 'busybox' ] && ln -sf /bin/busybox "$1/bin/sh" + [ "$sh" != 'busybox' ] && + ln -sf /bin/busybox "$1/bin/sh" }