blob: 5b1a187a86812df8c7bca00d3ae1934a02b124e2 (
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
|
# Maintainer: Jaco Malan <jacomalan.12@gmail.com>
pkgname=rkimer-git
pkgver=r41.ead3caf
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=()
pkgver() {
cd $srcdir/rkimer
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $srcdir/rkimer
./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"
}
|