summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35da682f298dd15b101c1c243c87eee3f6b3767d (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
# Maintainer: Aaron Cottle <aaron@aaroncottle.au>

pkgname=plasma-activities-stats-git
pkgver=6.0.80_r489.g6fba8de
_dirver=$(echo $pkgver | cut -d. -f1-3)
pkgrel=1
pkgdesc='A library for accessing the usage data collected by the activities system'
arch=(x86_64)
url='https://kde.org/plasma-desktop/'
license=(LGPL-2.0-or-later)
depends=(gcc-libs
         glibc
         plasma-activities-git
         kconfig-git
         qt6-base)
makedepends=(doxygen
             extra-cmake-modules-git
             qt6-doc
             qt6-tools)
conflicts=(kactivities-stats kactivities-stats-git plasma-activities-stats)
provides=(kactivities-stats kactivities-stats-git plasma-activities-stats)
source=(git+https://invent.kde.org/plasma/plasma-activities-stats.git)
sha256sums=('SKIP')

pkgver() {
  cd plasma-activities-stats
  _ver="$(grep -m1 'set(PROJECT_VERSION' CMakeLists.txt | cut -d '"' -f2 | tr - .)"
  echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build() {
  cmake -B build -S plasma-activities-stats \
    -DBUILD_TESTING=OFF \
    -DBUILD_QCH=ON
  cmake --build build
}

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