wok-next diff zsh/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 6c12ac1293fc |
children |
line diff
1.1 --- a/zsh/receipt Mon Oct 16 13:38:21 2017 +0200 1.2 +++ b/zsh/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -4,7 +4,7 @@ 1.4 VERSION="5.0.7" 1.5 CATEGORY="system-tools" 1.6 SHORT_DESC="Zsh shell incorporates many features of bash, ksh, and tcsh" 1.7 -MAINTAINER="sandys@gmail.com" 1.8 +MAINTAINER="devel@slitaz.org" 1.9 LICENSE="other" 1.10 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.11 WEB_SITE="http://zsh.sourceforge.net/" 1.12 @@ -14,11 +14,11 @@ 1.13 DEPENDS="ncurses zlib" 1.14 BUILD_DEPENDS="ncurses-dev zlib-dev" 1.15 1.16 -# Rules to configure and make the package. 1.17 -compile_rules() 1.18 -{ 1.19 - ./configure --bindir=/bin \ 1.20 - --disable-dynamic --enable-multibyte \ 1.21 +compile_rules() { 1.22 + ./configure \ 1.23 + --bindir=/bin \ 1.24 + --disable-dynamic \ 1.25 + --enable-multibyte \ 1.26 --enable-fndir=/usr/share/zsh/functions \ 1.27 --enable-scriptdir=/usr/share/zsh/scripts \ 1.28 --with-tcsetpgrp \ 1.29 @@ -27,9 +27,7 @@ 1.30 make install 1.31 } 1.32 1.33 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 -genpkg_rules() 1.35 -{ 1.36 +genpkg_rules() { 1.37 cp -a $install/bin $fs 1.38 1.39 # Config files. 1.40 @@ -44,11 +42,7 @@ 1.41 mkdir -p $fs/usr/share/zsh/scripts 1.42 } 1.43 1.44 -# Post install commands for Tazpkg. 1.45 -# Check /bin/sh stat. 1.46 -# 1.47 -post_install() 1.48 -{ 1.49 +post_install() { 1.50 sh=$(readlink "$1/bin/sh") 1.51 if [ "$sh" != '/bin/zsh' ]; then 1.52 echo '' 1.53 @@ -69,8 +63,7 @@ 1.54 } 1.55 1.56 # Restore a valid sh link if needed. 1.57 -pre_remove() 1.58 -{ 1.59 +pre_remove() { 1.60 sh=$(readlink "$1/bin/sh") 1.61 [ "$sh" != 'busybox' ] && ln -sf /bin/busybox "$1/bin/sh" 1.62 }