summaryrefslogtreecommitdiff
path: root/lensfun/Pkgfile
blob: 444acb67e20b74df7d1744af68580655f7b09c14 (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.2
    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   patch -p1 -d $name-$version -i $SRC/lensfun-fix-python-install-dir.patch
   14   cmake -S $name-$version -B build -G Ninja \
   15     -D CMAKE_INSTALL_PREFIX=/usr \
   16     -D CMAKE_INSTALL_LIBDIR=lib \
   17     -D CMAKE_BUILD_TYPE=Release \
   18     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fno-delete-null-pointer-checks -DNDEBUG" \
   19     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -fno-delete-null-pointer-checks -DNDEBUG" \
   20     -Wno-dev
   21   cmake --build build
   22   DESTDIR=$PKG cmake --install build
   23 }

Generated by cgit