From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/zathura/PKGBUILD | 31 ++++++++++++++++++++++++++++ community/zathura/zathura-poppler-0.16.patch | 13 ++++++++++++ community/zathura/zathura.desktop | 8 +++++++ community/zathura/zathura.install | 13 ++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 community/zathura/PKGBUILD create mode 100644 community/zathura/zathura-poppler-0.16.patch create mode 100644 community/zathura/zathura.desktop create mode 100644 community/zathura/zathura.install (limited to 'community/zathura') diff --git a/community/zathura/PKGBUILD b/community/zathura/PKGBUILD new file mode 100644 index 000000000..f7b59df10 --- /dev/null +++ b/community/zathura/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 43267 2011-03-24 12:25:34Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: ML + +pkgname=zathura +pkgver=0.0.8.3 +pkgrel=1 +pkgdesc="a PDF viewer" +arch=('i686' 'x86_64') +url="http://zathura.pwmt.org" +license=('custom') +depends=('poppler-glib' 'gtk2' 'cairo') +install=zathura.install +DLAGENTS=('http::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u' + 'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u') +source=(https://pwmt.org/download/zathura-$pkgver.tar.gz + zathura.desktop + zathura-poppler-0.16.patch) +md5sums=('95b1d02593e7055f08da3825ad54954d' + '53da4968621934e7d9812380a3a37ee1' + 'fa9f43b1a785743b4f9b840d1f234bae') + +build() { + cd $srcdir/zathura-$pkgver +# patch -Np1 -i $srcdir/zathura-poppler-0.16.patch + make + install -D -m775 zathura "$pkgdir/usr/bin/zathura" + install -D -m664 zathura.1 "$pkgdir/usr/share/man/man1/zathura.1" + install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -D -m664 $srcdir/zathura.desktop "$pkgdir/usr/share/applications/zathura.desktop" +} diff --git a/community/zathura/zathura-poppler-0.16.patch b/community/zathura/zathura-poppler-0.16.patch new file mode 100644 index 000000000..79c22bb28 --- /dev/null +++ b/community/zathura/zathura-poppler-0.16.patch @@ -0,0 +1,13 @@ +patch that fixes poppler-0.16 compatibility + +http://pkgs.fedoraproject.org/gitweb/?p=zathura.git;a=blob;f=zathura-0.0.8.1-poppler-0.15-fix.patch;h=1e586b3cca2be43c7f70c7c2532ea4b2371892e8;hb=master +--- zathura-0.0.8.1/zathura.c.poppler15 ++++ zathura-0.0.8.1/zathura.c +@@ -4300,7 +4300,7 @@ cb_view_button_release(GtkWidget* widget + + /* get selected text */ + g_static_mutex_lock(&(Zathura.Lock.pdflib_lock)); +- char* selected_text = poppler_page_get_text( ++ char* selected_text = poppler_page_get_selected_text( + Zathura.PDF.pages[Zathura.PDF.page_number]->page,SELECTION_STYLE, + &rectangle); diff --git a/community/zathura/zathura.desktop b/community/zathura/zathura.desktop new file mode 100644 index 000000000..9dea21e75 --- /dev/null +++ b/community/zathura/zathura.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Zathura +Comment=A minimalistic PDF viewer +Exec=zathura +Terminal=false +Type=Application +Categories=Office; +MimeType=application/pdf; diff --git a/community/zathura/zathura.install b/community/zathura/zathura.install new file mode 100644 index 000000000..f450cf9b8 --- /dev/null +++ b/community/zathura/zathura.install @@ -0,0 +1,13 @@ +post_install() { + which gtk-update-icon-cache >/dev/null && \ + [ -d usr/share/icons/hicolor ] && \ + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf