summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD25
2 files changed, 19 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 716e9c2bf9c..ac759e2ae98 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,14 @@
pkgbase = elementary-planner
pkgdesc = Task manager with Todoist support
pkgver = 2.7
- pkgrel = 1
+ pkgrel = 2
url = https://useplanner.com
arch = x86_64
license = GPL3
+ checkdepends = appstream
+ makedepends = gobject-introspection
makedepends = meson
makedepends = vala
- makedepends = gobject-introspection
depends = elementary-icon-theme
depends = evolution-data-server
depends = granite
diff --git a/PKGBUILD b/PKGBUILD
index 158b2989314..9757e6b7c7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +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=('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
-#check() {
-# meson test -C build --print-errorlogs
-#}
+# 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"
}