wok diff coreutils-file-sort/receipt @ rev 19725

compiz-core: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 16 15:48:06 2017 +0100 (2017-02-16)
parents 6fab3264ba87
children 9b6a3a5c1a07
line diff
     1.1 --- a/coreutils-file-sort/receipt	Fri Dec 25 15:23:46 2015 +0200
     1.2 +++ b/coreutils-file-sort/receipt	Thu Feb 16 15:48:06 2017 +0100
     1.3 @@ -1,36 +1,44 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="coreutils-file-sort"
     1.7 -VERSION="8.12"
     1.8 +VERSION="8.25"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="GNU utilities that operate on sorted files."
    1.11  MAINTAINER="rcx@zoominternet.net"
    1.12  LICENSE="GPL3"
    1.13 -WEB_SITE="http://www.gnu.org/software/coreutils/"
    1.14 +WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
    1.15 +
    1.16  WANTED="coreutils"
    1.17 -
    1.18  DEPENDS="glibc-base"
    1.19  
    1.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.21 -#
    1.22 -# This is a special package for installed system or developer. We only take
    1.23 -# a few things, as Busybox provides all the basic utilities, but not for compiling.
    1.24 -# But DO NOT erase a Busybox applet, remove it before with pre_install rules.
    1.25 -#
    1.26  genpkg_rules()
    1.27  {
    1.28 -	mkdir -p $fs/usr/bin
    1.29 -	cp -a $install/usr/bin/sort $fs/usr/bin
    1.30 -	cp -a $install/usr/bin/shuf $fs/usr/bin
    1.31 -	cp -a $install/usr/bin/uniq $fs/usr/bin
    1.32 -	cp -a $install/usr/bin/comm $fs/usr/bin
    1.33 -	cp -a $install/usr/bin/ptx  $fs/usr/bin
    1.34 -	cp -a $install/usr/bin/tsort $fs/usr/bin
    1.35 +	mandir="$fs/usr/share/man/man1"
    1.36 +	mkdir -p $mandir
    1.37 +
    1.38 +	while read i; do
    1.39 +		mkdir -p $fs$(dirname $i)
    1.40 +		cp -a $install$i $fs$i
    1.41 +		find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
    1.42 +	done <<EOT
    1.43 +/usr/bin/comm
    1.44 +/usr/bin/ptx
    1.45 +/usr/bin/shuf
    1.46 +/usr/bin/sort
    1.47 +/usr/bin/tsort
    1.48 +/usr/bin/uniq
    1.49 +EOT
    1.50  }
    1.51  
    1.52  post_remove()
    1.53  {
    1.54 -	ln -s /bin/busybox "$1/usr/bin/sort"
    1.55 -	ln -s /bin/busybox "$1/usr/bin/uniq"
    1.56 -	ln -s /bin/busybox "$1/usr/bin/comm"
    1.57 +	# Restore all Busybox applets that have been replaced
    1.58 +	while read i; do
    1.59 +		busybox ln -s /bin/busybox "$1$i"
    1.60 +	done <<EOT
    1.61 +/usr/bin/comm
    1.62 +/usr/bin/sort
    1.63 +/usr/bin/uniq
    1.64 +EOT
    1.65  }