summaryrefslogtreecommitdiff
path: root/office/ding/ding.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/ding/ding.SlackBuild')
-rw-r--r--office/ding/ding.SlackBuild13
1 files changed, 6 insertions, 7 deletions
diff --git a/office/ding/ding.SlackBuild b/office/ding/ding.SlackBuild
index a57c3291c2..d22d95317d 100644
--- a/office/ding/ding.SlackBuild
+++ b/office/ding/ding.SlackBuild
@@ -10,7 +10,7 @@
# Heavily Modified by Michiel van Wessem <michiel@slackbuilds.org> 20081020
PRGNAM=ding
-VERSION=1.5
+VERSION=1.6
ARCH=${ARCH:-noarch}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,10 +46,8 @@ cp de-en.txt $PKG/usr/share/dict|| exit 1
cp ding.desktop $PKG/usr/share/applications || exit 1
cp ding.png $PKG/usr/share/pixmaps
-( cd $PKG
-find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
@@ -57,8 +55,9 @@ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs st
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -R CHANGES COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cp -R $CWD/{$PRGNAM.SlackBuild,slack-desc,doinst.sh} CHANGES COPYING README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc