opt/exiv2/Pkgfile

24 lines
594 B
Plaintext
Raw Normal View History

2019-07-19 14:55:30 +02:00
# Description: Exif and Iptc metadata manipulation library and tools.
# URL: https://www.exiv2.org/
2019-07-19 14:55:30 +02:00
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
2019-08-30 16:21:05 +02:00
# Depends on: cmake
2019-07-19 14:55:30 +02:00
name=exiv2
2020-07-04 15:30:23 +02:00
version=0.27.3
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() {
export CXXFLAGS+=" -Wno-deprecated-declarations"
2020-11-19 19:30:48 +01:00
cmake -S $name-$version -B build \
-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
2020-07-04 15:30:23 +02:00
cmake --build build
DESTDIR=$PKG cmake --install build
2019-07-19 14:55:30 +02:00
}