# $Id: PKGBUILD 9007 2008-08-17 02:42:41Z eric $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=jasper
pkgver=1.900.1
pkgrel=1
pkgdesc="a software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard"
arch=(i686 x86_64)
url="http://www.ece.uvic.ca/~mdadams/jasper/"
depends=('libjpeg' 'glut' 'libxi' 'libxmu' 'mesa')
makedepends=('unzip')
options=('!libtool')
source=(http://www.ece.uvic.ca/~mdadams/$pkgname/software/$pkgname-$pkgver.zip)
md5sums=('a342b2b4495b3e1394e161eb5d85d754')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --enable-shared
  make || return 1
  make DESTDIR=$startdir/pkg install || return 1
}