# $Id: PKGBUILD 142365 2015-10-01 16:02:59Z fyan $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>

pkgname=libgexiv2
pkgver=0.10.3
pkgrel=3
pkgdesc='GObject-based wrapper around the Exiv2 library'
url='https://wiki.gnome.org/Projects/gexiv2'
arch=('x86_64' 'i686')
license=('GPL2')
depends=('exiv2' 'glib2')
makedepends=('python-gobject' 'python2-gobject' 'gobject-introspection')
source=("http://ftp.gnome.org/pub/gnome/sources/${pkgname/lib/}/${pkgver%.*}/${pkgname/lib/}-$pkgver.tar.xz")
sha256sums=('390cfb966197fa9f3f32200bc578d7c7f3560358c235e6419657206a362d3988')

build() {
  cd "${pkgname/lib/}-$pkgver"

  # In order for the build process to include any python-related files,
  # 'import gi; print(gi._overridesdir)' must work with either python or
  # python2. The gi module is provided by python-gobject and python2-gobject.
  ./configure --prefix=/usr --enable-introspection
  make
}

package() {
  make -C "${pkgname/lib/}-$pkgver" DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
