summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 18 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 63d43d4887f..9757e6b7c7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,39 @@
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Jonas 'cherti' Gro├če Sundrup <aur@letopolis.de>
pkgname=elementary-planner
+_app_id=com.github.alainm23.planner
pkgver=2.7
-pkgrel=1
+pkgrel=2
pkgdesc="Task manager with Todoist support"
arch=('x86_64')
url="https://useplanner.com"
license=('GPL3')
depends=('elementary-icon-theme' 'evolution-data-server' 'granite'
'gtk-theme-elementary' 'libgee' 'libhandy' 'libpeas' 'libsoup' 'webkit2gtk' )
-makedepends=('meson' 'vala' 'gobject-introspection')
-makedepends=('meson' 'vala' 'gobject-introspection')
+makedepends=('gobject-introspection' 'meson' 'vala' )
+checkdepends=('appstream')
provides=('planner')
conflicts=('planner')
source=("planner-$pkgver.tar.gz::https://github.com/alainm23/planner/archive/$pkgver.tar.gz")
sha256sums=('cd34953867a91b2992aa4eafddc5093a695d1e6096571ade75640dddcc425d69')
build() {
- arch-meson planner-$pkgver build
- meson compile -C build
+ arch-meson planner-$pkgver build
+ meson compile -C build
+}
+
+
+check() {
+
+# No tests defined
+# meson test -C build --print-errorlogs
+
+ desktop-file-validate build/data/${_app_id}.desktop
+ appstreamcli validate build/data/${_app_id}.appdata.xml
}
package() {
- DESTDIR="$pkgdir" meson install -C build
+ meson install -C build --destdir "$pkgdir"
- ln -s /usr/bin/com.github.alainm23.planner "$pkgdir/usr/bin/planner"
+ ln -s /usr/bin/${_app_id} "$pkgdir/usr/bin/planner"
}