Browse Source

office/impressive: Tweaked SlackBuild.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
pull/27/head
Brenton Earl 9 years ago
committed by David Spencer
parent
commit
10b6baf610
  1. 21
      office/impressive/impressive.SlackBuild

21
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

Loading…
Cancel
Save