mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
misc/moreutils: Make requirements optional, add a build variable
Signed-off-by: Arkadiusz Drabczyk <arkadiusz@drabczyk.org> Co-developed-by: B Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
c29597cef1
commit
cf4838634f
3 changed files with 17 additions and 3 deletions
|
@ -1,4 +1,10 @@
|
|||
moreutils is a growing collection of the unix tools that nobody
|
||||
thought to write long ago when unix was young.
|
||||
|
||||
This package conflicts with system/parallel.
|
||||
perl-IPC-Run is an optional dependency, if it's missing chronic will
|
||||
not be installed.
|
||||
|
||||
This package conflicts with system/parallel so moreutils version of
|
||||
parallel is not installed by default. To install it:
|
||||
|
||||
PARALLEL=yes ./moreutils.SlackBuild
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=moreutils
|
||||
VERSION=${VERSION:-0.63}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -77,6 +77,14 @@ mkdir $PKG/usr/man
|
|||
mv $PKG/usr/share/man/* $PKG/usr/man
|
||||
rm -rf $PKG/usr/share/ $PKG/usr/man/man1/ts.1
|
||||
|
||||
if [ "${PARALLEL:-yes}" = "no" ]; then
|
||||
rm -f $PKG/usr/bin/parallel $PKG/usr/man/man1/parallel.1
|
||||
fi
|
||||
|
||||
if ! perl -MIPC::Run -e 1 2>/dev/null; then
|
||||
rm -f $PKG/usr/bin/chronic $PKG/usr/man/man1/chronic.1
|
||||
fi
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
|
|
@ -5,6 +5,6 @@ DOWNLOAD="http://drabczyk.org/moreutils-0.63.tar.gz"
|
|||
MD5SUM="0af12becbed31dc5d57c4a880ef398fc"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="perl-IPC-Run"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Arkadiusz Drabczyk"
|
||||
EMAIL="arkadiusz@drabczyk.org"
|
||||
|
|
Loading…
Reference in a new issue