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

Eric Bélanger eric at archlinux.org
Sun Sep 18 06:55:48 UTC 2011


    Date: Sunday, September 18, 2011 @ 02:55:48
  Author: eric
Revision: 138171

upgpkg: gimp-gap 2.6.0-3

Clean up PKGBUILD

Modified:
  gimp-gap/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-09-18 03:48:48 UTC (rev 138170)
+++ PKGBUILD	2011-09-18 06:55:48 UTC (rev 138171)
@@ -4,12 +4,12 @@
 
 pkgname=gimp-gap
 pkgver=2.6.0
-pkgrel=2
+pkgrel=3
 pkgdesc="A Plug-In collection to edit and create animations for the Gimp"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
 license=('GPL')
 url="http://www.gimp.org/downloads/"
-depends=('gimp>=2.6.0' 'xvidcore' 'bash' 'libjpeg')
+depends=('gimp' 'xvidcore' 'bash' 'libjpeg')
 makedepends=('intltool')
 options=('!makeflags')
 source=(ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.6/gap/$pkgname-$pkgver.tar.bz2)
@@ -17,13 +17,12 @@
 
 build() {
   cd "$srcdir/$pkgname-$pkgver"
-    #Arch64 fix
-  if [ "$CARCH" = "x86_64" ]; then 
-    ./configure --prefix=/usr CFLAGS="$CFLAGS -fPIC" || return 1
-  else
-    ./configure --prefix=/usr || return 1
-  fi
+  [ "$CARCH" = "x86_64" ] && CFLAGS+="-fPIC"
+  ./configure --prefix=/usr 
+  make
+}
 
-  make || return 1
-  make DESTDIR="$pkgdir" install || return 1
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir" install
 }




More information about the arch-commits mailing list