diff options
author | runiq | 2017-01-28 18:15:17 +0100 |
---|---|---|
committer | runiq | 2017-01-28 18:15:17 +0100 |
commit | 9dd665a69925001bda65f0810e10e48a93060d39 (patch) | |
tree | 112125592d053d68f06fc0b49fc8264e05e4cb59 | |
download | aur-9dd665a69925001bda65f0810e10e48a93060d39.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 54 | ||||
-rw-r--r-- | gog-transistor | 13 | ||||
-rw-r--r-- | gog-transistor.desktop | 10 |
4 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f7bb35694fce --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = gog-transistor + pkgdesc = A sci-fi themed action RPG that invites you to wield an extraordinary weapon of unknown origin as you fight through a stunning futuristic city + pkgver = 2.0.0.3 + pkgrel = 1 + url = http://www.supergiantgames.com/games/transistor + arch = i686 + arch = x86_64 + license = custom + optdepends = firejail: Automatically sandbox this application from your OS + source = gog://gog_transistor_2.0.0.3.sh + source = gog-transistor.desktop + source = gog-transistor + sha256sums = 46bc519d331bbebc1d155b06bf5407e2846c2bf945c9a06dd34182184c3792fd + sha256sums = 1582e8bad6e6b5908afc6a63bc637f99f11c9b1e04dbec732410a4ffb7667eca + sha256sums = 0e2fac1f46ae0e39a396e5a18be580bd3489709b5d495192b8b32576f71ce5c1 + +pkgname = gog-transistor + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3e8e7d963fad --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Patrice Peterson <runiq@archlinux.us> +# Thanks to: Ainola for the base PKGBUILD (gog-undertale) + +pkgname=gog-transistor +pkgver=2.0.0.3 +pkgrel=1 +pkgdesc="A sci-fi themed action RPG that invites you to wield an extraordinary weapon of unknown origin as you fight through a stunning futuristic city" +url="http://www.supergiantgames.com/games/transistor" +license=('custom') +arch=('i686' 'x86_64') +# Dependencies are included with the gog_transistor_$version.sh file. +depends_x86_64=() +depends_i686=() +# If Firejail is installed, this application will be sandboxed automatically. +optdepends=('firejail: Automatically sandbox this application from your OS') +source=( + "gog://${pkgname//-/_}_${pkgver}.sh" + "${pkgname}.desktop" + "$pkgname") +sha256sums=('46bc519d331bbebc1d155b06bf5407e2846c2bf945c9a06dd34182184c3792fd' + '1582e8bad6e6b5908afc6a63bc637f99f11c9b1e04dbec732410a4ffb7667eca' + '0e2fac1f46ae0e39a396e5a18be580bd3489709b5d495192b8b32576f71ce5c1') + +# You need to download the gog.com installer file manually or with lgogdownloader. +DLAGENTS+=("gog::/usr/bin/echo %u Download the GOG file to \"$PWD\" or set up a gog:// DLAGENT.") + +# Prevent compressing final package +PKGEXT=".pkg.tar" + +package(){ + cd "${srcdir}" + + # Install game + install -d "${pkgdir}/opt/${pkgname}/" + install -d "${pkgdir}/opt/${pkgname}/support" + install -d "${pkgdir}/usr/bin/" + cp -r "data/noarch/game/" "${pkgdir}/opt/${pkgname}/" + + + find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} \; + install -Dm755 "data/noarch/start.sh" \ + "${pkgdir}/opt/${pkgname}/" + install -Dm755 data/noarch/support/*.{sh,shlib} -t \ + "${pkgdir}/opt/${pkgname}/support" + + # Desktop integration + install -Dm 644 "data/noarch/support/icon.png" \ + "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + install -Dm644 "data/noarch/docs/End User License Agreement.txt" \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm 644 "${srcdir}/${pkgname}.desktop" \ + "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -Dm755 "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname" +} diff --git a/gog-transistor b/gog-transistor new file mode 100644 index 000000000000..bbad3f45c0ea --- /dev/null +++ b/gog-transistor @@ -0,0 +1,13 @@ +#! /bin/sh + +run="/opt/gog-transistor/start.sh" +# The launcher fails unless in its dir. +cd "$(dirname "$run")" || exit 1 + +if which firejail >/dev/null 2>&1 && [ -z "$FIREJAIL_IGNORE" ]; then + echo "Firejail detected. Enforcing a sandbox" + echo "To bypass Firejail enforcement, run FIREJAIL_IGNORE=1 $run." + firejail --caps.drop=all "$run" +else + "$run" +fi diff --git a/gog-transistor.desktop b/gog-transistor.desktop new file mode 100644 index 000000000000..8eec1ea94092 --- /dev/null +++ b/gog-transistor.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Transistor +Comment=A sci-fi themed action RPG that invites you to wield an extraordinary weapon of unknown origin as you fight through a stunning futuristic city. +Exec=gog-transistor +Icon=gog-transistor +Type=Application +Terminal=false +StartupNotify=true +Categories=Game;AudioVideo; +Encoding=UTF-8 |