opt/exiv2/Pkgfile

23 lines
620 B
Plaintext
Raw Normal View History

2021-01-29 01:06:55 +01:00
# Description: Exif and Iptc metadata manipulation library and tools.
2023-05-28 10:25:16 +02:00
# URL: https://exiv2.org/
2021-01-29 01:06:55 +01:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: brotli inih
2019-07-19 14:55:30 +02:00
name=exiv2
2023-11-07 06:34:08 +01:00
version=0.28.1
2019-07-19 14:55:30 +02:00
release=1
2019-08-30 16:21:05 +02:00
source=(https://github.com/Exiv2/exiv2/archive/v$version/$name-$version.tar.gz)
2019-07-19 14:55:30 +02:00
build() {
2021-01-29 01:06:55 +01:00
export CXXFLAGS+=" -Wno-deprecated-declarations"
2023-01-21 10:36:13 +01:00
cmake -S $name-$version -B build -G Ninja $PKGMK_EXIV2 \
2021-01-29 01:06:55 +01:00
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib
2019-07-19 14:55:30 +02:00
2021-01-29 01:06:55 +01:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-07-19 14:55:30 +02:00
}