wok-next view coreutils/receipt @ rev 20433

mupdf: update patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 05 15:11:20 2018 +0100 (2018-02-05)
parents c963361d3d54
children 90a5eb560fd6
line source
1 # SliTaz package receipt v2.
3 PACKAGE="coreutils"
4 VERSION="8.25"
5 CATEGORY="meta"
6 SHORT_DESC="Utilities for using and setting the basic system"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 SIBLINGS="coreutils-multicall"
15 BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch"
16 SPLIT="coreutils-character coreutils-command coreutils-conditions coreutils-\
17 context-system coreutils-context-user coreutils-context-working coreutils-\
18 directory coreutils-disk coreutils-file-attributes coreutils-file-format \
19 coreutils-file-output-full coreutils-file-output-part coreutils-file-sort \
20 coreutils-file-special coreutils-file-summarize coreutils-line coreutils-\
21 numeric coreutils-operations coreutils-path coreutils-print coreutils-\
22 redirection"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Rebuild fixed translations
28 msgfmt po/nb.po -o po/nb.gmo
29 msgfmt po/sl.po -o po/sl.gmo
31 autoreconf -fi
33 FORCE_UNSAFE_CONFIGURE=1 ./configure $CONFIGURE_ARGS &&
34 make && make install
36 # LFS: Move programs to the locations specified by the FHS
37 mkdir -p \
38 $install/bin \
39 $install/usr/sbin \
40 $install/usr/share/man/man8
41 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
42 mknod mv pwd rm rmdir stty sync true uname; do
43 mv $install/usr/bin/$i $install/bin
44 done
45 mv $install/usr/bin/chroot $install/usr/sbin
46 mv $install/usr/share/man/man1/chroot.1 \
47 $install/usr/share/man/man8/chroot.8
48 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 case $PACKAGE in
55 coreutils)
56 DEPENDS="$SPLIT" ;;
57 coreutils-character)
58 copy expand tr unexpand
59 CAT="system-tools|operate on characters"
60 DEPENDS="glibc-base" ;;
61 coreutils-command)
62 copy env kill nice nohup sleep stdbuf timeout libstdbuf.so chroot
63 CAT="system-tools|commands"
64 DEPENDS="glibc-base" ;;
65 coreutils-conditions)
66 copy false true [ expr test
67 CAT="system-tools|conditions"
68 DEPENDS="glibc-base gmp" ;;
69 coreutils-context-system)
70 copy date uname chcon hostid nproc runcon uptime
71 CAT="system-tools|system context"
72 DEPENDS="glibc-base" ;;
73 coreutils-context-user)
74 copy groups id logname pinky users who whoami
75 CAT="system-tools|user context"
76 DEPENDS="glibc-base" ;;
77 coreutils-context-working)
78 copy pwd stty printenv tty
79 CAT="system-tools|working context"
80 DEPENDS="glibc-base" ;;
81 coreutils-directory)
82 copy ls dir dircolors vdir
83 CAT="system-tools|list directories"
84 DEPENDS="glibc-base attr libcap" ;;
85 coreutils-disk)
86 copy df sync du stat truncate
87 CAT="system-tools|work with disks"
88 DEPENDS="glibc-base" ;;
89 coreutils-file-attributes)
90 copy chgrp chmod chown touch
91 CAT="system-tools|change file attributes"
92 DEPENDS="glibc-base" ;;
93 coreutils-file-format)
94 copy fmt fold pr
95 CAT="system-tools|format file contents"
96 DEPENDS="glibc-base" ;;
97 coreutils-file-output-full)
98 copy cat base32 base64 nl od tac
99 CAT="system-tools|output entire files"
100 DEPENDS="glibc-base" ;;
101 coreutils-file-output-part)
102 copy csplit head split tail
103 CAT="system-tools|output file parts"
104 DEPENDS="glibc-base" ;;
105 coreutils-file-sort)
106 copy comm ptx shuf sort tsort uniq
107 CAT="system-tools|operate on sorted files"
108 DEPENDS="glibc-base" ;;
109 coreutils-file-special)
110 copy ln mkdir mknod rmdir link mkfifo mktemp readlink realpath unlink
111 CAT="system-tools|work with special file types"
112 DEPENDS="glibc-base" ;;
113 coreutils-file-summarize)
114 copy cksum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum sum wc
115 CAT="system-tools|summarize files"
116 DEPENDS="glibc-base" ;;
117 coreutils-line)
118 copy cut join paste
119 CAT="system-tools|operate on fields within a line"
120 DEPENDS="glibc-base" ;;
121 coreutils-numeric)
122 copy factor seq
123 CAT="system-tools|numeric"
124 DEPENDS="glibc-base gmp" ;;
125 coreutils-operations)
126 copy cp dd mv install rm shred
127 CAT="system-tools|perform basic operations"
128 DEPENDS="glibc-base acl attr" ;;
129 coreutils-path)
130 copy basename dirname pathchk
131 CAT="system-tools|perform path manipulation"
132 DEPENDS="glibc-base" ;;
133 coreutils-print)
134 copy echo numfmt printf yes
135 CAT="system-tools|print text"
136 DEPENDS="glibc-base" ;;
137 coreutils-redirection)
138 copy tee
139 CAT="system-tools|redirection"
140 DEPENDS="glibc-base" ;;
141 esac
142 }
144 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
145 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
146 post_install_coreutils_command()
147 {
148 rm "$1/bin/kill" # for /usr/bin/kill
149 rm "$1/bin/nice" # for /usr/bin/nice
150 rm "$1/bin/sleep" # for /usr/bin/sleep
151 }
152 post_install_coreutils_context_working()
153 {
154 rm "$1/bin/printenv" # for /usr/bin/printenv
155 }
156 post_install_coreutils_disk()
157 {
158 rm "$1/bin/stat" # for /usr/bin/stat
159 }
160 post_install_coreutils_file_attributes()
161 {
162 rm "$1/bin/touch" # for /usr/bin/touch
163 }
164 post_install_coreutils_file_output_full()
165 {
166 rm "$1/bin/base64" # for /usr/bin/base64
167 }
168 post_install_coreutils_file_special()
169 {
170 rm "$1/bin/mktemp" # for /usr/bin/mktemp
171 }