PKGBUILDs/extra/lensfun/PKGBUILD

40 lines
1.2 KiB
Bash
Raw Normal View History

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
2020-01-28 13:26:57 +00:00
pkgver=0.3.95
2020-05-16 15:06:17 +00:00
pkgrel=2
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)
2020-05-16 15:06:17 +00:00
url="https://lensfun.github.io/"
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')
2020-05-16 15:06:17 +00:00
source=("https://sourceforge.net/projects/lensfun/files/${pkgver}/${pkgname}-${pkgver}.tar.gz"
lensfun-segfault.patch)
sha256sums=('82c29c833c1604c48ca3ab8a35e86b7189b8effac1b1476095c0529afb702808'
'090804382c134b813693770383d21289a74f2b7e221127f2634abf3d24b003da')
prepare() {
cd $pkgname-$pkgver
patch -p1 -i ../lensfun-segfault.patch # Fix null pointer dereference # https://github.com/lensfun/lensfun/issues/1132
}
2013-04-16 15:09:36 +00:00
build() {
2020-01-28 13:26:57 +00:00
cd $pkgname-$pkgver
2017-01-06 13:30:29 +00:00
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
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() {
2020-01-28 13:26:57 +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
}