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/PKGBUILD | |
parent | 051eab7bc74cd7c1faebd671f3fd96820a046203 (diff) |
fix megamek-bin
Diffstat (limited to 'megamek-bin/PKGBUILD')
-rw-r--r-- | megamek-bin/PKGBUILD | 13 |
1 files changed, 10 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" |