aboutsummaryrefslogtreecommitdiff
path: root/office/zathura/zathura.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-05-11 20:39:25 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-17 23:45:50 +0700
commitef70875e1f61af6e82771c4e597e3f4b4ac85706 (patch)
treea24e4b64576a118376828d42d52688fa803febe0 /office/zathura/zathura.SlackBuild
parenta969a5388b33ab22311f443694e351cb3cfbbcea (diff)
office/zathura: Updated for version 0.3.3.
Diffstat (limited to 'office/zathura/zathura.SlackBuild')
-rw-r--r--office/zathura/zathura.SlackBuild27
1 files changed, 20 insertions, 7 deletions
diff --git a/office/zathura/zathura.SlackBuild b/office/zathura/zathura.SlackBuild
index 60fe4cfc83e2f..258efde4f1ac6 100644
--- a/office/zathura/zathura.SlackBuild
+++ b/office/zathura/zathura.SlackBuild
@@ -22,6 +22,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20150511 bkw:
+# - Version bump 0.3.3. The poppler plugin is still on 0.2.5.
+# - Make the poppler plugin's pdf.so a symlink. Will do the same
+# for zathura-pdf-mupdf, to allow switching between the two without
+# reinstalling packages. This wouldn't have worked with older versions,
+# due to changes in glib's g_file_test() between glib 1.x and 2.x.
+# - Upstream started using -fdiagnostics-color=always, which is only
+# supported in newer gcc versions. Get rid of it.
+
# Updated 20130617 by B. Watson <yalhcru@gmail.com>:
# - Updated for v0.2.3
@@ -37,7 +46,7 @@
# - fix homepage URL
PRGNAM=zathura
-VERSION=${VERSION:-0.2.7}
+VERSION=${VERSION:-0.3.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -74,8 +83,7 @@ set -eu
# plugins. This build includes the default PDF plugin, without which zathura
# is completely useless.
PLUGIN=$PRGNAM-pdf-poppler
-#PLUGINVER=${PLUGINVER:-$VERSION}
-PLUGINVER=${PLUGINVER-0.2.5}
+PLUGINVER=${PLUGINVER:-0.2.5}
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -119,6 +127,7 @@ find -L . \
patch -p1 < $CWD/dlopen_hack.diff
sed -i "s/-pedantic/$SLKCFLAGS/" config.mk
+sed -i '/-fdiagnostics-color/d' colors.mk
make LIBDIR=/usr/lib$LIBDIRSUFFIX
make install LIBDIR=/usr/lib$LIBDIRSUFFIX MANPREFIX=/usr/man DESTDIR=$PKG RSTTOMAN=""
@@ -132,7 +141,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cd $TMP
# Hack, lets #include <zathura/document.h> in pdf.h work with an uninstalled
-# copy of zathura by saying "-I.."
+# copy of zathura by saying "-I../zathura"
rm -f $PRGNAM
ln -s $PRGNAM-$VERSION $PRGNAM
@@ -148,14 +157,18 @@ find -L . \
# ZATHURA_VERSION_CHECK=0 is required because zathura.pc isn't installed.
+PLUGDIR=/usr/lib$LIBDIRSUFFIX/$PRGNAM
sed -i "s/-fPIC/$SLKCFLAGS/" config.mk
make install \
- ZATHURA_INC=-I.. \
- PLUGINDIR=/usr/lib$LIBDIRSUFFIX/$PRGNAM \
+ VERBOSE=1 \
+ ZATHURA_INC=-I../zathura \
+ PLUGINDIR=$PLUGDIR/pdf-poppler \
DESTDIR=$PKG \
ZATHURA_GTK_VERSION=3 \
ZATHURA_VERSION_CHECK=0
-strip $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/*.so
+strip $PKG/$PLUGDIR/pdf-poppler/*.so
+
+ln -s pdf-poppler/pdf.so $PKG/$PLUGDIR/pdf.so
# icon converted from https://pwmt.org/img/fav.ico
mkdir -p $PKG/usr/share/pixmaps