summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81f2ff26cf473bed4a378453f91c0849067460a2 (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: Jaco Malan <jacomalan.12@gmail.com>

pkgname=rkimer
pkgver=1.0.0
pkgrel=1
pkgdesc="A lightweight speedcubing timer written in Kotlin"
arch=('any')
url="https://github.com/Code-Log/rkimer"
license=('GPL3')
makedepends=('jdk-openjdk' 'gradle')
provides=('rkimer')
source=('rkimer::git+https://github.com/Code-Log/rkimer#branch=master')
noextract=()
sha256sums=('SKIP')
validpgpkeys=()

build() {
	cd $srcdir/rkimer
	git checkout v$pkgver
	./gradlew fatJar
}

package() {
	mkdir -p "$pkgdir/usr/share/java/rkimer"
	mkdir -p "$pkgdir/usr/share/rkimer/"
	mkdir -p "$pkgdir/usr/share/applications"
	cp "$srcdir/rkimer/app/build/libs/rkimer.jar" "$pkgdir/usr/share/java/rkimer/rkimer.jar"
	cp "$srcdir/rkimer/app/src/main/resources/rkimer.ico" "$pkgdir/usr/share/rkimer/rkimer.ico"
	cp ../rkimer.desktop "$pkgdir/usr/share/applications/rkimer.desktop"
	mkdir -p "$pkgdir/usr/bin"
	pwd
	cp ../rkimer.sh "$pkgdir/usr/bin/rkimer"
	chmod +x "$pkgdir/usr/bin/rkimer"
}