[arch-commits] Commit in gv/trunk (PKGBUILD)

Eric Bélanger eric at nymeria.archlinux.org
Thu Jul 3 01:31:53 UTC 2014


    Date: Thursday, July 3, 2014 @ 03:31:53
  Author: eric
Revision: 216300

upgpkg: gv 3.7.4-2

Rebuild to add mtree file

Modified:
  gv/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-07-03 01:23:31 UTC (rev 216299)
+++ PKGBUILD	2014-07-03 01:31:53 UTC (rev 216300)
@@ -3,7 +3,7 @@
 
 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 @@
 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')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  sed -i -e "s:-dGraphicsAlphaBits=2:\0 -dAlignToPixels=0:" src/Makefile.{am,in}
+}
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  sed -i -e "s:-dGraphicsAlphaBits=2:\0 -dAlignToPixels=0:" src/Makefile.{am,in}
+  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"




More information about the arch-commits mailing list