# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=shotwell
pkgver=0.32.10
pkgrel=0
pkgdesc="Digital photo organizer designed for the GNOME desktop environment"
url="https://wiki.gnome.org/Apps/Shotwell"
arch="all"
license="CC-BY-SA-3.0 AND LGPL-2.1-or-later"
subpackages="$pkgname-lang $pkgname-doc"
makedepends="
	desktop-file-utils
	gcr-dev
	gexiv2-dev
	gst-plugins-base-dev
	gtk+3.0-dev
	itstool
	json-glib-dev
	libexif-dev
	libgdata-dev
	libgee-dev
	libgphoto2-dev
	libgudev-dev
	libportal-dev
	libraw-dev
	libsecret-dev
	meson
	sqlite-dev
	vala
	webkit2gtk-4.1-dev
	"
checkdepends="appstream-glib"
source="https://download.gnome.org/sources/shotwell/${pkgver%.*}/shotwell-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dinstall_apport_hook=false \
		. output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
adb670417a698d53f5fd865b70cd394be2779d9ada4a1bbcc3c1af67cd7e39ca79a303beec447156bd902dc415ceaa14205544505489abc0027464ab01029304  shotwell-0.32.10.tar.xz
"
