summaryrefslogtreecommitdiff
path: root/community/apvlv
diff options
context:
space:
mode:
Diffstat (limited to 'community/apvlv')
-rw-r--r--community/apvlv/PKGBUILD38
-rw-r--r--community/apvlv/apvlv-poppler015.patch12
2 files changed, 50 insertions, 0 deletions
diff --git a/community/apvlv/PKGBUILD b/community/apvlv/PKGBUILD
new file mode 100644
index 000000000..003f6f307
--- /dev/null
+++ b/community/apvlv/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 41378 2011-03-05 14:39:13Z lcarlier $
+# Maintainer: Brad Fanella <bradfanella@archlinux.us>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+# Contributor: tocer.deng <tocer.deng@gmail.com>
+
+pkgname=apvlv
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="A PDF Viewer which behaves like Vim"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/apvlv/"
+license=('GPL')
+depends=('poppler-glib' 'libdjvu')
+makedepends=('cmake')
+source=(http://apvlv.googlecode.com/files/$pkgname-${pkgver}-Source.tar.gz
+ apvlv-poppler015.patch)
+md5sums=('221b25fd34ebf398047424459d8e5131'
+ '809aea91e13032663d6533892757891a')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver-Source
+
+ patch -Np0 -i $srcdir/apvlv-poppler015.patch
+
+ mkdir -p build
+ cd build
+
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DAPVLV_WITH_UMD=no ..
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver-Source/build
+
+ make DESTDIR=$pkgdir install
+}
diff --git a/community/apvlv/apvlv-poppler015.patch b/community/apvlv/apvlv-poppler015.patch
new file mode 100644
index 000000000..96cb099a6
--- /dev/null
+++ b/community/apvlv/apvlv-poppler015.patch
@@ -0,0 +1,12 @@
+diff -aur src/ApvlvFile.cpp.orig src/ApvlvFile.cpp
+--- src/ApvlvFile.cpp.orig 2010-09-14 07:28:44.000000000 +0100
++++ src/ApvlvFile.cpp 2010-10-29 22:29:21.128949529 +0100
+@@ -275,7 +275,7 @@
+ {
+ PopplerRectangle rect = { x1, y1, x2, y2 };
+ PopplerPage *page = poppler_document_get_page (mDoc, pn);
+- *out = poppler_page_get_text (page, POPPLER_SELECTION_WORD, &rect);
++ *out = poppler_page_get_selected_text (page, POPPLER_SELECTION_WORD, &rect);
+ if (*out != NULL)
+ {
+ return true;