APP=exiv2
VERSION=0.25
BUILD=1sml
HOMEPAGE='https://exiv2.org/'
DOWNLOAD='https://exiv2.org/releases/exiv2-0.25.tar.gz'
DESC="C++ library and a utility to read and write Exif, IPTC and XMP image metadata"
REQUIRES="gcc-libs expat zlib curl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-shared=yes \
    --enable-static=no \
    --without-ssh \
    --enable-xmp \
    --enable-video \
    --enable-webready \
    $BUILDDIST

  make
  make install DESTDIR=$PKG

  cp COPYING* doc/{COPYING-XMPSDK,README-XMP} $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
eed430e3eb8faed9a2545ef77a45cc6de172697b1aff7b243f84b10066279a873418d66e7a821f758b42962f055670eec72d272aac388f512b61aefb77bf02c4  exiv2-0.25.tar.lz
"
