summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b13ddfa9674159d34d24f1d40ff1794794fa90a (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
# Maintainer: Andrew Shark <ashark @ at @ linuxcomp.ru>

pkgname=zanshin-git
pkgver=v21.11.90.r292.31195a7a
pkgrel=1
pkgdesc="To-do management application for KDE"
arch=(x86_64)
url="https://invent.kde.org/pim/zanshin"
license=(GPL)
depends=(kdepim-runtime kontactinterface)
makedepends=(git extra-cmake-modules kdoctools5 boost)
source=(git+https://invent.kde.org/pim/zanshin.git)
sha256sums=('SKIP')
conflicts=(${pkgname%-git})
provides=(${pkgname%-git})

build() {
  cmake -B build -S ${pkgname%-git} \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}

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