wok-current view coreutils/receipt @ rev 20399
Add code2 (speech codec 0.7-3.2 Kb/s)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 27 16:09:41 2018 +0200 (2018-06-27) |
parents | d6ca18366f41 |
children | 9b6a3a5c1a07 |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="8.25"
5 CATEGORY="system-tools"
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"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 SIBLINGS="coreutils-multicall"
14 SPLIT="coreutils-character coreutils-command coreutils-conditions coreutils-\
15 context-system coreutils-context-user coreutils-context-working coreutils-\
16 directory coreutils-disk coreutils-file-attributes coreutils-file-format \
17 coreutils-file-output-full coreutils-file-output-part coreutils-file-sort \
18 coreutils-file-special coreutils-file-summarize coreutils-line coreutils-\
19 numeric coreutils-operations coreutils-path coreutils-print coreutils-\
20 redirection"
21 DEPENDS="glibc-base acl attr gmp"
22 BUILD_DEPENDS="automake xz libcap-dev gmp-dev"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # LFS: Coreutils Internationalization Fixes Patch
28 patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch
29 # SliTaz: show extended info touching CPU via uname
30 patch -p1 -i $stuff/uname.u
32 autoreconf -fi
34 FORCE_UNSAFE_CONFIGURE=1 ./configure $CONFIGURE_ARGS &&
35 make && make install
37 # LFS: Move programs to the locations specified by the FHS
38 mkdir -p \
39 $install/bin \
40 $install/usr/sbin \
41 $install/usr/share/man/man8
42 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
43 mknod mv pwd rm rmdir stty sync true uname; do
44 mv $install/usr/bin/$i $install/bin
45 done
46 mv $install/usr/bin/chroot $install/usr/sbin
47 mv $install/usr/share/man/man1/chroot.1 \
48 $install/usr/share/man/man8/chroot.8
49 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
51 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 # A set of binaries looks intriguing, isn't it?
58 # For what is this package with exactly these binaries?
60 mkdir -p $fs/usr/bin $fs/bin
62 cd $install/usr/bin
63 cp -a base64 csplit factor fmt join od paste ptx shred shuf split users \
64 groups $fs/usr/bin
66 cp -a $install/bin/cp $fs/bin
67 }
69 post_install()
70 {
71 # Remove Busybox applet in order to not clash with
72 # /usr/bin/base64 from this package.
73 rm "$1/bin/base64"
74 }
76 post_remove()
77 {
78 ln -s busybox "$1/bin/base64"
79 ln -s busybox "$1/bin/cp"
80 ln -s /bin/busybox "$1/usr/bin/groups"
81 ln -s /bin/busybox "$1/usr/bin/od"
82 ln -s /bin/busybox "$1/usr/bin/split"
83 ln -s /bin/busybox "$1/usr/bin/users"
84 }