diff options
Diffstat (limited to 'extra/gv/PKGBUILD')
-rw-r--r-- | extra/gv/PKGBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/extra/gv/PKGBUILD b/extra/gv/PKGBUILD index ab381a8f3..ba1b7f98a 100644 --- a/extra/gv/PKGBUILD +++ b/extra/gv/PKGBUILD @@ -1,9 +1,9 @@ -# $Id: PKGBUILD 180131 2013-03-18 05:57:27Z eric $ +# $Id: PKGBUILD 216302 2014-07-03 01:49:15Z eric $ # Maintainer: Eric BĂ©langer <eric@archlinux.org> pkgname=gv pkgver=3.7.4 -pkgrel=1 +pkgrel=2 pkgdesc="A program to view PostScript and PDF documents" arch=('i686' 'x86_64') url="http://www.gnu.org/software/gv/" @@ -11,20 +11,24 @@ license=('GPL3') depends=('xaw3d' 'ghostscript' 'desktop-file-utils') options=('emptydirs') install=gv.install -source=(http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.sig} gv.desktop) +source=(http://ftp.gnu.org/gnu/gv/${pkgname}-${pkgver}.tar.gz{,.sig} gv.desktop) sha1sums=('d5bc11a37136dff69248f943a632544a4036b63f' '7d8b7edd60617b189ba39ca982252b0d59c0755d' 'b40ccad8a8d837791598075f543edce9aa1f4352') -build() { - cd "${srcdir}/${pkgname}-${pkgver}" +prepare() { + cd ${pkgname}-${pkgver} sed -i -e "s:-dGraphicsAlphaBits=2:\0 -dAlignToPixels=0:" src/Makefile.{am,in} +} + +build() { + cd ${pkgname}-${pkgver} ./configure --prefix=/usr make } package() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -D -m644 ../gv.desktop "${pkgdir}/usr/share/applications/gv.desktop" install -D -m644 src/gv_icon.xbm "${pkgdir}/usr/share/pixmaps/gv.xbm" |