summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--megamek-bin/PKGBUILD44
-rw-r--r--megamek-bin/megamek.desktop10
-rw-r--r--megamek-bin/megameklab.desktop10
-rw-r--r--megamek-bin/mekhq.desktop10
4 files changed, 74 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"
+}
diff --git a/megamek-bin/megamek.desktop b/megamek-bin/megamek.desktop
new file mode 100644
index 0000000..13fc093
--- /dev/null
+++ b/megamek-bin/megamek.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=MegaMek
+GenericName=Java version of BattleTech
+Exec=java -jar /usr/lib/mekhq/MegaMek.jar
+Terminal=false
+Type=Application
+Icon=megamek
+Categories=Game;Java;
+StartupWMClass=SWT
+
diff --git a/megamek-bin/megameklab.desktop b/megamek-bin/megameklab.desktop
new file mode 100644
index 0000000..55a2daa
--- /dev/null
+++ b/megamek-bin/megameklab.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=MegaMek Lab
+GenericName=Java version of BattleTech (Mek Editor)
+Exec=java -jar /usr/lib/mekhq/MegaMekLab.jar
+Terminal=false
+Type=Application
+Icon=megameklab
+Categories=Game;Java;
+StartupWMClass=SWT
+
diff --git a/megamek-bin/mekhq.desktop b/megamek-bin/mekhq.desktop
new file mode 100644
index 0000000..cf93cc0
--- /dev/null
+++ b/megamek-bin/mekhq.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=MekHQ
+GenericName=Campaign manager for MegaMek
+Exec=java -jar /usr/lib/mekhq/MekHQ.jar
+Terminal=false
+Type=Application
+Icon=megamek
+Categories=Game;Java;
+StartupWMClass=SWT
+