wok-6.x view coreutils-file-output-full/receipt @ rev 20274

linux: recook
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 18 21:05:50 2018 +0100 (2018-03-18)
parents d6ca18366f41
children 9b6a3a5c1a07
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-output-full"
4 VERSION="8.25"
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 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
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 /bin/cat
26 /usr/bin/base32
27 /usr/bin/base64
28 /usr/bin/nl
29 /usr/bin/od
30 /usr/bin/tac
31 EOT
32 }
34 post_install()
35 {
36 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
37 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
38 rm "$1/bin/base64" # /usr/bin/base64
39 }
41 post_remove()
42 {
43 # Restore all Busybox applets that have been replaced
44 while read i; do
45 busybox ln -s /bin/busybox "$1$i"
46 done <<EOT
47 /bin/base64
48 /bin/cat
49 /usr/bin/od
50 /usr/bin/tac
51 EOT
52 }