diff options
author | Constantin Nickel | 2019-05-25 00:26:18 +0200 |
---|---|---|
committer | Constantin Nickel | 2019-05-25 00:26:18 +0200 |
commit | b6cf28c3d896f778c35757da7eba64a101b88647 (patch) | |
tree | 5ec49aad2221bc80ea633fd5edc1b75e8b8b8ac4 | |
parent | 9969a1c6cfed3bdd05da64f207e2f93439a331b3 (diff) | |
download | aur-b6cf28c3d896f778c35757da7eba64a101b88647.tar.gz |
new gog installer version
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | dosboxconstructor_client.conf | 6 | ||||
-rw-r--r-- | dosboxconstructor_server.conf | 5 | ||||
-rw-r--r-- | dosboxconstructor_settings.conf | 15 | ||||
-rw-r--r-- | dosboxconstructor_single.conf | 15 | ||||
-rw-r--r-- | fix-dosbox-mounts.patch | 28 | ||||
-rw-r--r-- | simple-net-config.patch | 43 |
8 files changed, 75 insertions, 98 deletions
@@ -1,31 +1,35 @@ pkgbase = constructor-gog pkgdesc = Control a construction company, and aim to drive the other players out of business. - pkgver = 2.1.0.11 + pkgver = 1.0_cs pkgrel = 1 url = https://www.gog.com/game/constructor install = constructor-gog.install arch = any groups = eula license = custom:eula - makedepends = innoextract + makedepends = innoextract-git makedepends = icoutils depends = dosbox optdepends = unionfs-fuse: mounting game folder to home for savegames and settings - source = setup_constructor_2.1.0.11.exe::gogdownloader://constructor/installer_win_en + source = setup_constructor_1.0_cs_(28162).exe::gogdownloader://constructor/installer_win_en source = constructor-gog.sh source = constructor-gog.desktop + source = dosboxconstructor_single.conf + source = dosboxconstructor_client.conf + source = dosboxconstructor_server.conf + source = dosboxconstructor_settings.conf source = dosbox_windowed.conf source = dosbox_ipx.conf - source = simple-net-config.patch - source = fix-dosbox-mounts.patch source = fix-permissions.sh - sha256sums = 49ac172a3f82671eb89ea9d858f8b2643f820c394446eb1a88564b293a88acfd + sha256sums = 35fcb4970635309697812a6ca9195194ed2e6d0ffa0f70669cb10b6d2845e835 sha256sums = bce1e648feb9e15bcbc33f7dec9a290a01c224a083801d258d9db36f4314c92b sha256sums = 7db33dbe4048286cc08f76de61c2a81eb9d06f0c8c76d532c5e8c50a7952789f + sha256sums = d793964f2d407ddf43f233b72d41571655296c8501123f07ed986e00e6a8d19e + sha256sums = c7cfa75590d3845f7c8fc05098e34f4a5a7183a755199dfbeb9c695aeef63ec1 + sha256sums = 04821c3c843b33415aab80df7b8a8770baf906d76edd8d7024384c639a783a63 + sha256sums = 10c0cbc0ac85fd9071c237a2d5af82a74cda6440e45cad219f469764208c3ed2 sha256sums = 50b601b33522677a9bcaf23edc833329067bb87ccda33039c0b95f0d4ddca578 sha256sums = e90b33464517fb8b8102f3667755302e01fa10b7bec3d660357f802685416ca8 - sha256sums = 7168e67bd3b7308993f12f36c45571681e91c3d51be0561ede0cda9c889a993c - sha256sums = 5eff85a14fa02aca36c0d7bbab89c6993ed2b7b81c23807d0f79d724d6d583db sha256sums = ee6715c4ba84e97ee3d04a4ad00ec1b67439ee8eb4ca2f1fd1000cb47b3f1c92 pkgname = constructor-gog @@ -1,34 +1,38 @@ # Maintainer: Constantin Nickel <constantin dot nickel at gmail dot com> pkgname=constructor-gog -pkgver=2.1.0.11 +pkgver=1.0_cs pkgrel=1 pkgdesc="Control a construction company, and aim to drive the other players out of business." url="https://www.gog.com/game/constructor" license=('custom:eula') groups=('eula') arch=('any') -makedepends=('innoextract' 'icoutils') +makedepends=('innoextract-git' 'icoutils') depends=('dosbox') optdepends=('unionfs-fuse: mounting game folder to home for savegames and settings') install=$pkgname.install -source=("setup_constructor_$pkgver.exe"::"gogdownloader://constructor/installer_win_en" +source=("setup_constructor_${pkgver}_(28162).exe"::"gogdownloader://constructor/installer_win_en" "constructor-gog.sh" "constructor-gog.desktop" + "dosboxconstructor_single.conf" + "dosboxconstructor_client.conf" + "dosboxconstructor_server.conf" + "dosboxconstructor_settings.conf" "dosbox_windowed.conf" "dosbox_ipx.conf" - "simple-net-config.patch" - "fix-dosbox-mounts.patch" "fix-permissions.sh") -sha256sums=('49ac172a3f82671eb89ea9d858f8b2643f820c394446eb1a88564b293a88acfd' +sha256sums=('35fcb4970635309697812a6ca9195194ed2e6d0ffa0f70669cb10b6d2845e835' 'bce1e648feb9e15bcbc33f7dec9a290a01c224a083801d258d9db36f4314c92b' '7db33dbe4048286cc08f76de61c2a81eb9d06f0c8c76d532c5e8c50a7952789f' + 'd793964f2d407ddf43f233b72d41571655296c8501123f07ed986e00e6a8d19e' + 'c7cfa75590d3845f7c8fc05098e34f4a5a7183a755199dfbeb9c695aeef63ec1' + '04821c3c843b33415aab80df7b8a8770baf906d76edd8d7024384c639a783a63' + '10c0cbc0ac85fd9071c237a2d5af82a74cda6440e45cad219f469764208c3ed2' '50b601b33522677a9bcaf23edc833329067bb87ccda33039c0b95f0d4ddca578' 'e90b33464517fb8b8102f3667755302e01fa10b7bec3d660357f802685416ca8' - '7168e67bd3b7308993f12f36c45571681e91c3d51be0561ede0cda9c889a993c' - '5eff85a14fa02aca36c0d7bbab89c6993ed2b7b81c23807d0f79d724d6d583db' 'ee6715c4ba84e97ee3d04a4ad00ec1b67439ee8eb4ca2f1fd1000cb47b3f1c92') # You need to download the gog.com installer file to this directory ($PWD), @@ -40,35 +44,34 @@ DLAGENTS+=('gogdownloader::/usr/bin/awk BEGIN{print"Please\ download\ the\ file\ prepare() { # extract installer (convert files to lowercase, as DOS does not care) - innoextract -e -L -d "$srcdir" setup_constructor_$pkgver.exe + innoextract -e -L -d "$srcdir"/setup "setup_constructor_${pkgver}_(28162).exe" # convert icon - icotool -x app/goggame-1207658826.ico + icotool -x setup/goggame-1207658826.ico # create launchers for _m in client server; do sed "s|Exec=constructor|& --$_m|;s|Name=Constructor|& (${_m^})|" \ $pkgname.desktop > constructor-$_m.desktop done + + cp setup/__support/app/dosboxconstructor.conf "$srcdir" + cp setup/tmp/eula.txt "$srcdir" + # remove bundled dosbox, windows stuff and gog client files - rm -rf app/{dosbox/,*.ico,*.dll,*.zip,__support} - # simplified net config for start script - patch -p1 -i "$srcdir"/simple-net-config.patch - # fix mount directory - patch -p1 -i "$srcdir"/fix-dosbox-mounts.patch + rm -rf setup/{app,commonappdata,dosbox,tmp,goggame-*,*.dll,*.zip,__redist,__support} } package() { # data install -d "$pkgdir"/opt/constructor - cp -r app/* "$pkgdir"/opt/constructor + cp -r setup/* "$pkgdir"/opt/constructor # fix permissions script install -Dm755 fix-permissions.sh "$pkgdir"/opt/constructor # additional dosbox config - install -m644 dosbox_windowed.conf "$pkgdir"/opt/constructor - install -m644 dosbox_ipx.conf "$pkgdir"/opt/constructor + install -m644 *.conf "$pkgdir"/opt/constructor # doc + licenses install -d "$pkgdir"/usr/share/{doc,licenses}/$pkgname ln -s -t "$pkgdir"/usr/share/doc/$pkgname /opt/constructor/manual.pdf - install -m644 tmp/{gog_,}eula.txt "$pkgdir"/usr/share/licenses/$pkgname + install -m644 eula.txt "$pkgdir"/usr/share/licenses/$pkgname # .desktop files and launchers install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/constructor.desktop install -Dm755 $pkgname.sh "$pkgdir"/usr/bin/constructor diff --git a/dosboxconstructor_client.conf b/dosboxconstructor_client.conf new file mode 100644 index 000000000000..18eb0c49f39d --- /dev/null +++ b/dosboxconstructor_client.conf @@ -0,0 +1,6 @@ +[IPX]
+ipx=true
+
+[autoexec]
+IPXNET CONNECT 127.0.0.1 19900
+cls
diff --git a/dosboxconstructor_server.conf b/dosboxconstructor_server.conf new file mode 100644 index 000000000000..8eff1d7ede0e --- /dev/null +++ b/dosboxconstructor_server.conf @@ -0,0 +1,5 @@ +[IPX]
+ipx=true
+
+[autoexec]
+IPXNET STARTSERVER 19900
diff --git a/dosboxconstructor_settings.conf b/dosboxconstructor_settings.conf new file mode 100644 index 000000000000..92e5dc39e585 --- /dev/null +++ b/dosboxconstructor_settings.conf @@ -0,0 +1,15 @@ +[IPX]
+Enable=0
+Connection=0
+ipx=false
+
+[autoexec]
+# Lines in this section will be run at startup.
+
+@ECHO OFF
+mount C "."
+imgmount d "const.gog" -t iso -fs iso
+c:
+cls
+setsound.bat
+exit
\ No newline at end of file diff --git a/dosboxconstructor_single.conf b/dosboxconstructor_single.conf new file mode 100644 index 000000000000..84f675323d3a --- /dev/null +++ b/dosboxconstructor_single.conf @@ -0,0 +1,15 @@ +[IPX]
+Enable=0
+Connection=0
+ipx=false
+
+[autoexec]
+# Lines in this section will be run at startup.
+
+@ECHO OFF
+mount C "."
+imgmount d "const.gog" -t iso -fs iso
+c:
+cls
+game.exe
+exit
\ No newline at end of file diff --git a/fix-dosbox-mounts.patch b/fix-dosbox-mounts.patch deleted file mode 100644 index 436090bb7b6d..000000000000 --- a/fix-dosbox-mounts.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --git a/app/dosboxconstructor_settings.conf b/app/dosboxconstructor_settings.conf ---- a/app/dosboxconstructor_settings.conf -+++ b/app/dosboxconstructor_settings.conf -@@ -7,8 +7,8 @@ ipx=false - # Lines in this section will be run at startup.
-
- @ECHO OFF
--mount C ".."
--imgmount d "..\const.gog" -t iso -fs iso
-+mount C "."
-+imgmount d "const.gog" -t iso -fs iso
- c:
- cls
- setsound.bat
-diff --git a/app/dosboxconstructor_single.conf b/app/dosboxconstructor_single.conf ---- a/app/dosboxconstructor_single.conf -+++ b/app/dosboxconstructor_single.conf -@@ -7,8 +7,8 @@ ipx=false - # Lines in this section will be run at startup.
-
- @ECHO OFF
--mount C ".."
--imgmount d "..\const.gog" -t iso -fs iso
-+mount C "."
-+imgmount d "const.gog" -t iso -fs iso
- c:
- cls
- game.exe
diff --git a/simple-net-config.patch b/simple-net-config.patch deleted file mode 100644 index 938129d3bdb1..000000000000 --- a/simple-net-config.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff --git a/app/dosboxconstructor_client.conf b/app/dosboxconstructor_client.conf ---- a/app/dosboxconstructor_client.conf -+++ b/app/dosboxconstructor_client.conf -@@ -1,16 +1,6 @@ - [IPX]
--Enable=1
--Connection=1
- ipx=true
-
- [autoexec]
--# Lines in this section will be run at startup.
--
--@ECHO OFF
--mount C ".."
--imgmount d "..\const.gog" -t iso -fs iso
--c:
-+IPXNET CONNECT 127.0.0.1 19900
- cls
--IPXNET CONNECT 127.0.0.1
--game.exe
--exit
-diff --git a/app/dosboxconstructor_server.conf b/app/dosboxconstructor_server.conf ---- a/app/dosboxconstructor_server.conf -+++ b/app/dosboxconstructor_server.conf -@@ -1,16 +1,5 @@ - [IPX]
--Enable=1
--Connection=1
- ipx=true
-
- [autoexec]
--# Lines in this section will be run at startup.
--
--@ECHO OFF
--mount C ".."
--imgmount d "..\const.gog" -t iso -fs iso
--c:
--cls
--IPXNET STARTSERVER
--game.exe
--exit -\ No newline at end of file -+IPXNET STARTSERVER 19900
|