diff options
Diffstat (limited to 'libraries/locale-gettext/locale-gettext.SlackBuild')
-rw-r--r-- | libraries/locale-gettext/locale-gettext.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libraries/locale-gettext/locale-gettext.SlackBuild b/libraries/locale-gettext/locale-gettext.SlackBuild index c01609d2a3..fa00322eaf 100644 --- a/libraries/locale-gettext/locale-gettext.SlackBuild +++ b/libraries/locale-gettext/locale-gettext.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for locale-gettext perl module -# Copyright 2006 Robby Workman (http://rlworkman.net) +# Copyright 2006-2007 Robby Workman (http://rlworkman.net) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ VERSION=1.05 ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -52,9 +52,16 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mv $PKG/usr/share/man $PKG/usr/man ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; - for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done ) rm -rf $PKG/usr/share +( cd $PKG + # Remove 'special' files + find . -name perllocal.pod \ + -o -name ".packlist" \ + -o -name "*.bs" \ + | xargs rm -f +) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |