summaryrefslogtreecommitdiffstats
path: root/academic/gcompris/gcompris.SlackBuild
diff options
context:
space:
mode:
author dsomero2012-09-27 13:28:47 +0200
committer Robby Workman2012-09-30 00:17:35 +0200
commit466ae5343b01accbf0d0dceeb874a07f7398360e (patch)
treefa35a929e57a5a0188dcaa5e5ccab471828ea93d /academic/gcompris/gcompris.SlackBuild
parentf37bbbc550f5394ccd333f4b0f38574b91cde231 (diff)
downloadslackbuilds-466ae5343b01accbf0d0dceeb874a07f7398360e.tar.gz
academic/gcompris: Fixed (handle man and info files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'academic/gcompris/gcompris.SlackBuild')
-rw-r--r--academic/gcompris/gcompris.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/academic/gcompris/gcompris.SlackBuild b/academic/gcompris/gcompris.SlackBuild
index 0aa6211e04..ebae295e0b 100644
--- a/academic/gcompris/gcompris.SlackBuild
+++ b/academic/gcompris/gcompris.SlackBuild
@@ -30,15 +30,13 @@
PRGNAM=gcompris
VERSION=${VERSION:-12.05}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -92,9 +90,15 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+rm -f $PKG/usr/info/dir
+gzip -9 $PKG/usr/info/*.info*
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO docs \
$PKG/usr/doc/$PRGNAM-$VERSION