summary refs log tree commit diff
path: root/megamek-bin/PKGBUILD
blob: 82f76407f345e94e4e1fc5afb904f8092fc8aa8f (plain) (blame)
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
41
42
43
44
# Maintainer: starfall <us@starfall.systems>
pkgname=mekhq-bin
_pkgname=mekhq
pkgver=0.48.0
pkgrel=1
pkgdesc="MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map."
arch=('x86_64')
url="https://megamek.org/"
license=('GPL')
depends=('java-runtime>=11')
makedepends=()
provides=('megamek')
conflicts=('megamek')

source=("https://github.com/MegaMek/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz"
	"megamek.desktop"
	"megameklab.desktop"
	"mekhq.desktop")
sha256sums=('4ede596fac90ac23ae9436da8f607bec028d913dcb07ce1b4b89219eef8f62aa'
            'cad90f8333b5ea7c4572d60c7e8afedb0003a5d49cc346f3b25c9822423df9b8'
            'f9ae569b7ee4125ae267c06f42d6e77f95dbbc7e36e01f8d4ef7465d46b06c64'
            '2ec95b884fb40ccfc17a812c9510220ff959dac3db12d06b29251e0846ebb2cb')

package() {
	cd ${_pkgname}-${pkgver}
	dir="${pkgdir}/usr/lib/${_pkgname}"

	install -D MegaMek.jar "${dir}/MegaMek.jar"
	install -D MegaMekLab.jar "${dir}/MegaMekLab.jar"
	install -D MekHQ.jar "${dir}/MekHQ.jar"
	cp -r campaigns $dir
	cp -r data $dir
	cp -r docs $dir
	cp -r lib $dir
	cp -r logs $dir
	cp -r mmconf $dir
	cp -r plugins $dir

	cd ${srcdir}
	desktopdir="${pkgdir}/usr/share/applications"
	install -D megamek.desktop "${desktopdir}/megamek.desktop"
	install -D megameklab.desktop "${desktopdir}/megameklab.desktop"
	install -D mekhq.desktop "${desktopdir}/mekhq.desktop"
}