summaryrefslogtreecommitdiff
path: root/office/epdfview/epdfview.SlackBuild
diff options
context:
space:
mode:
authorAndrew Brouwers <abrouwers@gmail.com>2011-06-23 20:44:19 -0400
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 21:54:00 -0300
commit89eb2e521d6e5ca8afb6da1e3d09cba1df08ef36 (patch)
tree1783c369535fcc697fc15f39873aa5657a799688 /office/epdfview/epdfview.SlackBuild
parentbb3099b6ad2e085030d924fc7bafd7814fac2493 (diff)
downloadslackbuilds-89eb2e521d6e5ca8afb6da1e3d09cba1df08ef36.tar.gz
office/epdfview: Updated for version 0.1.8.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'office/epdfview/epdfview.SlackBuild')
-rw-r--r--office/epdfview/epdfview.SlackBuild38
1 files changed, 11 insertions, 27 deletions
diff --git a/office/epdfview/epdfview.SlackBuild b/office/epdfview/epdfview.SlackBuild
index af7fd41501..1367c499ea 100644
--- a/office/epdfview/epdfview.SlackBuild
+++ b/office/epdfview/epdfview.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for epdfview
-# Copyright 2008 Andrew Brouwers <abrouwers@gmail.com>
+# Copyright 2008-2011 Andrew Brouwers <abrouwers@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,8 @@
# Modified by the SlackBuilds.org project
PRGNAM=epdfview
-VERSION=0.1.7
-BUILD=${BUILD:-3}
+VERSION=0.1.8
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,23 +71,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Add patch to fix mouse-scrolling in 0.1.7
-patch -p0 < $CWD/mouse-scroll-fix.patch
-
-# Patch for poppler 0.15.0
-patch -p2 < $CWD/poppler-0150.patch
-
-# Patch for poppler 0.15.1
-patch -p2 < $CWD/poppler-0151.patch
-
-# Patch for poppler 0.16.2
-patch -p0 < $CWD/poppler-0162.patch
-
-# After all the poppler patches, we need to "autoreconf" to set the right variables,
-# but it fails if there is no "ChangeLog" file, so that is created first
-touch ChangeLog
-autoreconf -fi
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -101,18 +84,19 @@ make
make install-strip DESTDIR=$PKG
# Add some default icons
-install -d $PKG/usr/share/icons/hicolor/{24x24,32x32,48x48}/apps
-install -m644 data/icon_epdfview-24.png \
- $PKG/usr/share/icons/hicolor/24x24/apps/epdfview.png
-install -m644 data/icon_epdfview-32.png \
- $PKG/usr/share/icons/hicolor/32x32/apps/epdfview.png
-install -m644 data/icon_epdfview-48.png \
- $PKG/usr/share/icons/hicolor/48x48/apps/epdfview.png
+for icon in {24,32,48}; do
+ install -D -m644 data/icon_epdfview-${icon}.png \
+ $PKG/usr/share/icons/hicolor/${icon}x${icon}/apps/epdfview.png
+done
# Fix path to icons in .desktop file
sed -i 's#Icon=icon_epdfview-48#Icon=epdfview#' \
$PKG/usr/share/applications/$PRGNAM.desktop
+# manpage
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+
+# Add docs
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS COPYING INSTALL NEWS README \