# Maintainer: Natanael Copa pkgname=shotwell pkgver=0.20.1 pkgrel=0 pkgdesc="A digital photo organizer designed for the GNOME desktop environment" url="http://yorba.org/shotwell/" arch="all" license="LGPL2.1" install="shotwell.post-upgrade shotwell.post-install shotwell.pre-deinstall" depends="" subpackages="$pkgname-lang" makedepends="intltool vala libgee-dev libunique3-dev webkitgtk-dev libexif-dev librsvg-dev sqlite-dev udev-dev dbus-glib-dev libgphoto2-dev gexiv2-dev libraw-dev librsvg-dev json-glib-dev gnome-doc-utils m4 gst-plugins-base1-dev bash gtk+3.0-dev rest-dev desktop-file-utils" install= source="https://download.gnome.org/sources/shotwell/${pkgver%.*}/shotwell-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) patch -Np0 -i "$srcdir"/$i || return 1 ;; esac done } build () { cd $srcdir/$pkgname-$pkgver ./configure \ --build=$CBUILD \ --prefix=/usr \ --disable-desktop-update \ --disable-icon-update \ || return 1 make } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="f830bcee67ab8cf14648becdd5569ebb shotwell-0.20.1.tar.xz" sha256sums="86a869432b7c049e61217ad09eeac7e0d79cabfeca04a57a3629ad25f3070615 shotwell-0.20.1.tar.xz" sha512sums="4c72f648b2778e38b6748b79398481f7d05d4c68c08c3537c4bb0c045f4a7da44f9724bfdd7a612a3c246d936f3d365fd951a4b599ef59eb19ddf94f88beedff shotwell-0.20.1.tar.xz"