From 466ae5343b01accbf0d0dceeb874a07f7398360e Mon Sep 17 00:00:00 2001 From: dsomero Date: Thu, 27 Sep 2012 07:28:47 -0400 Subject: academic/gcompris: Fixed (handle man and info files) Signed-off-by: dsomero --- academic/gcompris/gcompris.SlackBuild | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'academic') 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 -- cgit v1.2.3