I've been hammering out a PKGBUILD for Legend of Grimrock for Arch Linux.
You'll need to download the tarball from gog and put it next to the PKGBUILD, then run makepkg.
For now it's not autodownloading from gog, but I'm kinda working on that.
Also, it won't create a desktop shortcut because I'm not using a Desktop Environment that supports them, but maybe someone will patch that in.
# Maintainer: lynxcore <aur[at]lynxcore[dot]org>
pkgname=gog-legend-of-grimrock
pkgdesc='A 3D grid-based dungeon crawler inspired by classic 1980s and 1990s action role-playing games Dungeon Master, Eye of the Beholder and Ultima Underworld. GoG Version, not officially supported.'
url='
http://www.gog.com/game/legend_of_grimrock'
pkgver=1.0.0.3
pkgrel=1
arch=(i686 x86_64)
license=(custom)
PKGEXT=.pkg.tar
depends=()
optdepends=()
#source=(
https://secure.gog.com/downlink/legend_of_grimrock/en3patch1)
source=(legend_of_grimrock_$pkgver.tar.gz)
sha256sums=('a788b20caaffca65fa111cd1b145391f6fdbb28b76ba0b99f96fcfd73b7fd946')
package() {
# create the dir to hold the game
_base=/opt/gog/
_target=legend_of_grimrock
mkdir -p $pkgdir$_base
# unpack the tarball
tar xzf legend_of_grimrock_$pkgver.tar.gz -C $pkgdir$_base
cd $pkgdir$_base
mv Legend\ of\ Grimrock $_target
# create the launcher symlink
mkdir -p $pkgdir/usr/bin/
cat << EOF > $pkgdir/usr/bin/grimrock
#!/bin/bash
/opt/gog/legend_of_grimrock/start.sh
EOF
chmod +x $pkgdir/usr/bin/grimrock
# for later - create a desktop shortcut
#install -D $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}
Provided As-Is, no warranty, may screw your system, not affiliated in any way, shape or form with GoG.com etc yadda yadda.
Have Fun with it.