diff options
author | Starfall <us@starfall.systems> | 2023-12-18 23:30:00 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2024-01-08 07:54:07 -0600 |
commit | db09bd234b0fe1b47b38d3466e518a2ab5254380 (patch) | |
tree | 3670be11ecfe77dccfc21d1f730fc1eb0aaf5642 /megamek-bin | |
parent | 051eab7bc74cd7c1faebd671f3fd96820a046203 (diff) |
fix megamek-bin
Diffstat (limited to 'megamek-bin')
-rw-r--r-- | megamek-bin/PKGBUILD | 13 | ||||
-rw-r--r-- | megamek-bin/megamek.desktop | 1 | ||||
-rw-r--r-- | megamek-bin/megameklab.desktop | 1 | ||||
-rw-r--r-- | megamek-bin/mekhq.desktop | 1 |
4 files changed, 13 insertions, 3 deletions
diff --git a/megamek-bin/PKGBUILD b/megamek-bin/PKGBUILD index 82f7640..cfb8bd4 100644 --- a/megamek-bin/PKGBUILD +++ b/megamek-bin/PKGBUILD @@ -17,9 +17,9 @@ source=("https://github.com/MegaMek/${_pkgname}/releases/download/v${pkgver}/${_ "megameklab.desktop" "mekhq.desktop") sha256sums=('4ede596fac90ac23ae9436da8f607bec028d913dcb07ce1b4b89219eef8f62aa' - 'cad90f8333b5ea7c4572d60c7e8afedb0003a5d49cc346f3b25c9822423df9b8' - 'f9ae569b7ee4125ae267c06f42d6e77f95dbbc7e36e01f8d4ef7465d46b06c64' - '2ec95b884fb40ccfc17a812c9510220ff959dac3db12d06b29251e0846ebb2cb') + '2b0c7399e38d0ae5f205c80ebbc9704789b362f9584cf2547eb5541652117a1f' + 'e20799a00f7e05445e0c7d1549d485c5ac2975014ecd193b8b4e76183661164d' + '1293435974c34293f31f25ebb29946439896d4541da8b12aa06f709ff89564bb') package() { cd ${_pkgname}-${pkgver} @@ -28,6 +28,7 @@ package() { 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 @@ -36,6 +37,12 @@ package() { cp -r mmconf $dir cp -r plugins $dir + # TODO wrapper script to run from user .config folder like the PKGBUILDs on the AUR + # but until then, just make these writeable + chmod a+w $dir/data/mechfiles/units.cache + chmod -R a+w $dir/logs + chmod -R a+w $dir/mmconf + cd ${srcdir} desktopdir="${pkgdir}/usr/share/applications" install -D megamek.desktop "${desktopdir}/megamek.desktop" diff --git a/megamek-bin/megamek.desktop b/megamek-bin/megamek.desktop index 13fc093..57bb9e0 100644 --- a/megamek-bin/megamek.desktop +++ b/megamek-bin/megamek.desktop @@ -2,6 +2,7 @@ Name=MegaMek GenericName=Java version of BattleTech Exec=java -jar /usr/lib/mekhq/MegaMek.jar +Path=/usr/lib/mekhq Terminal=false Type=Application Icon=megamek diff --git a/megamek-bin/megameklab.desktop b/megamek-bin/megameklab.desktop index 55a2daa..b7ad87d 100644 --- a/megamek-bin/megameklab.desktop +++ b/megamek-bin/megameklab.desktop @@ -2,6 +2,7 @@ Name=MegaMek Lab GenericName=Java version of BattleTech (Mek Editor) Exec=java -jar /usr/lib/mekhq/MegaMekLab.jar +Path=/usr/lib/mekhq Terminal=false Type=Application Icon=megameklab diff --git a/megamek-bin/mekhq.desktop b/megamek-bin/mekhq.desktop index cf93cc0..b6f2905 100644 --- a/megamek-bin/mekhq.desktop +++ b/megamek-bin/mekhq.desktop @@ -2,6 +2,7 @@ Name=MekHQ GenericName=Campaign manager for MegaMek Exec=java -jar /usr/lib/mekhq/MekHQ.jar +Path=/usr/lib/mekhq Terminal=false Type=Application Icon=megamek |