wok-next annotate coreutils-multicall/receipt @ rev 20213
directfb: add libpng patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 22:29:34 2017 +0100 (2017-11-04) |
parents | c963361d3d54 |
children |
rev | line source |
---|---|
al@19745 | 1 # SliTaz package receipt v2. |
al@19216 | 2 |
al@19216 | 3 PACKAGE="coreutils-multicall" |
al@19216 | 4 VERSION="8.25" |
al@19216 | 5 CATEGORY="system-tools" |
al@19745 | 6 SHORT_DESC="Utilities for using and setting the basic system" |
al@19216 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19216 | 8 LICENSE="GPL3" |
al@19216 | 9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" |
al@19745 | 10 |
al@19216 | 11 TARBALL="coreutils-$VERSION.tar.xz" |
al@19216 | 12 WGET_URL="$GNU_MIRROR/coreutils/$TARBALL" |
al@19216 | 13 |
al@19216 | 14 SIBLINGS="coreutils" |
al@19561 | 15 BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch" |
al@19216 | 16 |
al@19216 | 17 # Rules to configure and make the package. |
al@19216 | 18 compile_rules() |
al@19216 | 19 { |
al@19745 | 20 # Rebuild fixed translations |
al@19561 | 21 msgfmt po/nb.po -o po/nb.gmo |
al@19561 | 22 msgfmt po/sl.po -o po/sl.gmo |
al@19216 | 23 |
al@19216 | 24 autoreconf -fi |
al@19216 | 25 |
al@19216 | 26 FORCE_UNSAFE_CONFIGURE=1 \ |
al@19216 | 27 ./configure \ |
al@19216 | 28 --enable-single-binary=symlinks \ |
al@19216 | 29 $CONFIGURE_ARGS && |
al@19216 | 30 make && make install |
al@19216 | 31 |
al@19216 | 32 # LFS: Move programs to the locations specified by the FHS |
al@19745 | 33 mkdir -p \ |
al@19745 | 34 $install/bin \ |
al@19745 | 35 $install/usr/sbin \ |
al@19745 | 36 $install/usr/share/man/man8 |
al@19216 | 37 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \ |
al@19216 | 38 mknod mv pwd rm rmdir stty sync true uname; do |
al@19216 | 39 rm $install/usr/bin/$i |
al@19216 | 40 ln -s /usr/bin/coreutils $install/bin/$i |
al@19216 | 41 done |
al@19216 | 42 rm $install/usr/bin/chroot |
al@19216 | 43 ln -s /usr/bin/coreutils $install/usr/sbin/chroot |
al@19216 | 44 mv $install/usr/share/man/man1/chroot.1 \ |
al@19216 | 45 $install/usr/share/man/man8/chroot.8 |
al@19216 | 46 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 |
al@19216 | 47 } |
al@19216 | 48 |
al@19216 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19216 | 50 genpkg_rules() |
al@19216 | 51 { |
al@19745 | 52 copy @std |
al@19745 | 53 DEPENDS="glibc-base acl attr libcap gmp" |
al@19216 | 54 } |
al@19216 | 55 |
al@19216 | 56 # Remove Busybox applets in order to not clash with ("/bin", "/sbin", |
al@19216 | 57 # "/usr/bin" and "/usr/sbin" conflicts with the same filename) |
al@19745 | 58 post_install_coreutils_multicall() |
al@19745 | 59 { |
al@19561 | 60 rm "$1/bin/base64" # for /usr/bin/base64 |
al@19561 | 61 rm "$1/bin/kill" # for /usr/bin/kill |
al@19561 | 62 rm "$1/bin/mktemp" # for /usr/bin/mktemp |
al@19561 | 63 rm "$1/bin/nice" # for /usr/bin/nice |
al@19561 | 64 rm "$1/bin/printenv" # for /usr/bin/printenv |
al@19561 | 65 rm "$1/bin/sleep" # for /usr/bin/sleep |
al@19561 | 66 rm "$1/bin/stat" # for /usr/bin/stat |
al@19561 | 67 rm "$1/bin/touch" # for /usr/bin/touch |
al@19216 | 68 } |