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

Up cpufrequtils, dhcp, dhcp6, fontforge, glibc, libspiro, libuninameslist, slitaz-i18n, ttf-dejavu, ttf-roboto, tzdata, ucl.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 09 22:24:52 2017 +0300 (2017-06-09)
parents c963361d3d54
children
line source
1 # SliTaz package receipt v2.
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"
11 TARBALL="coreutils-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/coreutils/$TARBALL"
14 SIBLINGS="coreutils"
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 # Rebuild fixed translations
21 msgfmt po/nb.po -o po/nb.gmo
22 msgfmt po/sl.po -o po/sl.gmo
24 autoreconf -fi
26 FORCE_UNSAFE_CONFIGURE=1 \
27 ./configure \
28 --enable-single-binary=symlinks \
29 $CONFIGURE_ARGS &&
30 make && make install
32 # LFS: Move programs to the locations specified by the FHS
33 mkdir -p \
34 $install/bin \
35 $install/usr/sbin \
36 $install/usr/share/man/man8
37 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
38 mknod mv pwd rm rmdir stty sync true uname; do
39 rm $install/usr/bin/$i
40 ln -s /usr/bin/coreutils $install/bin/$i
41 done
42 rm $install/usr/bin/chroot
43 ln -s /usr/bin/coreutils $install/usr/sbin/chroot
44 mv $install/usr/share/man/man1/chroot.1 \
45 $install/usr/share/man/man8/chroot.8
46 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 copy @std
53 DEPENDS="glibc-base acl attr libcap gmp"
54 }
56 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
57 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
58 post_install_coreutils_multicall()
59 {
60 rm "$1/bin/base64" # for /usr/bin/base64
61 rm "$1/bin/kill" # for /usr/bin/kill
62 rm "$1/bin/mktemp" # for /usr/bin/mktemp
63 rm "$1/bin/nice" # for /usr/bin/nice
64 rm "$1/bin/printenv" # for /usr/bin/printenv
65 rm "$1/bin/sleep" # for /usr/bin/sleep
66 rm "$1/bin/stat" # for /usr/bin/stat
67 rm "$1/bin/touch" # for /usr/bin/touch
68 }