summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Riedel2016-07-09 20:56:37 +0200
committerSebastian Riedel2016-07-09 20:56:37 +0200
commit4ab651ee5157f1499fe03cc9de990e238f02a859 (patch)
tree5a372abf56bf8bf3eb698564ad1d49a0f57b5ac1
downloadaur-4ab651ee5157f1499fe03cc9de990e238f02a859.tar.gz
extracts game date and renames it so it is usable with rct2
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD45
-rw-r--r--rct2-data-gog.install10
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..70c74acf2cf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = rct2-data-gog
+ pkgdesc = RoallerCoaster Tycoon 2 is a theme park simulation game (gog.com version)
+ pkgver = 2.0.0.6
+ pkgrel = 1
+ url = https://www.gog.com/game/rollercoaster_tycoon_2
+ install = rct2-data-gog.install
+ arch = any
+ license = custom: commercial
+ makedepends = innoextract
+ optdepends = openrct2: to play it natively
+ source = setup.exe::gogdownloader://rollercoaster_tycoon_2/en1installer0
+ sha256sums = 0587ec988c637497b63110e302b91c1d2dbd2d418ee1b5983c872b0c0a410b53
+
+pkgname = rct2-data-gog
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b710c4f6e40
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: basxto <archlinux basxto de>
+# based on theme-hospital-gog
+
+pkgname=rct2-data-gog
+pkgver=2.0.0.6
+pkgrel=1
+pkgdesc="RoallerCoaster Tycoon 2 is a theme park simulation game (gog.com version)"
+url="https://www.gog.com/game/rollercoaster_tycoon_2"
+license=('custom: commercial')
+arch=('any')
+makedepends=('innoextract')
+optdepends=('openrct2: to play it natively')
+install=$pkgname.install
+source=("setup.exe"::"gogdownloader://rollercoaster_tycoon_2/en1installer0")
+sha256sums=('0587ec988c637497b63110e302b91c1d2dbd2d418ee1b5983c872b0c0a410b53')
+PKGEXT=".pkg.tar"
+
+# You need to download the gog.com installer file to this directory ($PWD),
+# either manually or with lgogdownloader. You can also configure DLAGENTS in
+# makepkg.conf to auto-download.
+#
+# The following is just a fallback to the above to notify the user:
+DLAGENTS+=('gogdownloader::/usr/bin/awk BEGIN{print"Please\ download\ the\ file\ \\""\ substr("%o",1,length("%o")-5)\ "\\"\ manually\\nor\ setup\ a\ gogdownloader://\ DLAGENT\ in\ makepkg.conf!\ Read\ this\ PKGBUILD\ for\ more\ information.";exit\ 1}')
+
+prepare() {
+ # extract installer
+ innoextract -e -L -d "$srcdir" setup.exe
+
+}
+
+package() {
+ # data
+ install -d "$pkgdir"/usr/share/$pkgname
+ cd app
+ #see https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files
+ cp -r objdata "$pkgdir"/usr/share/$pkgname/ObjData
+ cp -r scenarios "$pkgdir"/usr/share/$pkgname/Scenarios
+ install -d "$pkgdir"/usr/share/$pkgname/Data
+ cp data/{g1,css{{1..9},{11..15},{17..46}}}.dat "$pkgdir"/usr/share/$pkgname/Data
+ # doc + licenses
+ install -d "$pkgdir"/usr/share/{doc,licenses}/$pkgname
+ install -m644 {readme.txt,manual.pdf} "$pkgdir"/usr/share/doc/$pkgname
+ install -m644 ../tmp/{gog_,}eula.txt "$pkgdir"/usr/share/licenses/$pkgname
+
+}
diff --git a/rct2-data-gog.install b/rct2-data-gog.install
new file mode 100644
index 00000000000..dfe025209b9
--- /dev/null
+++ b/rct2-data-gog.install
@@ -0,0 +1,10 @@
+
+post_install() {
+ echo "You need OpenRCT2 to play this game!"
+ echo "When you start OpenRCT2 the first time, you need"
+ echo "to choose the game folder '/usr/share/rct2-data-gog'."
+}
+
+post_upgrade() {
+ post_install
+}