wok-next view coreutils-file-summarize/receipt @ rev 15152

libpri: fix a source file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 13:59:18 2013 +0000 (2013-08-15)
parents bf9d643b2c59
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-summarize"
4 VERSION="8.12"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that summarize files."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.gnu.org/software/coreutils/"
10 WANTED="coreutils"
12 DEPENDS="glibc-base"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 #
16 # This is a special package for installed system or developer. We only take
17 # a few things, as Busybox provides all the basic utilities, but not for compiling.
18 # But DO NOT erase a Busybox applet, remove it before with pre_install rules.
19 #
20 genpkg_rules()
21 {
22 mkdir -p $fs/usr/bin
23 cp -a $install/usr/bin/wc $fs/usr/bin
24 cp -a $install/usr/bin/sum $fs/usr/bin
25 cp -a $install/usr/bin/cksum $fs/usr/bin
26 cp -a $install/usr/bin/md5sum $fs/usr/bin
27 cp -a $install/usr/bin/sha1sum $fs/usr/bin
28 cp -a $install/usr/bin/sha224sum $fs/usr/bin
29 cp -a $install/usr/bin/sha256sum $fs/usr/bin
30 cp -a $install/usr/bin/sha384sum $fs/usr/bin
31 cp -a $install/usr/bin/sha512sum $fs/usr/bin
32 }
34 # Pre and post install commands for Tazpkg.
35 # We must remove all Busybox symlink before installing.
36 #
37 pre_install()
38 {
39 local root
40 root=$1
41 echo "Processing pre-install commands..."
42 echo -n "Removing all Busybox replaced utils... "
43 rm -f $root/usr/bin/wc $root/usr/bin/sum $root/usr/bin/cksum \
44 $root/usr/bin/md5sum $root/usr/bin/sha1sum \
45 $root/usr/bin/sha256sum $root/usr/bin/sha512sum
46 status
47 }
49 post_remove()
50 {
51 ln -s /bin/busybox $1/usr/bin/wc
52 ln -s /bin/busybox $1/usr/bin/sum
53 ln -s /bin/busybox $1/usr/bin/cksum
54 ln -s /bin/busybox $1/usr/bin/md5sum
55 ln -s /bin/busybox $1/usr/bin/sha1sum
56 ln -s /bin/busybox $1/usr/bin/sha256sum
57 ln -s /bin/busybox $1/usr/bin/sha512sum
58 }