blob: ead9c762f2f11f80c17cb0bba64459368f163ca9 (
plain)
1 # Description: Database of photographic lenses and a library that allows advanced access to the database
2 # URL: https://lensfun.github.io/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: cmake glib
5
6 name=lensfun
7 version=0.3.3
8 release=1
9 source=(https://github.com/lensfun/lensfun/archive/v$version/$name-$version.tar.gz
10 lensfun-fix-python-install-dir.patch)
11
12 build() {
13 cmake -S $name-$version -B build -G Ninja \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D CMAKE_INSTALL_LIBDIR=lib \
16 -D CMAKE_BUILD_TYPE=Release \
17 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fno-delete-null-pointer-checks" \
18 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fno-delete-null-pointer-checks" \
19 -Wno-dev
20 cmake --build build
21 DESTDIR=$PKG cmake --install build
22 }
|