summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorConstantin Nickel2019-06-07 05:12:03 +0200
committerConstantin Nickel2019-06-07 05:12:03 +0200
commit1c0bfb05c11a150a8d13ff7e3c762ae33f16fb0f (patch)
treea7713df0356eba0fff470f86a38a025090d170b2
parent2fb7a6f8aec29ed6097e8bf3a5949244907b3d6d (diff)
downloadaur-1c0bfb05c11a150a8d13ff7e3c762ae33f16fb0f.tar.gz
use DOSBOX_CMD env var
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--historyline-1914-1918-gog.sh6
3 files changed, 8 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 09f7e4e9f9d6..de9bee8d6fc6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = historyline-1914-1918-gog
pkgdesc = A turn-based tactics game which takes the player through various battles of the First World War.
pkgver = 1.0
- pkgrel = 1
+ pkgrel = 2
url = https://www.gog.com/game/battle_isle_platinum
install = historyline-1914-1918-gog.install
arch = any
@@ -19,7 +19,7 @@ pkgbase = historyline-1914-1918-gog
source = fix-permissions.sh
sha256sums = 8b66992e3c9b80853a2df4bb7d0bd74d043bd475aedb4e23b701ea21ff4d0291
sha256sums = 3e23da721bf92236f431cb6d1131ae2d0681afc162baa027167816d164c9567b
- sha256sums = 96426337f51658c94be5ad91a21fefcec936d73e35d66a27e79ef69e93ddc428
+ sha256sums = 1cf2f67556ca4ba5396588c5d4eaf1b22776e4e3a32908e3472cb4c342927577
sha256sums = 6b82ae24bc2815299b7bc894f6186589779c9f9dd3b3bba7340268d502d098e7
sha256sums = 50b601b33522677a9bcaf23edc833329067bb87ccda33039c0b95f0d4ddca578
sha256sums = 8cb0a355c97b243e495509fd63191ba93b8e2e89fc45bf636938f691580102d0
diff --git a/PKGBUILD b/PKGBUILD
index ebfd40990f11..78d22c27aa65 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=historyline-1914-1918-gog
pkgver=1.0
-pkgrel=1
+pkgrel=2
pkgdesc="A turn-based tactics game which takes the player through various battles of the First World War."
url="https://www.gog.com/game/battle_isle_platinum"
license=('custom:eula')
@@ -22,7 +22,7 @@ source=("setup_battle_isle_historyline_1914-1918_${pkgver}_(28043).exe"::"gogdow
sha256sums=('8b66992e3c9b80853a2df4bb7d0bd74d043bd475aedb4e23b701ea21ff4d0291'
'3e23da721bf92236f431cb6d1131ae2d0681afc162baa027167816d164c9567b'
- '96426337f51658c94be5ad91a21fefcec936d73e35d66a27e79ef69e93ddc428'
+ '1cf2f67556ca4ba5396588c5d4eaf1b22776e4e3a32908e3472cb4c342927577'
'6b82ae24bc2815299b7bc894f6186589779c9f9dd3b3bba7340268d502d098e7'
'50b601b33522677a9bcaf23edc833329067bb87ccda33039c0b95f0d4ddca578'
'8cb0a355c97b243e495509fd63191ba93b8e2e89fc45bf636938f691580102d0')
diff --git a/historyline-1914-1918-gog.sh b/historyline-1914-1918-gog.sh
index c63cd462f7f4..49095bfb8e5b 100644
--- a/historyline-1914-1918-gog.sh
+++ b/historyline-1914-1918-gog.sh
@@ -10,6 +10,7 @@ cat <<EOF
$script
$script --windowed
+ DOSBOX_CMD=dosbox-x $script
EOF
exit 0
}
@@ -19,6 +20,7 @@ popd() { builtin popd > /dev/null; }
INSTALL_DIR=/opt/historyline-1914-1918
HOME_DIR="$HOME"/.gog/historyline-1914-1918
+DOSBOX_CMD=${DOSBOX_CMD:-dosbox}
if which unionfs &> /dev/null; then
USE_UNIONFS=1
@@ -57,9 +59,9 @@ if [ "$USE_UNIONFS" ]; then
unionfs -o cow,relaxed_permissions "$UPPER_DIR=RW:$LOWER_DIR=RO" "$UNION_DIR"
echo "Launching game within $UNION_DIR"
- pushd "$UNION_DIR" && dosbox "${configs[@]}"
+ pushd "$UNION_DIR" && "$DOSBOX_CMD" "${configs[@]}"
popd && fusermount -u "$UNION_DIR"
else
echo "Launching game within $INSTALL_DIR"
- cd $INSTALL_DIR && dosbox "${configs[@]}"
+ cd $INSTALL_DIR && "$DOSBOX_CMD" "${configs[@]}"
fi