wok-current view coreutils-command/receipt @ rev 20717
updated Geomyidae (0.26.1 -> 0.34)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 08 14:02:16 2019 +0100 (2019-02-08) |
parents | 6fab3264ba87 |
children | 9b6a3a5c1a07 |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-command"
4 VERSION="8.25"
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 WANTED="coreutils"
12 DEPENDS="glibc-base"
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; do
21 mkdir -p $fs$(dirname $i)
22 cp -a $install$i $fs$i
23 find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
24 done <<EOT
25 /usr/bin/env
26 /usr/bin/kill
27 /usr/bin/nice
28 /usr/bin/nohup
29 /usr/bin/sleep
30 /usr/bin/stdbuf
31 /usr/bin/timeout
32 /usr/libexec/coreutils/libstdbuf.so
33 /usr/sbin/chroot
34 EOT
36 mv $mandir/chroot.* ${mandir/1/8}
37 }
39 post_install()
40 {
41 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
42 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
43 rm "$1/bin/kill" # /usr/bin/kill
44 rm "$1/bin/nice" # /usr/bin/nice
45 rm "$1/bin/sleep" # /usr/bin/sleep
46 }
48 post_remove()
49 {
50 # Restore all Busybox applets that have been replaced
51 while read i; do
52 busybox ln -s /bin/busybox "$1$i"
53 done <<EOT
54 /bin/kill
55 /bin/nice
56 /bin/sleep
57 /usr/bin/env
58 /usr/bin/nohup
59 /usr/bin/timeout
60 /usr/sbin/chroot
61 EOT
62 }