diff options
author | kyndair | 2021-02-19 21:24:30 +0000 |
---|---|---|
committer | kyndair | 2021-02-19 21:24:30 +0000 |
commit | 4fddfc10d3e4301a0edf3dc1d67ac9eea4b94b11 (patch) | |
tree | badee940667f30d768f2d0ba36864b9f40aa60d4 | |
download | aur-4fddfc10d3e4301a0edf3dc1d67ac9eea4b94b11.tar.gz |
battletech installer
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | battletech.desktop | 10 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e21599cd787f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = gog-battletech + pkgdesc = The year is 3025 and the galaxy is trapped in a cycle of perpetual war, fought with enormous mechanized vehicles called BattleMechs. + pkgver = 1.9.1.686r + pkgrel = 1 + url = https://www.gog.com/game/battletech_game + arch = x86_64 + license = custom + makedepends = p7zip + noextract = battletech_1_9_1_686r_36568.sh + noextract = battletech.desktop + source = battletech_1_9_1_686r_36568.sh::gog://battletech_1_9_1_686r_36568.sh + source = battletech.desktop + sha256sums = a30d90de5969c9880c352824242d9299a1eb2d7e6fb2d385a3d18aecfafd8751 + sha256sums = 3b11f1ed7e20c62154699541dc7d4039057702d321dbeac185c80b2efce6d2c6 + +pkgname = gog-battletech + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3617fb9842e3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: kyndair <kyndair at gmail dot com> +# Place the gog installation file in the same folder as this PKGBUILD +pkgname=gog-battletech +_pkgname=battletech +pkgver=1.9.1.686r +_pkgver=1_9_1_686r +_build=36568 +_goggame=1482783682 +pkgrel=1 +pkgdesc="The year is 3025 and the galaxy is trapped in a cycle of perpetual war, fought with enormous mechanized vehicles called BattleMechs." +arch=('x86_64') +url="https://www.gog.com/game/battletech_game" +license=('custom') +makedepends=('p7zip') +source=("${_pkgname}_${_pkgver}_${_build}.sh::gog://${_pkgname}_${_pkgver}_${_build}.sh" + "${_pkgname}.desktop") +# don't download anything automatically +DLAGENTS+=("gog::/usr/bin/perl -E print\(\"${RED}\"\ .\ substr\(\"%u\",\ 6\)\ .\ \"\ not\ found.\ \ Check\ the\ PKGBUILD\ for\ further\ information.${ALL_OFF}\\\\n\"\)\;\ exit\ 1") +sha256sums=('a30d90de5969c9880c352824242d9299a1eb2d7e6fb2d385a3d18aecfafd8751' + '3b11f1ed7e20c62154699541dc7d4039057702d321dbeac185c80b2efce6d2c6') +noextract=("${_pkgname}_${_pkgver}_${_build}.sh" + "${_pkgname}.desktop") + +prepare() { + 7z x -tzip -y ${_pkgname}_${_pkgver}_${_build}.sh +} + +package() { + # install launcher + install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop" + # install game icon + install -Dm644 "${srcdir}/data/noarch/support/icon.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + # install goggame files + install -Dm644 "${srcdir}/data/noarch/game/goggame-${_goggame}.hashdb" "${pkgdir}/opt/${_pkgname}/goggame-${_goggame}.hashdb" + install -Dm644 "${srcdir}/data/noarch/game/goggame-${_goggame}.info" "${pkgdir}/opt/${_pkgname}/goggame-${_goggame}.info" + # set the correct permissions and move the game data into pkg + find "${srcdir}/data/noarch/game/BattleTech_Data" -type d -exec chmod 755 {} + + find "${srcdir}/data/noarch/game/BattleTech_Data" -type f -exec chmod 644 {} + + mv "${srcdir}/data/noarch/game/BattleTech_Data" "${pkgdir}/opt/${_pkgname}" + # install executable and link in /usr/bin + install -Dm755 "${srcdir}/data/noarch/game/BattleTech" "${pkgdir}/opt/${_pkgname}/BattleTech" + mkdir "${pkgdir}/usr/bin" + ln -s /opt/${_pkgname}/BattleTech "${pkgdir}/usr/bin/${_pkgname}" +} diff --git a/battletech.desktop b/battletech.desktop new file mode 100644 index 000000000000..27c5f6fa6f7a --- /dev/null +++ b/battletech.desktop @@ -0,0 +1,10 @@ +[Desktop Entry]
+Name=Battletech
+Comment=Run your own Merc outfit of Battlemechs.
+Exec=battletech
+Icon=battletech.png
+Terminal=false
+Type=Application
+X-DCOP-ServiceType=Multi
+X-KDE-StartupNotify=true
+Categories=Game;
|