wok-current view coreutils-file-output-full/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (9 months ago)
parents 3b252eb4d26a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-output-full"
4 VERSION="9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that output entire files."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
11 SUGGESTED="coreutils-lang"
12 DEPENDS="glibc-base"
13 WANTED="coreutils"
15 HOST_ARCH="i486 x86_64"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 # according to https://doc.slitaz.org/en:cookbook:wok
21 # Generally, the base packages contain no man, info or doc files
22 # mandir="$fs/usr/share/man/man1"
23 # mkdir -p $mandir
25 while read i
26 do
27 mkdir -p $fs$(dirname $i)
28 cp -a $install$i $fs$i
29 # find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
30 done <<EOT
31 /bin/cat
32 /usr/bin/base32
33 /usr/bin/base64
34 /usr/bin/nl
35 /usr/bin/od
36 /usr/bin/tac
37 EOT
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/base64" # /usr/bin/base64
45 }
47 post_remove()
48 {
49 # Restore all Busybox applets that have been replaced
50 while read i
51 do
52 busybox ln -s /bin/busybox "$1$i"
53 done <<EOT
54 /bin/base64
55 /bin/cat
56 /usr/bin/od
57 /usr/bin/tac
58 EOT
59 }