OCaml 4.14.0 rebuild: ocaml-ctypes 0.20.1-1
[arch-packages.git] / exiv2 / repos / extra-x86_64 / PKGBUILD
blobc5c9b6d7950826e1b8f8fe91db488b8113aaf1b5
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: tobias <tobias@arhlinux.org>
4 pkgname=exiv2
5 pkgver=0.27.5
6 pkgrel=3
7 pkgdesc="Exif, Iptc and XMP metadata manipulation library and tools"
8 url="https://exiv2.org"
9 arch=('x86_64')
10 license=('GPL2')
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')
19 build() {
20   cd ${pkgname}-${pkgver}
21   cmake -B build \
22     -GNinja \
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
34   ninja -C build
37 check() {
38   cd ${pkgname}-${pkgver}
39   ninja -C build tests
42 package() {
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
49 # vim: ts=2 sw=2 et: