2013-02-11 21:14:48 +00:00
|
|
|
# $Id: PKGBUILD 162692 2012-06-28 10:33:24Z tpowa $
|
|
|
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable vectorization, ensure our cflags get used to build
|
|
|
|
|
|
|
|
pkgname=lensfun
|
2013-12-06 16:54:54 +00:00
|
|
|
pkgver=0.2.8
|
2013-02-11 21:14:48 +00:00
|
|
|
pkgrel=1
|
|
|
|
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=('python2' 'libpng' 'doxygen')
|
2013-12-06 16:54:54 +00:00
|
|
|
source=("http://download.berlios.de/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
|
|
|
|
lensfun-0.2.8-make-4.0.patch)
|
2013-02-11 21:14:48 +00:00
|
|
|
|
2013-04-16 15:09:36 +00:00
|
|
|
prepare() {
|
2013-02-11 21:14:48 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' configure
|
2013-12-06 16:54:54 +00:00
|
|
|
# fix configure script for make 4.0
|
|
|
|
patch -Np0 -i "${srcdir}/lensfun-0.2.8-make-4.0.patch"
|
2013-04-16 15:09:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure \
|
2013-02-11 21:14:48 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--vectorization='' --cflags="${CFLAGS}" --cxxflags="${CXXFLAGS}"
|
|
|
|
make all
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make INSTALL_PREFIX="$pkgdir" install
|
|
|
|
}
|
2013-12-06 16:54:54 +00:00
|
|
|
md5sums=('db2988505e7432c6b331aa597789c639'
|
|
|
|
'9464d933a5e4ccefed7fc38656a9ec18')
|