# $Id: PKGBUILD 53893 2009-10-03 19:35:50Z eric $ # Maintainer: Tobias Powalowski pkgname=lensfun pkgver=0.2.3 pkgrel=2 pkgdesc="Database of photographic lenses and a library that allows advanced access to the database" arch=(i686 x86_64) url="http://lensfun.berlios.de/" license=('LGPL3') depends=('glibc' 'glib2') makedepends=('python' 'libpng') source=(http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.bz2 \ lensfun-0.2.3-glibc-2.10.patch lensfun-0.2.3-as-needed.patch) md5sums=('c5c04be4f53e3eef450ff4948d8f65b3' '593c956bb50d8009f66ff9496fa67fdf'\ '99f34d25b54aab60ba7346008749abd6') sha1sums=('4cb8fb4ce9c439ec7a3447d7fd35dfd5b73253ce' 'f0804a6445376f55d91d565d2a546b14b0990bf7'\ 'c16ddb0f39253462b8fa0882461ed7bd85d1c5fc') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -p1 < ../lensfun-0.2.3-glibc-2.10.patch || return 1 patch -p1 < ../lensfun-0.2.3-as-needed.patch || return 1 ./configure --prefix=/usr --libdir=/usr/lib || return 1 make all || return 1 make INSTALL_PREFIX="$pkgdir" install || return 1 }