coreutils-8.29.recipe revision fd51c417
1SUMMARY="Standard GNU core utilities"
2DESCRIPTION="Most of these programs have significant advantages over their \
3Unix counterparts, such as greater speed, additional options, and fewer \
4arbitrary limits.
5
6The programs that can be built with this package are:
7
8  [ arch base64 basename cat chcon chgrp chmod chown chroot cksum comm cp \
9csplit cut date dd df dir dircolors dirname du echo env expand expr \
10factor false fmt fold groups head hostid hostname id install join kill \
11link ln logname ls md5sum mkdir mkfifo mknod mktemp mv nice nl nohup \
12nproc numfmt od paste pathchk pinky pr printenv printf ptx pwd readlink \
13realpath rm rmdir runcon seq sha1sum sha224sum sha256sum sha384sum sha512sum \
14shred shuf sleep sort split stat stdbuf stty sum sync tac tail tee test \
15timeout touch tr true truncate tsort tty uname unexpand uniq unlink \
16uptime users vdir wc who whoami yes"
17HOMEPAGE="https://www.gnu.org/software/coreutils/"
18COPYRIGHT="1994-2017 Free Software Foundation, Inc."
19LICENSE="GNU GPL v3"
20REVISION="2"
21SOURCE_URI="https://ftpmirror.gnu.org/coreutils/coreutils-$portVersion.tar.xz
22	https://ftp.gnu.org/gnu/coreutils/coreutils-$portVersion.tar.xz"
23CHECKSUM_SHA256="92d0fa1c311cacefa89853bdb53c62f4110cdfda3820346b59cbd098f40f955e"
24PATCHES="coreutils-$portVersion.patchset"
25
26ARCHITECTURES="?x86_gcc2 ?x86 x86_64 ?arm"
27
28binVersionCompat="$portVersion compat >= ${portVersion%%.*}"
29PROVIDES="
30	coreutils = $binVersionCompat
31	cmd:[ = $binVersionCompat
32	cmd:b2sum = $binVersionCompat
33	cmd:base32 = $binVersionCompat
34	cmd:base64 = $binVersionCompat
35	cmd:basename = $binVersionCompat
36	cmd:cat = $binVersionCompat
37	cmd:chcon = $binVersionCompat
38	cmd:chgrp = $binVersionCompat
39	cmd:chmod = $binVersionCompat
40	cmd:chown = $binVersionCompat
41	cmd:chroot = $binVersionCompat
42	cmd:cksum = $binVersionCompat
43	cmd:comm = $binVersionCompat
44	cmd:cp = $binVersionCompat
45	cmd:csplit = $binVersionCompat
46	cmd:cut = $binVersionCompat
47	cmd:date = $binVersionCompat
48	cmd:dd = $binVersionCompat
49	cmd:dir = $binVersionCompat
50	cmd:dircolors = $binVersionCompat
51	cmd:dirname = $binVersionCompat
52	cmd:du = $binVersionCompat
53	cmd:echo = $binVersionCompat
54	cmd:env = $binVersionCompat
55	cmd:expand = $binVersionCompat
56	cmd:expr = $binVersionCompat
57	cmd:factor = $binVersionCompat
58	cmd:false = $binVersionCompat
59	cmd:fmt = $binVersionCompat
60	cmd:fold = $binVersionCompat
61	cmd:groups = $binVersionCompat
62	cmd:head = $binVersionCompat
63	cmd:hostname = $binVersionCompat
64	cmd:id = $binVersionCompat
65	cmd:install = $binVersionCompat
66	cmd:join = $binVersionCompat
67	cmd:kill = $binVersionCompat
68	cmd:link = $binVersionCompat
69	cmd:ln = $binVersionCompat
70	cmd:logname = $binVersionCompat
71	cmd:ls = $binVersionCompat
72	cmd:md5sum = $binVersionCompat
73	cmd:mkdir = $binVersionCompat
74	cmd:mkfifo = $binVersionCompat
75	cmd:mknod = $binVersionCompat
76	cmd:mktemp = $binVersionCompat
77	cmd:mv = $binVersionCompat
78	cmd:nl = $binVersionCompat
79	cmd:nohup = $binVersionCompat
80	cmd:nproc = $binVersionCompat
81	cmd:numfmt = $binVersionCompat
82	cmd:od = $binVersionCompat
83	cmd:paste = $binVersionCompat
84	cmd:pathchk = $binVersionCompat
85	cmd:pr = $binVersionCompat
86	cmd:printenv = $binVersionCompat
87	cmd:printf = $binVersionCompat
88	cmd:ptx = $binVersionCompat
89	cmd:pwd = $binVersionCompat
90	cmd:readlink = $binVersionCompat
91	cmd:realpath = $binVersionCompat
92	cmd:rm = $binVersionCompat
93	cmd:rmdir = $binVersionCompat
94	cmd:runcon = $binVersionCompat
95	cmd:seq = $binVersionCompat
96	cmd:sha1sum = $binVersionCompat
97	cmd:sha224sum = $binVersionCompat
98	cmd:sha256sum = $binVersionCompat
99	cmd:sha384sum = $binVersionCompat
100	cmd:sha512sum = $binVersionCompat
101	cmd:shred = $binVersionCompat
102	cmd:shuf = $binVersionCompat
103	cmd:sleep = $binVersionCompat
104	cmd:sort = $binVersionCompat
105	cmd:split = $binVersionCompat
106	cmd:stat = $binVersionCompat
107	cmd:stdbuf = $binVersionCompat
108	cmd:stty = $binVersionCompat
109	cmd:sum = $binVersionCompat
110	cmd:sync = $binVersionCompat
111	cmd:tac = $binVersionCompat
112	cmd:tail = $binVersionCompat
113	cmd:tee = $binVersionCompat
114	cmd:test = $binVersionCompat
115	cmd:timeout = $binVersionCompat
116	cmd:touch = $binVersionCompat
117	cmd:tr = $binVersionCompat
118	cmd:true = $binVersionCompat
119	cmd:truncate = $binVersionCompat
120	cmd:tsort = $binVersionCompat
121	cmd:tty = $binVersionCompat
122	cmd:uname = $binVersionCompat
123	cmd:unexpand = $binVersionCompat
124	cmd:uniq = $binVersionCompat
125	cmd:unlink = $binVersionCompat
126	cmd:uptime = $binVersionCompat
127	cmd:vdir = $binVersionCompat
128	cmd:wc = $binVersionCompat
129	cmd:whoami = $binVersionCompat
130	cmd:yes = $binVersionCompat
131	"
132REQUIRES="
133	haiku
134	"
135
136BUILD_PREREQUIRES="
137	haiku_devel
138	cmd:awk
139	cmd:gcc
140	cmd:grep
141	cmd:help2man
142	cmd:ld
143	cmd:make
144	cmd:makeinfo
145	cmd:sed
146	"
147
148defineDebugInfoPackage coreutils \
149	$binDir/[ \
150	$binDir/b2sum \
151	$binDir/base32 \
152	$binDir/base64 \
153	$binDir/basename \
154	$binDir/cat \
155	$binDir/chcon \
156	$binDir/chgrp \
157	$binDir/chmod \
158	$binDir/chown \
159	$binDir/chroot \
160	$binDir/cksum \
161	$binDir/comm \
162	$binDir/cp \
163	$binDir/csplit \
164	$binDir/cut \
165	$binDir/date \
166	$binDir/dd \
167	$binDir/dir \
168	$binDir/dircolors \
169	$binDir/dirname \
170	$binDir/du \
171	$binDir/echo \
172	$binDir/env \
173	$binDir/expand \
174	$binDir/expr \
175	$binDir/factor \
176	$binDir/false \
177	$binDir/fmt \
178	$binDir/fold \
179	$binDir/groups \
180	$binDir/head \
181	$binDir/hostname \
182	$binDir/id \
183	$binDir/install \
184	$binDir/join \
185	$binDir/kill \
186	$binDir/link \
187	$binDir/ln \
188	$binDir/logname \
189	$binDir/ls \
190	$binDir/md5sum \
191	$binDir/mkdir \
192	$binDir/mkfifo \
193	$binDir/mknod \
194	$binDir/mktemp \
195	$binDir/mv \
196	$binDir/nl \
197	$binDir/nohup \
198	$binDir/nproc \
199	$binDir/numfmt \
200	$binDir/od \
201	$binDir/paste \
202	$binDir/pathchk \
203	$binDir/pr \
204	$binDir/printenv \
205	$binDir/printf \
206	$binDir/ptx \
207	$binDir/pwd \
208	$binDir/readlink \
209	$binDir/realpath \
210	$binDir/rm \
211	$binDir/rmdir \
212	$binDir/runcon \
213	$binDir/seq \
214	$binDir/sha1sum \
215	$binDir/sha224sum \
216	$binDir/sha256sum \
217	$binDir/sha384sum \
218	$binDir/sha512sum \
219	$binDir/shred \
220	$binDir/shuf \
221	$binDir/sleep \
222	$binDir/sort \
223	$binDir/split \
224	$binDir/stat \
225	$binDir/stdbuf \
226	$binDir/stty \
227	$binDir/sum \
228	$binDir/sync \
229	$binDir/tac \
230	$binDir/tail \
231	$binDir/tee \
232	$binDir/test \
233	$binDir/timeout \
234	$binDir/touch \
235	$binDir/tr \
236	$binDir/true \
237	$binDir/truncate \
238	$binDir/tsort \
239	$binDir/tty \
240	$binDir/uname \
241	$binDir/unexpand \
242	$binDir/uniq \
243	$binDir/unlink \
244	$binDir/uptime \
245	$binDir/vdir \
246	$binDir/wc \
247	$binDir/whoami \
248	$binDir/yes
249
250PATCH()
251{
252	sed -i -e 's|O_NOCACHE|DD_NOCACHE|g' src/dd.c
253}
254
255BUILD()
256{
257	FORCE_UNSAFE_CONFIGURE=1 runConfigure ./configure \
258		--without-included-regex \
259		--disable-rpath --with-gnu-ld \
260		--enable-no-install-program=df \
261		--enable-install-program=hostname
262	touch doc/*.info
263	make $jobArgs
264}
265
266INSTALL()
267{
268	make install
269}
270
271TEST()
272{
273	make check
274}
275