[arch-commits] Commit in apvlv/trunk (PKGBUILD apvlv.desktop apvlv.install)
Jonathan Steel
jsteel at nymeria.archlinux.org
Mon Apr 22 19:12:47 UTC 2013
Date: Monday, April 22, 2013 @ 21:12:47
Author: jsteel
Revision: 88805
desktop and install file
Added:
apvlv/trunk/apvlv.desktop
apvlv/trunk/apvlv.install
Modified:
apvlv/trunk/PKGBUILD
---------------+
PKGBUILD | 26 +++++++++++++++++---------
apvlv.desktop | 17 +++++++++++++++++
apvlv.install | 7 +++++++
3 files changed, 41 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-04-22 18:07:32 UTC (rev 88804)
+++ PKGBUILD 2013-04-22 19:12:47 UTC (rev 88805)
@@ -1,23 +1,27 @@
# $Id$
-# Maintainer: Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org>
+# Contributor: Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
# Contributor: Brad Fanella <bradfanella at archlinux.us>
# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
# Contributor: tocer.deng <tocer.deng at gmail.com>
pkgname=apvlv
pkgver=0.1.4.20121023
-pkgrel=1
-pkgdesc='A PDF Viewer which behaves like Vim'
+pkgrel=2
+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)
+md5sums=('f222fc4b09b15358eb4e7f996ba810d6'
+ '54478fecb54f36d1c44d8fdc233ddbac')
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd "$srcdir"/$pkgname-$pkgver
mkdir -p build
cd build
@@ -25,11 +29,15 @@
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
}
Added: apvlv.desktop
===================================================================
--- apvlv.desktop (rev 0)
+++ apvlv.desktop 2013-04-22 19:12:47 UTC (rev 88805)
@@ -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;
Added: apvlv.install
===================================================================
--- apvlv.install (rev 0)
+++ apvlv.install 2013-04-22 19:12:47 UTC (rev 88805)
@@ -0,0 +1,7 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list