wok view coreutils-command/receipt @ rev 23313

updated perl-datetime-timezone (1.93 -> 2.38)
author Hans-G?nter Theisgen
date Mon Mar 30 15:07:38 2020 +0100 (2020-03-30)
parents 1d0123efe74c
children 3b252eb4d26a
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-command"
4 VERSION="8.31"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU command utilities."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
11 DEPENDS="glibc-base"
12 WANTED="coreutils"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mandir="$fs/usr/share/man/man1"
18 mkdir -p $mandir ${mandir/1/8}
20 while read i
21 do
22 mkdir -p $fs$(dirname $i)
23 cp -a $install$i $fs$i
24 find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
25 done <<EOT
26 /usr/bin/env
27 /usr/bin/kill
28 /usr/bin/nice
29 /usr/bin/nohup
30 /usr/bin/sleep
31 /usr/bin/stdbuf
32 /usr/bin/timeout
33 /usr/libexec/coreutils/libstdbuf.so
34 /usr/sbin/chroot
35 EOT
37 mv $mandir/chroot.* ${mandir/1/8}
38 }
40 post_install()
41 {
42 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
43 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
44 rm "$1/bin/kill" # /usr/bin/kill
45 rm "$1/bin/nice" # /usr/bin/nice
46 rm "$1/bin/sleep" # /usr/bin/sleep
47 }
49 post_remove()
50 {
51 # Restore all Busybox applets that have been replaced
52 while read i
53 do
54 busybox ln -s /bin/busybox "$1$i"
55 done <<EOT
56 /bin/kill
57 /bin/nice
58 /bin/sleep
59 /usr/bin/env
60 /usr/bin/nohup
61 /usr/bin/timeout
62 /usr/sbin/chroot
63 EOT
64 }