summary refs log tree commit diff
path: root/megamek-bin/PKGBUILD
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2023-12-18 22:07:42 -0600
committerStarfall <us@starfall.systems>2023-12-18 22:07:42 -0600
commit051eab7bc74cd7c1faebd671f3fd96820a046203 (patch)
treef9e050eabdd42bb086b9546f2aa0da6d66eee4f1 /megamek-bin/PKGBUILD
parent5d84d7e36b6a48c84dcfc144d1eeeb337bf2b4d1 (diff)
megamek-bin
Diffstat (limited to 'megamek-bin/PKGBUILD')
-rw-r--r--megamek-bin/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/megamek-bin/PKGBUILD b/megamek-bin/PKGBUILD
new file mode 100644
index 0000000..82f7640
--- /dev/null
+++ b/megamek-bin/PKGBUILD
@@ -0,0 +1,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"
+}