From 10b6baf6100230a55f1801128c1a6db336cf00e2 Mon Sep 17 00:00:00 2001 From: Brenton Earl Date: Thu, 29 Dec 2016 17:54:27 +0000 Subject: office/impressive: Tweaked SlackBuild. Signed-off-by: David Spencer --- office/impressive/impressive.SlackBuild | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'office/impressive') diff --git a/office/impressive/impressive.SlackBuild b/office/impressive/impressive.SlackBuild index ca22e8ecfe..57c6a23b2a 100644 --- a/office/impressive/impressive.SlackBuild +++ b/office/impressive/impressive.SlackBuild @@ -2,8 +2,8 @@ # Slackware build script for impressive -# Copyright 2010 Binh Nguyen -# Copyright 2015 Brenton Earl +# Copyright 2010 Binh Nguyen +# Copyright 2015-2016 Brenton Earl # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,6 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=impressive +SRCNAM=Impressive VERSION=${VERSION:-0.11.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,21 +41,23 @@ set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf Impressive-$VERSION -tar xvf $CWD/Impressive-$VERSION.tar.gz -cd Impressive-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; install -D -m 0755 $PRGNAM.py $PKG/usr/bin/$PRGNAM mkdir -p $PKG/usr/man/man1 cat $PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1 + 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $PRGNAM.html demo.pdf changelog.txt license.txt $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3