1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: tobias <tobias@arhlinux.org>
7 pkgdesc="Exif, Iptc and XMP metadata manipulation library and tools"
8 url="https://exiv2.org"
11 depends=('gcc-libs' 'zlib' 'expat' 'libexpat.so' 'gettext' 'curl' 'libcurl.so')
12 makedepends=('cmake' 'gtest' 'ninja')
13 checkdepends=('python')
14 provides=('libexiv2.so')
15 source=(https://github.com/Exiv2/exiv2/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
16 sha512sums=('fb7153c141502de4a3446abb49d991735aa034ef30d0ee2050cffc6c73778faa8ba2a666797565d45c11f9ae1130544b6ed854570d38351505dbb3c1610c4b7c')
17 b2sums=('97eab9341e039f11a09630f428dee77bcda699451507076f78012dc84bd57f3aa9b47ee7346aebf809788917754be0ff83b5d624ee18759155c2585026b76f1b')
20 cd ${pkgname}-${pkgver}
23 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DCMAKE_CXX_FLAGS="$CXXFLAGS -ffat-lto-objects" \
25 -DCMAKE_SKIP_RPATH=ON \
26 -DEXIV2_BUILD_SAMPLES=ON \
27 -DEXIV2_BUILD_UNIT_TESTS=ON \
28 -DEXIV2_ENABLE_VIDEO=ON \
29 -DEXIV2_ENABLE_NLS=ON \
30 -DEXIV2_ENABLE_XMP=ON \
31 -DEXIV2_ENABLE_CURL=ON \
32 -DEXIV2_ENABLE_WEBREADY=ON \
33 -DEXIV2_ENABLE_BMFF=ON
38 cd ${pkgname}-${pkgver}
43 cd ${pkgname}-${pkgver}
44 # remove samples instal which are only needed for unit tests
45 sed '/samples\/cmake_install.cmake/d' -i build/cmake_install.cmake
46 DESTDIR="${pkgdir}" ninja -C build install