diff options
author | root <root@rshg054.dnsready.net> | 2013-04-23 01:16:16 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-23 01:16:16 -0700 |
commit | d1d93fafb9ef98fdd0c9a5a486c179c03cbbfb33 (patch) | |
tree | da594e49962aa1b32a81dd8066423c4fd5fdcec6 /community/apvlv | |
parent | a5f6ca5d4e1aa12dfec53c3061df6e0198126fb4 (diff) |
Tue Apr 23 01:16:16 PDT 2013
Diffstat (limited to 'community/apvlv')
-rw-r--r-- | community/apvlv/PKGBUILD | 29 | ||||
-rw-r--r-- | community/apvlv/apvlv.desktop | 17 | ||||
-rw-r--r-- | community/apvlv/apvlv.install | 7 |
3 files changed, 43 insertions, 10 deletions
diff --git a/community/apvlv/PKGBUILD b/community/apvlv/PKGBUILD index a0bca90b3..065bf30fa 100644 --- a/community/apvlv/PKGBUILD +++ b/community/apvlv/PKGBUILD @@ -1,23 +1,28 @@ -# $Id: PKGBUILD 79519 2012-11-06 16:27:50Z bpiotrowski $ -# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> +# $Id: PKGBUILD 88809 2013-04-22 20:09:44Z jsteel $ +# Maintainer: Jonathan Steel <jsteel@aur.archlinux.org> +# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> # Contributor: 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.4.20121023 -pkgrel=1 -pkgdesc='A PDF Viewer which behaves like Vim' +pkgrel=3 +pkgdesc='A PDF Viewer, which behaves like Vim' arch=('i686' 'x86_64') url="http://naihe2010.github.com/apvlv/" license=('GPL') -depends=('gtk2' 'cairo' 'poppler-glib' 'djvulibre') +depends=('gtk2' 'cairo' 'poppler-glib' 'djvulibre' 'desktop-file-utils') makedepends=('cmake' 'libwebkit') -source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz) -md5sums=('f222fc4b09b15358eb4e7f996ba810d6') +install=$pkgname.install +source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz + $pkgname.desktop) +backup=(etc/apvlvrc) +md5sums=('f222fc4b09b15358eb4e7f996ba810d6' + '54478fecb54f36d1c44d8fdc233ddbac') build() { - cd $srcdir/$pkgname-$pkgver + cd "$srcdir"/$pkgname-$pkgver mkdir -p build cd build @@ -25,11 +30,15 @@ build() { cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DAPVLV_WITH_UMD=no .. + make } package() { - cd $srcdir/$pkgname-$pkgver/build + cd "$srcdir"/$pkgname-$pkgver/build + + make DESTDIR="$pkgdir"/ install - make DESTDIR=$pkgdir/ install + install -Dm644 "$srcdir"/$pkgname.desktop \ + "$pkgdir"/usr/share/applications/$pkgname.desktop } diff --git a/community/apvlv/apvlv.desktop b/community/apvlv/apvlv.desktop new file mode 100644 index 000000000..2f6ebd398 --- /dev/null +++ b/community/apvlv/apvlv.desktop @@ -0,0 +1,17 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=apvlv +Comment=A minimalistic document viewer +Comment[de]=Ein minimalistischer Dokumenten-Betrachter +Comment[fr]=Un visionneur de document minimaliste +Comment[ru]=Минималистичный просмотрщик документов +Comment[tr]=Minimalist bir belge görüntüleyicisi +Comment[es_CL]=Un visor de documentos minimalista +Comment[uk_UA]=Легкий переглядач документів +Comment[it]=Un visualizzatore di documenti minimalista +Comment[pl]=Minimalistyczna przeglądarka dokumentów +Exec=apvlv %f +Terminal=false +Categories=Office;Viewer; +MimeType=application/pdf;application/postscript;application/eps;application/x-eps;image/eps;image/x-eps;image/vnd.djvu; diff --git a/community/apvlv/apvlv.install b/community/apvlv/apvlv.install new file mode 100644 index 000000000..5384f9c85 --- /dev/null +++ b/community/apvlv/apvlv.install @@ -0,0 +1,7 @@ +post_install() { + update-desktop-database -q +} + +post_remove() { + post_install +} |