[arch-commits] CVS update of extra/lib/devil (PKGBUILD)

Damir Perisa damir at archlinux.org
Sat Dec 1 15:03:17 EST 2007


    Date: Saturday, December 1, 2007 @ 15:03:17
  Author: damir
    Path: /home/cvs-extra/extra/lib/devil

Modified: PKGBUILD (1.6 -> 1.7)

upgpkg: devil 1.6.7-5


----------+
 PKGBUILD |   25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)


Index: extra/lib/devil/PKGBUILD
diff -u extra/lib/devil/PKGBUILD:1.6 extra/lib/devil/PKGBUILD:1.7
--- extra/lib/devil/PKGBUILD:1.6	Sun Jun  4 15:31:02 2006
+++ extra/lib/devil/PKGBUILD	Sat Dec  1 15:03:17 2007
@@ -1,24 +1,33 @@
-# $Id: PKGBUILD,v 1.6 2006/06/04 19:31:02 simo Exp $
+# $Id: PKGBUILD,v 1.7 2007/12/01 20:03:17 damir Exp $
 # Maintainer: damir <damir at archlinux.org>
 # Contributor: TheHoff <forums>
 
 pkgname=devil
 pkgver=1.6.7
-pkgrel=4
+pkgrel=5
 pkgdesc="Library for reading several different image formats"
 arch=(i686 x86_64)
 url="http://openil.sourceforge.net/"
-depends=('allegro>=4.2.0' 'sdl' 'libpng' 'zlib' 'libjpeg' 'libtiff' 'libmng')
+depends=('allegro>=4.2.2' 'sdl' 'libpng' 'zlib' 'libjpeg' 'libtiff' 'libmng')
 makedepends=('bash')
-source=(http://dl.sourceforge.net/sourceforge/openil/DevIL-$pkgver.tar.gz)
+options=('!libtool')
+license=('GPL')
+source=(http://puzzle.dl.sourceforge.net/sourceforge/openil/DevIL-$pkgver.tar.gz)
 md5sums=('0d0c3842196d85c4e24bedabcd84f626')
 
 build()
 {
    cd $startdir/src/DevIL-$pkgver
-        ./configure --prefix=/usr --with-gnu-ld
-        make || return 1
-        make prefix=$startdir/pkg/usr install
 
-   find $startdir/pkg -name '*.la' -exec rm {} \;
+   # configure and build
+   ./configure --prefix=/usr --with-gnu-ld
+   make || return 1
+   make prefix=$startdir/pkg/usr install   
+
+   # fix upstream bug http://sourceforge.net/tracker/index.php?func=detail&aid=1651292&group_id=4470&atid=104470
+   # archlinux bug ref: http://bugs.archlinux.org/task/7573
+   for header in `echo $startdir/pkg/usr/include/IL/*.h`; do
+     sed -i 's|(ILvoid)|(void)|g' $header
+   done
+
 }




More information about the arch-commits mailing list