# Maintainer: Adrian Perez de Castro pkgname=gtg pkgver=0.6 pkgrel=3 pkgdesc='Personal GTD like organizer for the GNOME desktop environment' url=https://wiki.gnome.org/Apps/GTG arch=(any) license=(GPL) depends=(gtksourceview4 hicolor-icon-theme python-cairo python-caldav python-dbus python-gobject 'python-liblarch>=3.2' python-lxml) checkdepends=(python-mock python-nose python-pytest) makedepends=(meson ninja itstool) optdepends=('pdftk: for the export and print plugin' 'python-cheetah3: for the export and print plugin' 'texlive-bin: for pdflatex, needed by the export and print plugin' 'texlive-core: for pdfjam, needed by the export and print plugin') source=("https://github.com/getting-things-gnome/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.0.tar.xz") b2sums=('29c581e4264b3060561123e1b5e204d1fda2cb86fe34c2a285b415554a50ee0299ef500ad7895cbc7e6c00c5f25d2b1e79daad5c8b1233cf3b49f7b2289a8016') build () { rm -rf build arch-meson -Dprofile=default build "${pkgname}-${pkgver}.0" ninja -C build } check () { cd "${pkgname}-${pkgver}.0" ./run-tests } package () { DESTDIR="${pkgdir}" ninja -C build install }