blob: bfe01723319092e08e9e47a794c57f0554d0a8c3 (
plain)
1 # Description: Exif and Iptc metadata manipulation library and tools.
2 # URL: https://www.exiv2.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: cmake
5
6 name=exiv2
7 version=0.27.5
8 release=1
9 source=(https://github.com/Exiv2/exiv2/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 prt-get isinst ninja && PKGMK_EXIV2+=' -G Ninja'
13
14 export CXXFLAGS+=" -Wno-deprecated-declarations"
15
16 cmake -S $name-$version -B build $PKGMK_EXIV2 \
17 -D CMAKE_BUILD_TYPE=Release \
18 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
19 -D CMAKE_INSTALL_PREFIX=/usr \
20 -D CMAKE_INSTALL_LIBDIR=lib
21
22 cmake --build build
23 DESTDIR=$PKG cmake --install build
24 }
|