summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--.gitignore9
-rw-r--r--PKGBUILD115
3 files changed, 60 insertions, 72 deletions
diff --git a/.SRCINFO b/.SRCINFO
index df7dedac96a..71d9d3cda55 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,23 +2,23 @@ pkgbase = gog-the-witcher-2-assassins-of-kings
pkgdesc = Enjoy a captivating story, dynamic combat system and beautiful graphics in the second installment in the RPG saga about the Witcher, Geralt of Rivia.
pkgver = 2.2.0.8
pkgrel = 1
- url = http://thewitcher.com/en/witcher2
+ url = http://thewitcher.com/
arch = i686
arch = x86_64
groups = games
groups = gog
license = custom
+ makedepends = p7zip
depends = freetype2
depends = gtk2
depends = sdl2
depends = sdl2_image
- noextract = gog_the_witcher_2_assassins_of_kings_enhanced_edition_2.2.0.8.sh
- source = gog://gog_the_witcher_2_assassins_of_kings_enhanced_edition_2.2.0.8.sh
source = gog-the-witcher-2-assassins-of-kings
source = gog-the-witcher-2-assassins-of-kings.desktop
- sha256sums = 6d6f519db92fe38219b9bb62a6d2dfff0a93e5c24f73cf69ba7d05071361f586
+ source = file://gog_the_witcher_2_assassins_of_kings_enhanced_edition_2.2.0.8.sh
sha256sums = 32fd021d75ad3ed9e55e97b34d5ee08c2bde469028ddee410f933290d2998731
sha256sums = 9f56e0b94fcd60a179a158dac27051c526f0f27b2ebe4224ca68d6ecafee7d47
+ sha256sums = 6d6f519db92fe38219b9bb62a6d2dfff0a93e5c24f73cf69ba7d05071361f586
depends_i686 = lib32-freetype2
depends_i686 = lib32-gtk2
depends_i686 = lib32-sdl2
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4a63cabe233
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+# Blacklist:
+*
+
+# Whitelist:
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!gog-the-witcher-2-assassins-of-kings
+!gog-the-witcher-2-assassins-of-kings.desktop
diff --git a/PKGBUILD b/PKGBUILD
index c5bc748a371..314d1cc3430 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,100 +1,79 @@
-# Maintainer: Dan Beste <dan.ray.beste@gmail.com>
+# Current maintainer(s):
+# - Dan Beste <dan.ray.beste@gmail.com>
+# Previously:
+# - André Fettouhi <a.fettouhi@gmail.com>
-# Previous maintainers:
-# Maintainer : André Fettouhi <a.fettouhi@gmail.com>
-# Contributor: mirandir <mirandir[at)orange(dot]com>
+# Current contributor(s):
+# - None
+# Previously:
+# - mirandir <mirandir[at)orange(dot]com>
-# TODO
+# TODO:
# 1. Get the game working.
# The game is currently unplayable. The launcher will boot, however the
# game crashes when attempting to launch the game. I don't have too much
# time to look into this _yet_, but some stracing may go a long way...
-pkgname=gog-the-witcher-2-assassins-of-kings
+# 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-the-witcher-2-assassins-of-kings'
pkgver=2.2.0.8
pkgrel=1
pkgdesc='Enjoy a captivating story, dynamic combat system and beautiful graphics in the second installment in the RPG saga about the Witcher, Geralt of Rivia.'
-arch=(
- 'i686'
- 'x86_64'
-)
-depends_x86_64=(
- 'freetype2'
- 'gtk2'
- 'sdl2'
- 'sdl2_image'
-)
-depends_i686=(
- 'lib32-freetype2'
- 'lib32-gtk2'
- 'lib32-sdl2'
- 'lib32-sdl2_image'
-)
-url='http://thewitcher.com/en/witcher2'
-license=(
- 'custom'
-)
-groups=(
- 'games'
- 'gog'
-)
+url='http://thewitcher.com/'
+license=('custom')
+groups=('games' 'gog')
+arch=('i686' 'x86_64')
+depends_i686=('lib32-freetype2' 'lib32-gtk2' 'lib32-sdl2' 'lib32-sdl2_image')
+depends_x86_64=('freetype2' 'gtk2' 'sdl2' 'sdl2_image')
+makedepends=('p7zip')
source=(
- "gog://${pkgname//-/_}_enhanced_edition_${pkgver}.sh"
"${pkgname}"
"${pkgname}.desktop"
-)
-DLAGENTS=(
- "gog::/usr/bin/echo %u Download the GOG file to $PWD or set up a gog:// DLAGENT."
-)
-noextract=(
- "gog_the_witcher_2_assassins_of_kings_enhanced_edition_${pkgver}.sh"
+ "file://${pkgname//-/_}_enhanced_edition_${pkgver}.sh"
)
sha256sums=(
- '6d6f519db92fe38219b9bb62a6d2dfff0a93e5c24f73cf69ba7d05071361f586'
'32fd021d75ad3ed9e55e97b34d5ee08c2bde469028ddee410f933290d2998731'
'9f56e0b94fcd60a179a158dac27051c526f0f27b2ebe4224ca68d6ecafee7d47'
+ '6d6f519db92fe38219b9bb62a6d2dfff0a93e5c24f73cf69ba7d05071361f586'
)
prepare() {
- cd "${srcdir}" || exit 1
- # "The ~20GB workaround"
- #
- # prepare() may need some changes upstream... Unzip extracts file.sh fine.
- # Due to some "garbage" (shell script) at the beginning of file.sh, unzip
- # will exit with a reutn code of 1, causing prepare() to fail.
- #
- #The "sane" solution is to repackage file.sh into a "fixed" zip file:
- zip -FFv "../${source[0]}" --out "${pkgname}.zip"
- # Then unzip the result:
- unzip "${pkgname}.zip"
- # Then cleanup after ourselves:
- rm "${pkgname}.zip"
- # Fun...
+ cd "${srcdir}"
+
+ 7z x -tzip -y "${pkgname//-/_}_enhanced_edition_${pkgver}.sh"
}
package() {
cd "${srcdir}"
-
- # Install game
+
install -d "${pkgdir}/opt/${pkgname}/"
- install -d "${pkgdir}/opt/${pkgname}/support"
+ install -d "${pkgdir}/opt/${pkgname}/support/"
install -d "${pkgdir}/usr/bin/"
- cp -r "data/noarch/game/" "${pkgdir}/opt/${pkgname}/"
-
+ cp -r data/noarch/game/ "${pkgdir}/opt/${pkgname}/"
find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} \;
- install -Dm755 "data/noarch/start.sh" \
- "${pkgdir}/opt/${pkgname}/"
- install -Dm755 data/noarch/support/*.{sh,shlib} -t \
- "${pkgdir}/opt/${pkgname}/support"
- # Desktop integration
- install -Dm 644 "data/noarch/support/icon.png" \
- "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
- install -Dm644 "data/noarch/docs/End User License Agreement.txt" \
+ 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 -Dm 644 "${srcdir}/${pkgname}.desktop" \
+ 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"
- install -Dm755 "${srcdir}/${pkgname}" \
- "${pkgdir}/usr/bin/${pkgname}"
}