summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d30b0785e3430551129ca69d285b52d10f067ad (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
# Maintainer: Danko Aleksejevs <danko@very.lv>
# Contributor: Matthias De Bie <mattydebie@gmail.com>
# Contributor: Yi donghoon <icq4ever@gmail.com>
pkgname='kemai'
pkgdesc='A QT6 client for Kimai time tracker'
pkgver='0.11.1'
pkgrel=1
url="https://github.com/AlexandrePTJ/kemai"
arch=('i686' 'x86_64')
license=('MIT')
source=("https://github.com/AlexandrePTJ/kemai/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('cfb51ffd44e56cf67a5f9c6c6a9ae45efce1bf6f0b75c91c789da18a04711ff2')
makedepends=('cmake' 'range-v3' 'magic_enum' 'qt6-tools')
depends=('qt6-base' 'spdlog' 'libxss' 'hicolor-icon-theme')

build() {
  cmake kemai-${pkgver} \
    -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DKEMAI_BUILD_LOCAL_DEPENDENCIES=OFF \
    -Wno-dev
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
  install -Dm644 kemai-${pkgver}/LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
}