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
|
2023-07-12 23:28:35 +00:00
|
|
|
pkgver=0.3.4
|
2024-04-27 15:34:41 +00:00
|
|
|
pkgrel=4
|
2022-02-28 20:52:58 +00:00
|
|
|
epoch=1
|
|
|
|
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)
|
2022-02-28 20:52:58 +00:00
|
|
|
url='https://lensfun.github.io/'
|
|
|
|
license=(LGPL3)
|
|
|
|
depends=(glib2)
|
2023-07-13 23:42:22 +00:00
|
|
|
makedepends=(python-setuptools python-build python-installer python-wheel libpng doxygen cmake)
|
2017-11-11 14:27:18 +00:00
|
|
|
optdepends=('python: for lensfun-update-data and lensfun-add-adapter')
|
2023-07-29 11:38:29 +00:00
|
|
|
source=(https://github.com/lensfun/lensfun/archive/v$pkgver/$pkgname-$pkgver.tar.gz
|
|
|
|
fix-python-module-install.patch)
|
|
|
|
sha256sums=('dafb39c08ef24a0e2abd00d05d7341b1bf1f0c38bfcd5a4c69cf5f0ecb6db112'
|
|
|
|
'e29af58568f6d68f728bc68dba08587e7a7678f6547ab4259f59f20f0efac13a')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
# Fix Python module installation
|
|
|
|
patch -d $pkgname-$pkgver -p1 < fix-python-module-install.patch
|
|
|
|
}
|
2013-04-16 15:09:36 +00:00
|
|
|
|
|
|
|
build() {
|
2022-02-28 20:52:58 +00:00
|
|
|
cmake -B build -S $pkgname-$pkgver \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2023-07-29 11:38:29 +00:00
|
|
|
-DCMAKE_BUILD_TYPE=None \
|
2022-02-28 20:52:58 +00:00
|
|
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS -fno-delete-null-pointer-checks" \
|
2023-07-29 11:38:29 +00:00
|
|
|
-DINSTALL_PYTHON_MODULE=OFF \
|
2022-02-28 20:52:58 +00:00
|
|
|
-DBUILD_FOR_SSE=off \
|
|
|
|
-DBUILD_FOR_SSE2=off
|
2023-07-13 23:42:22 +00:00
|
|
|
cmake --build build
|
|
|
|
cd build/apps
|
|
|
|
python -m build --wheel --no-isolation
|
2013-02-11 21:14:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-02-28 20:52:58 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2023-07-13 23:42:22 +00:00
|
|
|
cd build/apps
|
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
2013-02-11 21:14:48 +00:00
|
|
|
}
|