wok-next diff 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
line diff
     1.1 --- a/coreutils-multicall/receipt	Fri Dec 16 01:16:56 2016 +0200
     1.2 +++ b/coreutils-multicall/receipt	Sat Nov 04 22:29:34 2017 +0100
     1.3 @@ -1,28 +1,23 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="coreutils-multicall"
     1.8  VERSION="8.25"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="Utilities for using and setting the basic system."
    1.11 +SHORT_DESC="Utilities for using and setting the basic system"
    1.12  MAINTAINER="al.bobylev@gmail.com"
    1.13  LICENSE="GPL3"
    1.14  WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
    1.15 +
    1.16  TARBALL="coreutils-$VERSION.tar.xz"
    1.17  WGET_URL="$GNU_MIRROR/coreutils/$TARBALL"
    1.18  
    1.19  SIBLINGS="coreutils"
    1.20 -DEPENDS="glibc-base acl attr libcap gmp"
    1.21  BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch"
    1.22  
    1.23  # Rules to configure and make the package.
    1.24  compile_rules()
    1.25  {
    1.26 -	# LFS: Coreutils Internationalization Fixes Patch
    1.27 -	patch -Np1 -i $WOK/coreutils/stuff/coreutils-8.25-i18n-2.patch
    1.28 -	# SliTaz: show extended info touching CPU via uname
    1.29 -	patch  -p1 -i $WOK/coreutils/stuff/uname.u
    1.30 -	# SliTaz: fix translations, especially deprecated symbol '\v'
    1.31 -	patch  -p1 -i $WOK/coreutils/stuff/coreutils-fix-po.patch
    1.32 +	# Rebuild fixed translations
    1.33  	msgfmt po/nb.po -o po/nb.gmo
    1.34  	msgfmt po/sl.po -o po/sl.gmo
    1.35  
    1.36 @@ -35,7 +30,10 @@
    1.37  	make && make install
    1.38  
    1.39  	# LFS: Move programs to the locations specified by the FHS
    1.40 -	mkdir -p $install/bin $install/usr/sbin $install/usr/share/man/man8
    1.41 +	mkdir -p \
    1.42 +		$install/bin \
    1.43 +		$install/usr/sbin \
    1.44 +		$install/usr/share/man/man8
    1.45  	for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \
    1.46  		mknod mv pwd rm rmdir stty sync true uname; do
    1.47  		rm $install/usr/bin/$i
    1.48 @@ -51,13 +49,14 @@
    1.49  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.50  genpkg_rules()
    1.51  {
    1.52 -	cook_copy_folders bin sbin libexec
    1.53 +	copy @std
    1.54 +	DEPENDS="glibc-base acl attr libcap gmp"
    1.55  }
    1.56  
    1.57 -post_install()
    1.58 -{
    1.59  	# Remove Busybox applets in order to not clash with ("/bin", "/sbin",
    1.60  	# "/usr/bin" and "/usr/sbin" conflicts with the same filename)
    1.61 +post_install_coreutils_multicall()
    1.62 +{
    1.63  	rm "$1/bin/base64"   # for /usr/bin/base64
    1.64  	rm "$1/bin/kill"     # for /usr/bin/kill
    1.65  	rm "$1/bin/mktemp"   # for /usr/bin/mktemp
    1.66 @@ -67,27 +66,3 @@
    1.67  	rm "$1/bin/stat"     # for /usr/bin/stat
    1.68  	rm "$1/bin/touch"    # for /usr/bin/touch
    1.69  }
    1.70 -
    1.71 -post_remove()
    1.72 -{
    1.73 -	# Restore all Busybox applets that have been replaced
    1.74 -
    1.75 -	# /bin:
    1.76 -	for i in base64 cat chgrp chmod chown cp date dd df echo false kill ln ls \
    1.77 -		mkdir mknod mktemp mv nice printenv pwd rm rmdir sleep stat stty sync \
    1.78 -		touch true uname; do
    1.79 -		busybox ln -s busybox "$1/bin/$i"
    1.80 -	done
    1.81 -
    1.82 -	# /usr/bin:
    1.83 -	for i in '[' basename cksum comm cut dirname du env expand expr fold \
    1.84 -		groups head hostid id install logname md5sum mkfifo nohup od printf \
    1.85 -		readlink realpath seq sha1sum sha256sum sha512sum sort split sum tac \
    1.86 -		tail tee test timeout tr tty unexpand uniq uptime users wc who whoami \
    1.87 -		yes; do
    1.88 -		busybox ln -s /bin/busybox "$1/usr/bin/$i"
    1.89 -	done
    1.90 -
    1.91 -	# /usr/sbin:
    1.92 -	busybox ln -s /bin/busybox "$1/usr/sbin/chroot"
    1.93 -}