summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ca1b0abed7b161cef9fdf49bf66279115f98c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Christophe Noisel <cnoisel at proton.me>
# Contributor: Balló György <ballogyor+arch at gmail dot com>
# Contributor: herb  <herb@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=planner
pkgver=0.14.90
pkgrel=7
pkgdesc='Project management application for GNOME'
arch=('x86_64')
license=('GPL')
url='https://wiki.gnome.org/Apps/Planner'
depends=('glib2>=2.50', # glib, gmodule, gobject
	'gtk3>=3.10', # gtk3, gail
	'libxml2>=2.6.27',
	'libxslt>=1.1.2', #libxslt, libexslt
	'libgda>=5.0')
makedepends=('meson')
options=('!emptydirs')
_commit="9e50bb29c7bf5ad6498172d7e29671e7734fc42a" # = master as of 2022-10-13
source=("git+https://gitlab.gnome.org/World/planner.git#commit=$_commit")
sha256sums=('SKIP')

# https://wiki.archlinux.org/title/Meson_package_guidelines#Template

build() {
	# 'git clone' done in "./planner" directory :
	arch-meson planner build
	meson compile -C build
}

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

package() {
	meson install -C build --destdir "$pkgdir"
}

post_install() {
	glib-compile-schemas "usr/share/glib-2.0/schemas"
	update-mime-database "usr/share/mime"
	gtk-update-icon-cache -qtf "usr/icons/hicolor"
	update-desktop-database -q "usr/share/applications"
}

post_upgrade() {
  post_install "$1"
}

post_remove() {
  post_install "$1"
}