wok-current view zsh/receipt @ rev 23164

updated mapserver (7.4.0 -> 7.4.3)
author Hans-G?nter Theisgen
date Tue Mar 17 15:05:55 2020 +0100 (2020-03-17)
parents 02c70d036ea0
children 98d2ef9efb67
line source
1 # SliTaz package receipt.
3 PACKAGE="zsh"
4 VERSION="5.7.1"
5 CATEGORY="system-tools"
6 TAGS="shell"
7 SHORT_DESC="Zsh shell incorporates many features of bash, ksh, and tcsh."
8 MAINTAINER="sandys@gmail.com"
9 LICENSE="other"
10 WEB_SITE="https://www.zsh.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="${WEB_SITE}pub/$TARBALL"
15 DEPENDS="gdbm ncurses ncursesw zlib"
16 BUILD_DEPENDS="ncurses-dev zlib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --bindir=/bin \
23 --disable-dynamic \
24 --enable-multibyte \
25 --enable-fndir=/usr/share/zsh/functions \
26 --enable-scriptdir=/usr/share/zsh/scripts \
27 --with-tcsetpgrp \
28 $CONFIGURE_ARGS &&
29 make -j 1 &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/bin $fs
38 # Configuration files.
39 mkdir $fs/etc
40 cp $stuff/example.zshrc $fs/etc/zshrc
42 #no way around this... gen_package will not automatically copy these
43 mkdir -p $fs/usr/share/zsh
44 cp -r $install/usr/share/zsh/functions $fs/usr/share/zsh
46 mkdir -p $fs/usr/share/zsh/scripts
47 }
49 # Post install commands for Tazpkg.
50 # Check /bin/sh stat.
51 #
52 post_install()
53 {
54 sh=$(readlink "$1/bin/sh")
55 if [ "$sh" != '/bin/zsh' ]; then
56 echo ''
57 echo "**** Actual SH link : $sh"
58 echo ''
59 echo -n 'Do you want Zsh for /bin/sh (y/N) ? : '
60 read -t 30 answer < /dev/tty
61 if [ "$answer" = 'y' ]; then
62 echo ''
63 action 'Removing sh link to make a new one pointing on /bin/zsh...'
64 rm "$1/bin/sh" && ln -s /bin/zsh "$1/bin/sh"
65 status
66 else
67 echo ''
68 echo "Leaving /bin/sh to : $sh"
69 fi
70 fi
71 }
73 # Restore a valid sh link if needed.
74 pre_remove()
75 {
76 sh=$(readlink "$1/bin/sh")
77 [ "$sh" != 'busybox' ] && ln -sf /bin/busybox "$1/bin/sh"
78 }