summaryrefslogtreecommitdiff
path: root/office/pdfpc/pdfpc.SlackBuild
diff options
context:
space:
mode:
authorMarkus Hutmacher <mailing@markhu.de>2013-06-30 14:11:16 -0500
committerErik Hanson <erik@slackbuilds.org>2013-06-30 14:11:16 -0500
commitc8549aa149d41b27ce5a50ea598968729d03544e (patch)
tree3d40fa075f77e3bf3ec4e69afee7639a1bad16e3 /office/pdfpc/pdfpc.SlackBuild
parent78143eba8777537696e2887ef94878b73167da03 (diff)
downloadslackbuilds-c8549aa149d41b27ce5a50ea598968729d03544e.tar.gz
office/pdfpc: Added (a GTK based presentation viewer application)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'office/pdfpc/pdfpc.SlackBuild')
-rw-r--r--office/pdfpc/pdfpc.SlackBuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/office/pdfpc/pdfpc.SlackBuild b/office/pdfpc/pdfpc.SlackBuild
new file mode 100644
index 0000000000..4008bb738a
--- /dev/null
+++ b/office/pdfpc/pdfpc.SlackBuild
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# Slackware build script for pdfpc
+
+# Written by Markus Hutmacher <mailing@markhu.de>
+
+PRGNAM=pdfpc
+VERSION=${VERSION:-3.1.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=${PKG:-$TMP/package-$PRGNAM}
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -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 {} \;
+
+cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc .
+make
+make install DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+install -m 0644 CHANGELOG.txt README.rst LICENSE.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mv $PKG/usr/share/man/ $PKG/usr/man/
+gzip $PKG/usr/man/man1/$PRGNAM.1
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}