summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Fettouhi2015-06-10 19:59:43 +0200
committerAndré Fettouhi2015-06-10 19:59:43 +0200
commit08f3b57f3932e1765b36eea931916fc3edfe7758 (patch)
treec26b75be08f766194cae46544012e4b8d3cc3bde
downloadaur-08f3b57f3932e1765b36eea931916fc3edfe7758.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD25
-rw-r--r--gog-silent-service-212
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e55d3720bf9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = gog-silent-service-2
+ pkgdesc = Prepare to dive into Silent Service, the submarine simulation that recreates authentic World War II sea patrols in the bloody waters of the South Pacific.
+ pkgver = 1.0.0.6
+ pkgrel = 1
+ url = http://www.gog.com/game/silent_service_12
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = libpng12
+ depends = unionfs-fuse
+ source = local://gog_silent_service_2_1.0.0.6.tar.gz
+ source = gog-silent-service-2
+ sha256sums = 2a56ff5dd1cb098480e9d377eba832de3615e0e53c5c2daed5caf8da5f8a2b6e
+ sha256sums = 96f929894670a1f8f6d407d69fda2416520663620e783edad42096ba5ac08a53
+
+pkgname = gog-silent-service-2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ca97dc1da01
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer : André Fettouhi <a.fettouhi@gmail.com>
+
+pkgname=gog-silent-service-2
+pkgver=1.0.0.6
+pkgrel=1
+pkgdesc="Prepare to dive into Silent Service, the submarine simulation that recreates authentic World War II sea patrols in the bloody waters of the South Pacific."
+arch=("i686" "x86_64")
+url="http://www.gog.com/game/silent_service_12"
+license=("custom")
+source=("local://gog_silent_service_2_${pkgver}.tar.gz"
+ "gog-silent-service-2")
+sha256sums=('2a56ff5dd1cb098480e9d377eba832de3615e0e53c5c2daed5caf8da5f8a2b6e'
+ '96f929894670a1f8f6d407d69fda2416520663620e783edad42096ba5ac08a53')
+depends=(libpng12 unionfs-fuse)
+
+package() {
+ mkdir -p "${pkgdir}"/opt/gog/silent-service-2
+ cp -r "${srcdir}"/Silent\ Service\ 2/* "${pkgdir}"/opt/gog/silent-service-2
+ install -Dm644 "${srcdir}"/Silent\ Service\ 2/support/gog-silent-service-2-primary.desktop "${pkgdir}"/usr/share/applications/gog-silent-service-2.desktop
+ install -Dm644 "${srcdir}"/Silent\ Service\ 2/support/gog-silent-service-2.png "${pkgdir}"/usr/share/pixmaps/gog-silent-service-2.png
+ install -Dm644 "${srcdir}"/Silent\ Service\ 2/docs/End\ User\ License\ Agreement.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm755 "${srcdir}/gog-silent-service-2" "${pkgdir}/usr/bin/gog-silent-service-2"
+}
+
+PKGEXT=.pkg.tar
diff --git a/gog-silent-service-2 b/gog-silent-service-2
new file mode 100644
index 00000000000..59f34495368
--- /dev/null
+++ b/gog-silent-service-2
@@ -0,0 +1,12 @@
+#!/usr/bin/bash
+gogdir="/opt/gog/silent-service-2"
+homedir="$HOME/.gog/silent-service-2"
+mkdir -p "$homedir"/{game,config/data}
+
+if [[ ! -e "$homedir/config/dosboxSilentService.conf" ]]; then
+ cp "$gogdir/dosboxSilentService.conf" "$homedir/config/dosboxSilentService.conf"
+fi
+
+unionfs "$homedir/config=RW:$gogdir=RO" "$homedir/game"
+"$homedir"/game/start.sh
+fusermount -u "$homedir/game"