PKGBUILDs/extra/lensfun/PKGBUILD

44 lines
1.3 KiB
Bash
Raw Normal View History

2015-01-11 02:35:06 +00:00
# $Id$
2013-02-11 21:14:48 +00:00
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2015-01-11 02:35:06 +00:00
# - disable sse, sse2
2013-02-11 21:14:48 +00:00
pkgname=lensfun
2016-02-16 13:24:46 +00:00
pkgver=0.3.2
2018-08-06 12:48:48 +00:00
pkgrel=7
2013-02-11 21:14:48 +00:00
pkgdesc="Database of photographic lenses and a library that allows advanced access to the database"
2018-08-06 12:48:48 +00:00
arch=(x86_64)
2017-11-11 14:27:18 +00:00
url="https://lensfun.sourceforge.net"
2013-02-11 21:14:48 +00:00
license=('LGPL3')
2017-11-11 14:27:18 +00:00
depends=('glib2')
2015-07-09 14:16:37 +00:00
makedepends=('python' 'libpng' 'doxygen' 'cmake')
2017-11-11 14:27:18 +00:00
optdepends=('python: for lensfun-update-data and lensfun-add-adapter')
source=("https://sourceforge.net/projects/lensfun/files/${pkgver}/${pkgname}-${pkgver}.tar.gz"
2017-01-06 13:30:29 +00:00
lensfun-fix-python-install-dir.patch)
2017-11-11 14:27:18 +00:00
sha256sums=('ae8bcad46614ca47f5bda65b00af4a257a9564a61725df9c74cb260da544d331'
'11e0f9ce2d5c5fef4373ce6adbb19dbcbcd8a10efa02447db9c92b03798d5654')
2017-01-06 13:30:29 +00:00
prepare() {
cd $pkgname-$pkgver
# Fix python module install path
patch -p1 -i ../lensfun-fix-python-install-dir.patch
}
2013-04-16 15:09:36 +00:00
build() {
2017-01-06 13:30:29 +00:00
cd ${pkgname}-${pkgver}
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
2017-11-11 14:27:18 +00:00
-DCMAKE_CXX_FLAGS="${CXXFLAGS} -fno-delete-null-pointer-checks" \
2015-01-11 02:35:06 +00:00
-DBUILD_FOR_SSE=off \
2017-01-07 02:20:22 +00:00
-DBUILD_FOR_SSE2=off
2013-02-11 21:14:48 +00:00
make all
}
package() {
2017-01-06 13:30:29 +00:00
cd ${pkgname}-${pkgver}
2015-01-11 02:35:06 +00:00
make DESTDIR="$pkgdir" install
2013-02-11 21:14:48 +00:00
}