summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e8e761c3f07cf4f3eb234b8eebcdb3214066bcd (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
# Maintainer: Chris Cromer <chris@cromer.cl>

pkgbase=droidquest
pkgname=('droidquest')
pkgver=2.8.r44.3bf267f
pkgrel=2
pkgdesc='A Java recreation of the classic game Robot Odyssey'
arch=('any')
url='https://git.cromer.cl/cromer/DroidQuest'
license=('GPL3')
depends=('java-environment')
makedepends=('gcc' 'maven')
source=('droidquest::git+https://git.cromer.cl/cromer/DroidQuest.git')
sha256sums=('SKIP')

pkgver() {
  cd droidquest
  printf "2.8.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd droidquest
  make
}

package() {
  cd droidquest
  mkdir -p "$pkgdir/usr/bin"
  mkdir -p "$pkgdir/usr/share/pixmaps"
  mkdir -p "$pkgdir/usr/share/applications"
  mkdir -p "$pkgdir/usr/share/DroidQuest/chips"
  cp -dR "src/main/resources/chips" "$pkgdir/usr/share/DroidQuest"
  cp "target/dq-2.8.jar" "$pkgdir/usr/share/DroidQuest/dq-2.8.jar"
  cp "DroidQuest" "$pkgdir/usr/bin/DroidQuest"
  cp "DroidQuest.png" "$pkgdir/usr/share/pixmaps/DroidQuest.png"
  cp "DroidQuest.desktop" "$pkgdir/usr/share/applications/DroidQuest.desktop"
}