summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkyndair2021-02-19 21:27:04 +0000
committerkyndair2021-02-19 21:27:04 +0000
commit430e07c735129093e3b0b8d3240ea4343b8f7ab0 (patch)
treed4dcecd12eba2873eb62167319f3adc6c2528ff6
downloadaur-gog-battletech-flashpoint.tar.gz
battletech dlc
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD32
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1dc217f78b5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = gog-battletech-flashpoint
+ pkgdesc = DLC for the Battletech game.
+ pkgver = 1.9.1.686r
+ pkgrel = 1
+ url = https://www.gog.com/game/battletech_game
+ arch = x86_64
+ license = custom
+ makedepends = p7zip
+ depends = gog-battletech
+ noextract = battletech_flashpoint_1_9_1_686r_36568.sh
+ source = battletech_flashpoint_1_9_1_686r_36568.sh::gog://battletech_flashpoint_1_9_1_686r_36568.sh
+ sha256sums = bd7d890a3b23417c1f19ab9a255c7358efbb65761b164d01861a459a103b94ef
+
+pkgname = gog-battletech-flashpoint
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..676089579d8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: kyndair <kyndair at gmail dot com>
+# Place the gog installation file in the same folder as this PKGBUILD
+pkgname=gog-battletech-flashpoint
+_pkgname=battletech_flashpoint
+pkgver=1.9.1.686r
+_pkgver=1_9_1_686r
+_build=36568
+_goggame=1895718372
+pkgrel=1
+pkgdesc="DLC for the Battletech game."
+arch=('x86_64')
+url="https://www.gog.com/game/battletech_game"
+license=('custom')
+depends=('gog-battletech')
+makedepends=('p7zip')
+source=("${_pkgname}_${_pkgver}_${_build}.sh::gog://${_pkgname}_${_pkgver}_${_build}.sh")
+# 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=('bd7d890a3b23417c1f19ab9a255c7358efbb65761b164d01861a459a103b94ef')
+noextract=("${_pkgname}_${_pkgver}_${_build}.sh")
+
+prepare() {
+ 7z x -tzip -y ${_pkgname}_${_pkgver}_${_build}.sh
+}
+
+package() {
+ # install goggame files
+ install -Dm644 "${srcdir}/data/noarch/game/goggame-${_goggame}.hashdb" "${pkgdir}/opt/battletech/goggame-${_goggame}.hashdb"
+ install -Dm644 "${srcdir}/data/noarch/game/goggame-${_goggame}.info" "${pkgdir}/opt/battletech/goggame-${_goggame}.info"
+ # install DLC key. Assets are now pre-installed in the main game
+ install -Dm644 "${srcdir}/data/noarch/game/BattleTech_Data/StreamingAssets/lnx/4a23f5f2-5aa4-46ab-aba5-61057c7bb868.dlc" "${pkgdir}/opt/battletech/BattleTech_Data/StreamingAssets/lnx/4a23f5f2-5aa4-46ab-aba5-61057c7bb868.dlc"
+}