summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Beste2017-06-06 18:45:35 -0500
committerDan Beste2017-06-06 18:45:43 -0500
commit8cab4f07ff2b3f7603467ba7eb903d5971271879 (patch)
treef54412abeaadaa90f2bc7dc644fe7f4a6cd2bec9
downloadaur-gog-besiege.tar.gz
v2.2.0.3
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore9
-rw-r--r--PKGBUILD57
-rw-r--r--gog-besiege24
-rw-r--r--gog-besiege.desktop11
5 files changed, 120 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8ec9bda11ab
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = gog-besiege
+ pkgdesc = Besiege is an upcoming physics based building game in which you construct medieval siege engines and lay waste to immense fortresses and peaceful hamlets.
+ pkgver = 2.2.0.3
+ pkgrel = 1
+ url = http://spiderlinggames.co.uk/
+ arch = i686
+ arch = x86_64
+ groups = games
+ groups = gog
+ license = custom
+ source = gog-besiege
+ source = gog-besiege.desktop
+ source = file://gog_besiege_2.2.0.3.sh
+ sha256sums = 161227eeb3e2d63da8fc124f9893e00ee5a45e24cd9b9d3cd3dbeb18b4ad2bb1
+ sha256sums = f02edff7f3174e5f4239fc2fa2c669b47ee8608eb8e4a817ea708e981056a3ae
+ sha256sums = d1e0e3153e20ff499bb078374f0b863629414e987f22f44ae16366e7ffa8137e
+
+pkgname = gog-besiege
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e7bb45c3299
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+# Blacklist:
+*
+
+# Whitelist:
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!gog-besiege
+!gog-besiege.desktop
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..70b0a0b777f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Dan Beste <dan.ray.beste@gmail.com>
+
+# Notes:
+# + gog:// DLAGENT:
+# - A gog:// DLAGENT can be configured in /etc/makepkg.conf to
+# automatically pull game files from GOG.
+# - https://github.com/Sude-/lgogdownloader
+
+pkgname='gog-besiege'
+pkgver=2.2.0.3
+pkgrel=1
+pkgdesc='Besiege is an upcoming physics based building game in which you construct
+medieval siege engines and lay waste to immense fortresses and peaceful hamlets.'
+url='http://spiderlinggames.co.uk/'
+license=('custom')
+groups=('games' 'gog')
+arch=('i686' 'x86_64')
+source=(
+ "${pkgname}"
+ "${pkgname}.desktop"
+ "file://${pkgname//-/_}_${pkgver}.sh"
+)
+sha256sums=(
+ '161227eeb3e2d63da8fc124f9893e00ee5a45e24cd9b9d3cd3dbeb18b4ad2bb1'
+ 'f02edff7f3174e5f4239fc2fa2c669b47ee8608eb8e4a817ea708e981056a3ae'
+ 'd1e0e3153e20ff499bb078374f0b863629414e987f22f44ae16366e7ffa8137e'
+)
+
+package() {
+ cd "${srcdir}"
+
+ 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 -D -m 755 \
+ "${srcdir}/${pkgname}" \
+ "${pkgdir}/usr/bin/${pkgname}"
+ install -D -m 755 \
+ data/noarch/start.sh \
+ "${pkgdir}/opt/${pkgname}/"
+ install -D -m 755 \
+ data/noarch/support/*.{sh,shlib} -t \
+ "${pkgdir}/opt/${pkgname}/support/"
+ install -D -m 644 \
+ 'data/noarch/docs/End User License Agreement.txt' \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m 644 \
+ "data/noarch/support/icon.png" \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ install -D -m 644 \
+ "${srcdir}/${pkgname}.desktop" \
+ "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+}
diff --git a/gog-besiege b/gog-besiege
new file mode 100644
index 00000000000..a071db13447
--- /dev/null
+++ b/gog-besiege
@@ -0,0 +1,24 @@
+#! /bin/bash
+
+pkgname='gog-besiege'
+pkgdir="/opt/${pkgname}/"
+run="${pkgdir}/start.sh"
+
+if hash firejail; then
+ echo "Firejail detected; attempting to enforce a sandbox..."
+ if [[ -f "${XDG_CONFIG_HOME}/firejail/${pkgname}.profile" ]]; then
+ echo "Firejail profile for ${pkgname} found in ${XDG_CONFIG_HOME}/firejail/"
+ echo "Enforcing a sandbox!"
+ firejail "${run}"
+ elif [[ -f "/etc/firejail/${pkgname}.profile" ]]; then
+ echo "Firejail profile for ${pkgname} found in /etc/firejail/"
+ echo "Enforcing a sandbox!"
+ firejail "${run}"
+ else
+ echo "No Firejail profile detected!"
+ echo "Skipping Firejail sandbox..."
+ "${run}"
+ fi
+else
+ "${run}"
+fi
diff --git a/gog-besiege.desktop b/gog-besiege.desktop
new file mode 100644
index 00000000000..82db423a124
--- /dev/null
+++ b/gog-besiege.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Besiege
+Comment=Besiege is an upcoming physics based building game in which you construct
+medieval siege engines and lay waste to immense fortresses and peaceful hamlets.
+Exec=gog-besiege
+Icon=gog-besiege
+Type=Application
+Terminal=false
+StartupNotify=true
+Categories=Game;AudioVideo;
+Encoding=UTF-8