Package Details: gog-planescape-torment 1.0.0.6-3

Git Clone URL: https://aur.archlinux.org/gog-planescape-torment.git (read-only)
Package Base: gog-planescape-torment
Description: Sigil... A place with gates that lead anywhere in existence, provided you have the proper key.
Upstream URL: http://www.gog.com/game/planescape_torment
Licenses: custom
Groups: games
Submitter: fettouhi
Maintainer: carstene1ns
Last Packager: fettouhi
Votes: 2
Popularity: 0.000000
First Submitted: 2014-11-11 14:03
Last Updated: 2015-06-11 18:24

Latest Comments

« First ‹ Previous 1 2

onkeldom commented on 2014-11-18 08:24

Sorry to say this mate, but this "update" is bulls***. There are hardcoded "polish" statements in the PKGBUILD, which leaves "other" languages not working in the first place without changing the PKGBUILD. Then - for the (natively speaking) english version of an english game - you need to do an complete rewrite of the PKGBUILD, manually removing every "lang_dir" and "lang_pkg" entries, removing all the "-" chars written before the variables, then correct the gog-installer name and finally do a manual sha256sum of the installer. You got to be kidding ...
Please roll back to your first installer and rethink the approach of multi-language installations for the game.

fettouhi commented on 2014-11-16 09:20

UPDATE: First attempt of adding multilingual support. Just replace polish with your preferred language though for the english version you have to delete all entries with lang_dir and lang_pkg. Feedback is appreciated. Thanks to Noctivivans for his contributions.

fettouhi commented on 2014-11-13 17:47

I just ran your PKGBUILD with the polish version and it launches fine for me without the error you got. I fixed an error in the launcher I noticed that may fix the error you are seeing.

fettouhi commented on 2014-11-13 17:20

The sed command is just to correct the path of the CD's in the Torment.ini file. But I could add language support to the PKGBUILD.

Noctivivans commented on 2014-11-13 13:05

could you add support for other languages into your PKGBUILD? I tried to create PKGBUILD for polish version, unfortunately I get an error "An assertion failed in F:\Torment\Source\chitin\ChDimm.cpp at line number 787" during launch (for now I'm not sure is that wine problem or not).
Also, I'm not sure how to use sed with variables to correctly modify Torment.ini file.

here is my PKGBUILD:

pkgname=gog-planescape-torment
pkgver=1.0.0.6
pkgrel=2
pkgdesc="Sigil... A place with gates that lead anywhere in existence, provided you have the proper key."
arch=("i686" "x86_64")
url="http://www.gog.com/game/planescape_torment"
license=("custom")
lang_dir="(Polish)"
lang_pkg="polish"
groups=("games")
source=("gog_planescape_torment_${lang_pkg}_${pkgver}.tar.gz" "gog-planescape-torment")
sha256sums=('c43418cd934d5a1bc2fb9a25420b02a1ca51d28dfbf77ced296a565a86cc4722'
'b5c8cd606cf5683e5a72949fe5916d3490afdc05d59b3b9d23156d397d0e6af7')
depends=(freetype2 wine)
#options=('!strip')
PKGEXT=.pkg.tar

package() {
mkdir -p "${pkgdir}"/opt/gog/planescape-torment-${lang_pkg}
mv "${srcdir}"/Planescape\ Torment\ ${lang_dir}/prefix/drive_c/GOG\ Games/Planescape\ Torment\ ${lang_dir}/* "${pkgdir}"/opt/gog/planescape-torment-${lang_pkg}
sed -i s/'HD0:=.\+'/'HD0:=C:\\planescape-torment-polish\\'/ "${pkgdir}"/opt/gog/planescape-torment-${lang_pkg}/Torment.ini #FIXME
sed -i s/'CD1:=.\+'/'CD1:=C:\\planescape-torment-polish\\data\\'/ "${pkgdir}"/opt/gog/planescape-torment-${lang_pkg}/Torment.ini #FIXME - replace "polish" with ${lang_pkg}
sed -i s/'CD2:=.\+'/'CD2:=C:\\planescape-torment-polish\\data\\'/ "${pkgdir}"/opt/gog/planescape-torment-${lang_pkg}/Torment.ini #FIXME - replace "polish" with ${lang_pkg}
sed -i s/'CD3:=.\+'/'CD3:=C:\\planescape-torment-polish\\data\\'/ "${pkgdir}"/opt/gog/planescape-torment-${lang_pkg}/Torment.ini #FIXME - replace "polish" with ${lang_pkg}
sed -i s/'CD4:=.\+'/'CD4:=C:\\planescape-torment-polish\\data\\'/ "${pkgdir}"/opt/gog/planescape-torment-${lang_pkg}/Torment.ini #FIXME - replace "polish" with ${lang_pkg}
sed -i s/'CD5:=.\+'/'CD5:=C:\\planescape-torment-polish\\data\\'/ "${pkgdir}"/opt/gog/planescape-torment-${lang_pkg}/Torment.ini #FIXME - replace "polish" with ${lang_pkg}
mkdir -p "${pkgdir}"/usr/bin/
cp -a "${srcdir}/gog-planescape-torment" "${srcdir}/gog-planescape-torment-${lang_pkg}"
sed -i s/"ID=planescape-torment"/"ID=planescape-torment-${lang_pkg}"/g "${srcdir}/gog-planescape-torment-${lang_pkg}"
install -Dm644 "${srcdir}"/Planescape\ Torment\ ${lang_dir}/support/gog-planescape-torment-${lang_pkg}-primary.desktop "${pkgdir}"/usr/share/applications/gog-planescape-torment-${lang_pkg}.desktop
install -Dm644 "${srcdir}"/Planescape\ Torment\ ${lang_dir}/support/gog-planescape-torment-${lang_pkg}.png "${pkgdir}"/usr/share/pixmaps/gog-planescape-torment-${lang_pkg}.png
install -Dm644 "${srcdir}"/Planescape\ Torment\ ${lang_dir}/docs/End\ User\ License\ Agreement.txt "${pkgdir}"/usr/share/licenses/$pkgname-${lang_pkg}/LICENSE
install -Dm755 "${srcdir}/gog-planescape-torment-${lang_pkg}" "${pkgdir}/usr/bin/gog-planescape-torment-${lang_pkg}"
}

here is the content of gog_planescape_torment_polish_1.0.0.6.tar.gz (output of tar -tf gog_planescape_torment_polish_1.0.0.6.tar.gz):
http://pastebin.com/raw.php?i=dzPtaFmH

fettouhi commented on 2014-11-11 14:05

First attempt for PKGBUILD of the new Linux version of Planescape Torment from GOG.com. I have stripped the internal wine from the original package so this needs system wine in order to work. The original zenity launcher has been replaced by adesktop entry. FEEDBACK is welcome as always! I really would like to implement the zenity launcher GOG.com has done into the PKGBUILD at some point.