summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8179e6fc4e62c92cef24563b57a4461ac34e784c (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
# Maintainer: Cyanism <aur at cyan dot slmail dot me>
_reponame="JKPS"
pkgname=jkps-git
pkgver=0.3.r3.g52103f2
pkgrel=1
pkgdesc="Shows keystates, keys per second, total keys and current beats per minute."
arch=('x86_64')
url="https://github.com/JekiTheMonkey/JKPS"
license=('MIT')
groups=()
depends=('sfml')
makedepends=('git' 'cmake')
provides=('jkps')
conflicts=('jkps')
options=('!buildflags')
source=('git+https://github.com/JekiTheMonkey/JKPS.git')
sha256sums=('SKIP')

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

build() {
  cmake -B build -S "$_reponame" \
      -DCMAKE_BUILD_TYPE='None' \
      -DCMAKE_INSTALL_PREFIX='/usr' \
      -Wno-dev
  cmake --build build
}

package() {
  install -Dm755 build/JKPS "$pkgdir/usr/bin/$_reponame"
  install -Dm644 $_reponame/LICENSE "$pkgdir/usr/share/licenses/$_reponame/LICENSE"
}