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 --- extra/gv/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ extra/gv/aplinedel.patch | 11 +++++++++++ extra/gv/gv.desktop | 11 +++++++++++ extra/gv/gv.install | 16 ++++++++++++++++ extra/gv/gv.png | Bin 0 -> 483 bytes 5 files changed, 70 insertions(+) create mode 100644 extra/gv/PKGBUILD create mode 100644 extra/gv/aplinedel.patch create mode 100644 extra/gv/gv.desktop create mode 100644 extra/gv/gv.install create mode 100644 extra/gv/gv.png (limited to 'extra/gv') diff --git a/extra/gv/PKGBUILD b/extra/gv/PKGBUILD new file mode 100644 index 000000000..edf76955e --- /dev/null +++ b/extra/gv/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 103001 2010-12-13 22:11:14Z eric $ +# Maintainer: Eric Belanger + +pkgname=gv +pkgver=3.7.1 +pkgrel=2 +pkgdesc="A program to view PostScript and PDF documents" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/gv/" +license=('GPL') +depends=('xaw3d' 'ghostscript') +install=gv.install +source=(http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz gv.desktop gv.png aplinedel.patch) +md5sums=('bf4823d00d8e431f97dbcb7dd87c46ac' 'cf04652952f2d0903bc7578b4826f50c'\ + 'ab0e3879dbe39e59ad1c923020c28a86' '8a57a5d50a0d68dc1d98108e9665bd2d') +sha1sums=('05fcf76f29de77e67379bae7e9ca1c8a26bbf6e1' 'c8230fe08ee6d22525678a97832f44941237d174'\ + '35b9168e526527001b1b5b8ee34a5b69d9369590' 'e6358e74ec2641730b44443a49df36322df2bdd8') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -p1 < ../aplinedel.patch + sed -i -e "s:-dGraphicsAlphaBits=2:\0 -dAlignToPixels=0:" src/Makefile.{am,in} + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -D -m644 ../gv.desktop "${pkgdir}/usr/share/applications/gv.desktop" + install -D -m644 ../gv.png "${pkgdir}/usr/share/pixmaps/gv.png" +} diff --git a/extra/gv/aplinedel.patch b/extra/gv/aplinedel.patch new file mode 100644 index 000000000..3026e426c --- /dev/null +++ b/extra/gv/aplinedel.patch @@ -0,0 +1,11 @@ +diff -ur a/src/gv_misc_res.dat b/src/gv_misc_res.dat +--- a/src/gv_misc_res.dat 2010-10-15 09:21:36.000000000 +0200 ++++ b/src/gv_misc_res.dat 2010-10-15 09:21:48.000000000 +0200 +@@ -476,7 +476,6 @@ + BackSpace: GV_Page(up,left-bottom,!page-1,bottom-rightedge)\n\ + Insert: GV_Page(page-5) \n\ + Delete: GV_Page(page+5) \n\ +- apLineDel: GV_Page(page+5) \n\ + Home: GV_Page(page=0) \n\ + End: GV_Page(page=99999) \n\ + Prior: GV_Page(page-1) \n\ diff --git a/extra/gv/gv.desktop b/extra/gv/gv.desktop new file mode 100644 index 000000000..6332ee859 --- /dev/null +++ b/extra/gv/gv.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=GV +MimeType=application/pdf;application/postscript;image/x-eps;application/illustrator +GenericName=Postscript Viewer +Exec=gv +Icon=gv +Categories=Application;Graphics;Viewer;Office; +Type=Application +Terminal=false +StartupNotify=true diff --git a/extra/gv/gv.install b/extra/gv/gv.install new file mode 100644 index 000000000..dd0e8c9c6 --- /dev/null +++ b/extra/gv/gv.install @@ -0,0 +1,16 @@ +infodir=/usr/share/info +file=gv.info.gz + +post_install() { + [ -x usr/bin/install-info ] || return 0 + install-info $infodir/$file $infodir/dir 2> /dev/null +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + install-info --delete $infodir/$file $infodir/dir 2> /dev/null +} diff --git a/extra/gv/gv.png b/extra/gv/gv.png new file mode 100644 index 000000000..59e832a48 Binary files /dev/null and b/extra/gv/gv.png differ -- cgit v1.2.3-54-g00ecf