# # Chakra Packages for Chakra, part of chakralinux.org # # maintainer AlmAck pkgname=lensfun pkgver=0.3.2 pkgrel=4 pkgdesc="Database of photographic lenses and a library that allows advanced access to the database" arch=('x86_64') url="http://sourceforge.net/projects/lensfun" license=('LGPL3') depends=('glibc' 'glib2') makedepends=('python2' 'libpng' 'cmake') source=("https://sourceforge.net/projects/lensfun/files/${pkgver}/${pkgname}-${pkgver}.tar.gz" lensfun-fix-python-install-dir.patch) sha1sums=('1d978b15aa7304d66a4931fa37ca9f8f89396c16' '7bf2b17d0fb85800857eaf990541ea9eccca2f77') prepare() { cd $pkgname-$pkgver # Fix python module install path patch -p1 -i ../lensfun-fix-python-install-dir.patch } build() { cd $pkgname-$pkgver cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } package() { cd $pkgname-$pkgver make DESTDIR="${pkgdir}" install }