diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0e74ec520976 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = gog-surviving_mars_green_planet + pkgdesc = DLC for the surviving mars game. + pkgver = 1.5_fuglesang_1011166 + pkgrel = 1 + url = https://www.gog.com/en/game/surviving_mars_green_planet + arch = x86_64 + license = custom + depends = gog-surviving_mars + noextract = surviving_mars_green_planet_1_5_fuglesang_1011166_55908.sh + source = surviving_mars_green_planet_1_5_fuglesang_1011166_55908.sh::gog://surviving_mars_green_planet_1_5_fuglesang_1011166_55908.sh + sha256sums = 8aafe04739dc554982a6a4b0eedd48eba0da96da423f388db717307601b45fca + +pkgname = gog-surviving_mars_green_planet diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..47ddf9b49bd3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: kyndair <kyndair at gmail dot com> +# Place the gog installation file in the same folder as this PKGBUILD +# the installer will warn that the folder may not be correct, this can be ignored +pkgname=gog-surviving_mars_green_planet +_dlcparent=surviving_mars +_pkgname=surviving_mars_green_planet +pkgver=1.5_fuglesang_1011166 +_pkgver=1_5_fuglesang_1011166 +_build=55908 +pkgrel=1 +pkgdesc="DLC for the $(echo ${_dlcparent} | sed 's/_/ /g') game." +arch=('x86_64') +url="https://www.gog.com/en/game/${_pkgname}" +license=('custom') +depends=($(echo gog-${_dlcparent})) +source=("${_pkgname}_${_pkgver}_${_build}.sh::gog://${_pkgname}_${_pkgver}_${_build}.sh") +# don't download anything via makepkg +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=('8aafe04739dc554982a6a4b0eedd48eba0da96da423f388db717307601b45fca') +noextract=("${_pkgname}_${_pkgver}_${_build}.sh") + +prepare() { + chmod +x ${_pkgname}_${_pkgver}_${_build}.sh + ./${_pkgname}_${_pkgver}_${_build}.sh -- --silent --destination="${srcdir}" +} + +package() { + # install game documents + install -Dm644 "${srcdir}/docs/"*"/End User License Agreement.txt" "${pkgdir}/usr/share/doc/${_pkgname}/EULA" + install -Dm644 "${srcdir}/docs/"*"/installer_readme.txt" "${pkgdir}/usr/share/doc/${_pkgname}/installer.readme" + # install game data, executable and link in /usr/bin + find "${srcdir}/game" -type d -exec chmod 755 {} + + find "${srcdir}/game" -type f -exec chmod 644 {} + + mkdir -p "${pkgdir}/opt/${_dlcparent}" + mv "${srcdir}/game/"* "${pkgdir}/opt/${_dlcparent}" +} |