diff options
author | root <root@rshg054.dnsready.net> | 2011-08-02 04:35:55 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-02 04:35:55 +0000 |
commit | bf35116f9d203dcafce808a6c7b3dd5a0db8afbc (patch) | |
tree | f9551a1d3c67d2113cc5fc5c3f8816bcbaad0540 /community/apvlv | |
parent | 1173ff2dba7d0fd3c45f170a5e353a76b7a5da2f (diff) |
Tue Aug 2 04:35:55 UTC 2011
Diffstat (limited to 'community/apvlv')
-rw-r--r-- | community/apvlv/PKGBUILD | 23 | ||||
-rw-r--r-- | community/apvlv/apvlv-poppler015.patch | 24 |
2 files changed, 22 insertions, 25 deletions
diff --git a/community/apvlv/PKGBUILD b/community/apvlv/PKGBUILD index 003f6f307..041f5a102 100644 --- a/community/apvlv/PKGBUILD +++ b/community/apvlv/PKGBUILD @@ -1,27 +1,25 @@ -# $Id: PKGBUILD 41378 2011-03-05 14:39:13Z lcarlier $ +# $Id: PKGBUILD 52879 2011-07-29 15:22:56Z shusmann $ # 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 +pkgver=0.1.2 pkgrel=1 pkgdesc="A PDF Viewer which behaves like Vim" arch=('i686' 'x86_64') -url="http://code.google.com/p/apvlv/" +url="http://naihe2010.github.com/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') +depends=('poppler-glib' 'djvulibre') +source=(https://github.com/downloads/naihe2010/$pkgname/$pkgname-${pkgver}-Source.tar.gz apvlv-poppler015.patch) +md5sums=('381d83aa9c253fac5e0be165fca39222' + '308b17a563ed470ea47d408f324ab745') + +makedepends=('cmake') build() { cd $srcdir/$pkgname-$pkgver-Source - - patch -Np0 -i $srcdir/apvlv-poppler015.patch - + patch -Np1 -i $srcdir/apvlv-poppler015.patch mkdir -p build cd build @@ -30,7 +28,6 @@ build() { -DAPVLV_WITH_UMD=no .. make } - package() { cd $srcdir/$pkgname-$pkgver-Source/build diff --git a/community/apvlv/apvlv-poppler015.patch b/community/apvlv/apvlv-poppler015.patch index 96cb099a6..0a261b1db 100644 --- a/community/apvlv/apvlv-poppler015.patch +++ b/community/apvlv/apvlv-poppler015.patch @@ -1,12 +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; +diff -Naur apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp apvlv-0.1.2-Source.new//src/ApvlvFile.cpp +--- apvlv-0.1.2-Source.orig//src/ApvlvFile.cpp 2011-07-29 17:19:13.000000000 +0200 ++++ apvlv-0.1.2-Source.new//src/ApvlvFile.cpp 2011-07-29 17:22:22.000000000 +0200 +@@ -304,7 +304,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; |