wok-next view coreutils-multicall/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents 5b84caa85ec8
children 9a17d981d0f7
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-multicall"
4 VERSION="8.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities for using and setting the basic system."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
10 TARBALL="coreutils-$VERSION.tar.xz"
11 WGET_URL="$GNU_MIRROR/coreutils/$TARBALL"
13 SIBLINGS="coreutils"
14 DEPENDS="glibc-base acl attr libcap gmp"
15 BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # LFS: Coreutils Internationalization Fixes Patch
21 patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch
22 # SliTaz: show extended info touching CPU via uname
23 patch -p1 -i $WOK/coreutils/stuff/uname.u
24 # SliTaz: fix translations, especially deprecated symbol '\v'
25 patch -p1 -i $WOK/coreutils/stuff/coreutils-fix-po.patch
26 msgfmt po/nb.po -o po/nb.gmo
27 msgfmt po/sl.po -o po/sl.gmo
29 autoreconf -fi
31 FORCE_UNSAFE_CONFIGURE=1 \
32 ./configure \
33 --enable-single-binary=symlinks \
34 $CONFIGURE_ARGS &&
35 make && make install
37 # LFS: Move programs to the locations specified by the FHS
38 mkdir -p $install/bin $install/usr/sbin $install/usr/share/man/man8
39 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
40 mknod mv pwd rm rmdir stty sync true uname; do
41 rm $install/usr/bin/$i
42 ln -s /usr/bin/coreutils $install/bin/$i
43 done
44 rm $install/usr/bin/chroot
45 ln -s /usr/bin/coreutils $install/usr/sbin/chroot
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 cook_copy_folders bin sbin libexec
55 }
57 post_install()
58 {
59 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
60 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
61 rm "$1/bin/base64" # for /usr/bin/base64
62 rm "$1/bin/kill" # for /usr/bin/kill
63 rm "$1/bin/mktemp" # for /usr/bin/mktemp
64 rm "$1/bin/nice" # for /usr/bin/nice
65 rm "$1/bin/printenv" # for /usr/bin/printenv
66 rm "$1/bin/sleep" # for /usr/bin/sleep
67 rm "$1/bin/stat" # for /usr/bin/stat
68 rm "$1/bin/touch" # for /usr/bin/touch
69 }
71 post_remove()
72 {
73 # Restore all Busybox applets that have been replaced
75 # /bin:
76 for i in base64 cat chgrp chmod chown cp date dd df echo false kill ln ls \
77 mkdir mknod mktemp mv nice printenv pwd rm rmdir sleep stat stty sync \
78 touch true uname; do
79 busybox ln -s busybox "$1/bin/$i"
80 done
82 # /usr/bin:
83 for i in '[' basename cksum comm cut dirname du env expand expr fold \
84 groups head hostid id install logname md5sum mkfifo nohup od printf \
85 readlink realpath seq sha1sum sha256sum sha512sum sort split sum tac \
86 tail tee test timeout tr tty unexpand uniq uptime users wc who whoami \
87 yes; do
88 busybox ln -s /bin/busybox "$1/usr/bin/$i"
89 done
91 # /usr/sbin:
92 busybox ln -s /bin/busybox "$1/usr/sbin/chroot"
93 }