summaryrefslogtreecommitdiffstats
path: root/office/impressive
diff options
context:
space:
mode:
Diffstat (limited to 'office/impressive')
-rw-r--r--office/impressive/impressive.SlackBuild21
1 files changed, 12 insertions, 9 deletions
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 <binhvng@gmail.com>
-# Copyright 2015 Brenton Earl <brent@exitstatusone.com>
+# Copyright 2010 Binh Nguyen <binhvng@gmail.com>
+# Copyright 2015-2016 Brenton Earl <brent@exitstatusone.com>
# 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