summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a39ecb1f0a93f5e9c32bf7478187274cc2394ceb (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
39
40
# Maintainer: Stephen Bell <theredbaron1834 @ yahoo.com>
pkgname=destinationsol
pkgrel=1
pkgver=2.0.0
pkgdesc="2D Space Arcade/RPG with Planets"
arch=('i686' 'x86_64')
url="https://github.com/MovingBlocks/DestinationSol"
license=('Apache V2')
depends=('java-runtime-common')
makedepends=('icoutils')
source=("$url/releases/download/v$pkgver/DestinationSol.zip")
sha1sums=('4d704a882eed7dec9f520d8ec5893985c91809bd')

build() {
  wrestool -x -t 14 sol.exe > icon.ico
  rm -rf lwjre lwjreOSX
  rm -f sol.exe sol*.sh
  rm DestinationSol.zip
}

package() {
  install -m777 -d "$pkgdir/opt/DestinationSol"
  mv * "$pkgdir/opt/DestinationSol/"

  mkdir -p "$pkgdir/usr/share/applications/"
  mkdir -p "$pkgdir/usr/bin/"
  echo "[Desktop Entry]
Name=Destination Sol
GenericName=Destination Sol
Comment=2D Space Arcade/RPG with Planets
Exec=DestinationSol
Icon=/opt/DestinationSol/icon.ico
Terminal=false
Type=Application
Categories=Game;" > "$pkgdir/usr/share/applications/DestinationSol.desktop"
  echo "cd /opt/DestinationSol/
java -jar /opt/DestinationSol/libs/solDesktop.jar" > "$pkgdir/usr/bin/DestinationSol"
  chmod +x "$pkgdir/usr/bin/DestinationSol"
}