summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7563ff7bfa471ea4e02b40910484bc2b0631e391 (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
# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com>

pkgname=khronos-git
pkgver=3.6.0.r0.gb36904f
pkgrel=1
pkgdesc="Track each task's time in a simple inobtrusive way"
arch=('any')
url="https://github.com/lainsce/khronos"
license=('GPL3')
depends=('gtk4' 'json-glib' 'libadwaita' 'libgee')
makedepends=('git' 'meson' 'gobject-introspection' 'ninja' 'vala')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(git+$url.git)
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

build() {
  arch-meson ${pkgname%-git} build
  meson compile -C build
}

package() {
  cd "$srcdir"
  DESTDIR="${pkgdir}" ninja -C build install
}