wok-current view coreutils/receipt @ rev 22789
updated galculator (2.1.3 -> 2.1.4)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jan 27 07:44:14 2020 +0100 (2020-01-27) |
parents | 1d0123efe74c |
children | 17091bc7c301 |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="8.31"
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"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
14 SIBLINGS="coreutils-multicall"
15 SPLIT="coreutils-character coreutils-command coreutils-conditions
16 coreutils-context-system coreutils-context-user
17 coreutils-context-working coreutils-directory coreutils-disk
18 coreutils-file-attributes coreutils-file-format
19 coreutils-file-output-full coreutils-file-output-part
20 coreutils-file-sort coreutils-file-special coreutils-file-summarize
21 coreutils-line coreutils-numeric coreutils-operations
22 coreutils-path coreutils-print coreutils-redirection"
23 DEPENDS="acl attr glibc-base gmp"
24 BUILD_DEPENDS="automake gmp-dev libcap-dev xz"
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # LFS: Coreutils Internationalization Fixes Patch
30 # patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch
32 # SliTaz: show extended info touching CPU via uname
33 patch -p1 -i $stuff/uname.u
35 autoreconf -fi
37 # bypass checking whether mknod can create fifo without root privileges
38 export FORCE_UNSAFE_CONFIGURE=1
40 ./configure $CONFIGURE_ARGS &&
41 make &&
42 make install
44 # LFS: Move programs to the locations specified by the FHS
45 mkdir -p $install/bin
46 mkdir -p $install/usr/sbin
47 mkdir -p $install/usr/share/man/man8
49 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
50 mknod mv pwd rm rmdir stty sync true uname
51 do
52 mv $install/usr/bin/$i $install/bin
53 done
54 mv $install/usr/bin/chroot $install/usr/sbin
55 mv $install/usr/share/man/man1/chroot.1 \
56 $install/usr/share/man/man8/chroot.8
58 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
60 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 # A set of binaries looks intriguing, isn't it?
67 # For what is this package with exactly these binaries?
69 mkdir -p $fs/usr/bin
70 mkdir -p $fs/bin
72 cd $install/usr/bin
73 for i in base64 csplit factor fmt join od paste ptx shred shuf \
74 split users groups
75 do
76 cp -a $i $fs/usr/bin
77 done
79 cp -a $install/bin/cp $fs/bin
80 }
82 post_install()
83 {
84 # Remove Busybox applet in order to not clash with
85 # /usr/bin/base64 from this package.
86 rm "$1/bin/base64"
87 }
89 post_remove()
90 {
91 ln -s busybox "$1/bin/base64"
92 ln -s busybox "$1/bin/cp"
93 ln -s /bin/busybox "$1/usr/bin/groups"
94 ln -s /bin/busybox "$1/usr/bin/od"
95 ln -s /bin/busybox "$1/usr/bin/split"
96 ln -s /bin/busybox "$1/usr/bin/users"
97 }