# $Id: PKGBUILD 60209 2011-12-07 16:29:05Z svenstaro $ # Maintainer: Laurent Carlier # Contributor: damir # Contributor: TheHoff pkgname=devil pkgver=1.7.8 pkgrel=9 pkgdesc="Library for reading several different image formats" arch=('i686' 'x86_64' 'mips64el') url="http://openil.sourceforge.net/" depends=('libpng' 'libmng' 'jasper' 'lcms' 'openexr') install=devil.install options=('!libtool' '!docs' '!emptydirs') license=('GPL') source=(http://downloads.sourceforge.net/openil/DevIL-$pkgver.tar.gz libpng14.patch) md5sums=('7918f215524589435e5ec2e8736d5e1d' '0f839ccefd43b0ee8b4b3f99806147fc') build() { cd ${srcdir}/devil-$pkgver patch -Np1 -i ${srcdir}/libpng14.patch ./configure --prefix=/usr --enable-ILU make } package() { cd ${srcdir}/devil-$pkgver make prefix=${pkgdir}/usr install }