PKGBUILDs/extra/gv/PKGBUILD
2009-10-09 21:23:22 -05:00

31 lines
1.2 KiB
Bash

# $Id: PKGBUILD 32477 2009-03-31 21:58:21Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=gv
pkgver=3.6.7
pkgrel=1
pkgdesc="A program to view PostScript and PDF documents"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/gv/"
license=('GPL')
depends=('xaw3d>=1.5E' 'ghostscript')
install=gv.install
source=(http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz gv.desktop gv.png)
md5sums=('fdad147dd0440446cf9daaffca83343f' 'cf04652952f2d0903bc7578b4826f50c'\
'ab0e3879dbe39e59ad1c923020c28a86')
sha1sums=('41a3a32f6d4dc1548237dbae831d2e557fbb197b'
'c8230fe08ee6d22525678a97832f44941237d174'
'35b9168e526527001b1b5b8ee34a5b69d9369590')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
sed -i -e "s:-dGraphicsAlphaBits=2:\0 -dAlignToPixels=0:" src/Makefile.{am,in} || return 1
./configure --prefix=/usr || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -D -m644 ../gv.desktop ${pkgdir}/usr/share/applications/gv.desktop || return 1
install -D -m644 ../gv.png ${pkgdir}/usr/share/pixmaps/gv.png || return 1
rm ${pkgdir}/usr/share/info/dir
gzip ${pkgdir}/usr/share/info/*
}