wok view coreutils-file-summarize/receipt @ rev 19712

podofo: disble lua
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 15 17:57:05 2017 +0100 (2017-02-15)
parents f8a9cafe8cb1
children 9b6a3a5c1a07
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-summarize"
4 VERSION="8.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that summarize 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 /usr/bin/cksum
26 /usr/bin/md5sum
27 /usr/bin/sha1sum
28 /usr/bin/sha224sum
29 /usr/bin/sha256sum
30 /usr/bin/sha384sum
31 /usr/bin/sha512sum
32 /usr/bin/sum
33 /usr/bin/wc
34 EOT
35 }
37 post_remove()
38 {
39 # Restore all Busybox applets that have been replaced
40 while read i; do
41 busybox ln -s /bin/busybox "$1$i"
42 done <<EOT
43 /usr/bin/cksum
44 /usr/bin/md5sum
45 /usr/bin/sha1sum
46 /usr/bin/sha256sum
47 /usr/bin/sha512sum
48 /usr/bin/sum
49 /usr/bin/wc
50 EOT
51 }