Commit 79a59d43 authored by Sebastian Ramacher's avatar Sebastian Ramacher

No longer build poppler plugin in zathura

parent 42578859
......@@ -8,7 +8,6 @@ Build-Depends:
libgirara-dev (>= 0.2.5),
libgtk-3-dev,
libcairo2-dev (>= 1.8.8),
libpoppler-glib-dev (>= 0.12.3),
libsqlite3-dev,
libmagic-dev,
libsynctex-dev,
......@@ -23,19 +22,18 @@ Homepage: http://pwmt.org/projects/zathura
Package: zathura
Architecture: any
Provides:
pdf-viewer,
${zathura:Provides}
Depends:
zathura-pdf-poppler,
${shlibs:Depends},
${misc:Depends}
Suggests:
www-browser,
poppler-data,
zathura-ps,
zathura-djvu,
zathura-cb
Description: PDF viewer with a minimalistic interface
zathura is a PDF viewer with a minimalistic and space saving interface.
Description: document viewer with a minimalistic interface
zathura is a document viewer with a minimalistic and space saving interface.
It offers a vim-like experience and has a focus on keyboard interaction.
The key bindings, commands and most other settings can be customized.
.
......@@ -58,7 +56,7 @@ Depends:
libgtk-3-dev,
libcairo2-dev (>= 1.8.8)
Description: development files for zathura plugins
zathura is a PDF viewer with a minimalistic and space saving interface. It
can be extended to support other file formats via a plugin system.
zathura is a document viewer with a minimalistic and space saving interface.
It can be extended to support other file formats via a plugin system.
.
This package contains the files to develop plugins.
......@@ -8,9 +8,8 @@ Copyright: 2009-2015 Moritz Lipp <mlq@pwmt.org>
2010-2015 Sebastian Ramacher <sebastian+dev@ramacher.at>
License: Zlib
Files: pdf-poppler-*/*
Copyright: 2011-2013 Moritz Lipp <mlq@pwmt.org>
2011-2013 Sebastian Ramacher <sebastian+dev@ramacher.at>
Files: debian/*
Copyright: 2010-2015 Sebastian Ramacher <sramacher@debian.org>
License: Zlib
License: Zlib
......
......@@ -2,74 +2,27 @@
# -*- makefile -*-
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
# Use all hardening flags for zathura
dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS="hardening=+all" dpkg-buildflags
export DEB_BUILD_MAINT_OPTIONS="hardening=+all"
# do not strip
export SFLAGS=
# build with verbose output
export VERBOSE=1
# build flags for the plugin
export ZATHURA_INC=-I$(CURDIR)/zathura-headers/usr/include
export PLUGINDIR=/usr/lib/zathura
export PKG_CONFIG_PATH=$(CURDIR)/zathura-headers/usr/lib/pkgconfig
# disable check's timeout functionality
export CK_DEFAULT_TIMEOUT=0
# disable colors
export COLOR=0
PDFVER=0.2.5
PDFVERC=$(subst .,-,$(PDFVER))
DEB_DEBDIR=$(dir $(firstword $(MAKEFILE_LIST)))
DEB_UPSTREAM_VER=$(shell dpkg-parsechangelog -l$(DEB_DEBDIR)/changelog \
| sed -ne 's/^Version: \(.*\)-[^-]*/\1/p')
get-orig-source:
uscan --no-conf \
--force-download \
--rename \
--watchfile $(DEB_DEBDIR)/watch \
--package zathura \
--upstream-version $(DEB_UPSTREAM_VER) \
--destdir=.
TMPD=`mktemp -d` && \
uscan --no-conf \
--force-download \
--no-symlink \
--watchfile $(DEB_DEBDIR)/zathura-pdf-poppler.watch \
--package zathura-pdf-poppler \
--upstream-version $(PDFVER) \
--destdir=$$TMPD && \
mv $$TMPD/zathura-pdf-poppler-$(PDFVER).tar.gz \
zathura_$(DEB_UPSTREAM_VER).orig-pdf-poppler-$(PDFVERC).tar.gz && \
rmdir $$TMPD
%:
dh $@ --parallel
override_dh_auto_clean:
$(MAKE) clean
$(MAKE) -C pdf-poppler-$(PDFVERC) clean
# ... and remove the headers
$(MAKE) uninstall-headers DESTDIR=$(CURDIR)/zathura-headers
override_dh_auto_build:
$(shell $(dpkg_buildflags) --export=configure) $(MAKE)
dh_auto_build
# append gtk3 to ABI version for the GTK+2 -> GTK+3 switch
# (can be dropped once zathura bumps its ABI the next time)
$(MAKE) zathura.pc
sed -i 's/^abiversion=.*$$/&gtk3/' zathura.pc
# we need the headers to build the plugin
$(MAKE) install-headers DESTDIR=$(CURDIR)/zathura-headers
$(MAKE) -C pdf-poppler-$(PDFVERC)
override_dh_auto_install:
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
$(MAKE) -C pdf-poppler-$(PDFVERC) install \
DESTDIR=$(CURDIR)/debian/tmp
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
......
usr/bin/zathura
usr/lib/zathura/pdf.so
usr/share/man
usr/share/applications/zathura*.desktop
usr/share/locale
usr/share/dbus-1/interfaces
usr/share/appdata
usr/share/applications
usr/share/dbus-1/interfaces
usr/share/locale
usr/share/man
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment