aboutsummaryrefslogtreecommitdiff
path: root/academic/gcompris
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-27 07:28:47 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-29 17:17:35 -0500
commit466ae5343b01accbf0d0dceeb874a07f7398360e (patch)
treefa35a929e57a5a0188dcaa5e5ccab471828ea93d /academic/gcompris
parentf37bbbc550f5394ccd333f4b0f38574b91cde231 (diff)
academic/gcompris: Fixed (handle man and info files)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'academic/gcompris')
-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 0aa6211e04f8..ebae295e0b4f 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