[ create a new paste ] login | about

Link: http://codepad.org/VZ48FA6J    [ raw code | fork ]

Plain Text, pasted on Jan 23:
# Contributor: Jens Staal <staal1978@gmail.com>

pkgname="legend-of-kyrandia-3"
pkgver="3.0"
pkgrel=6
pkgdesc="A classic adventure game from Abandonia, played in ScummVM."
url='http://www.abandonia.com/en/games/289/Legend+of+Kyrandia+3+-+Malcolms+Revenge%2C+The.html'
arch=('any')
license=('custom-freeware' 'Abandonware')
install='kyrandia3.install'
depends=('scummvm')
optdepends=('abandonia-menu')
source=('http://files.abandonia.com/download.php?game=Legend+of+Kyrandia+3+-+Malcolms+Revenge%2C+The&secure=a273a3468ff31ae8f7ca147289a6aa52&td=1297787834' 'Kyrandia3.jpg' 'http://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-2-1/dists/engine-data/kyra.dat')
md5sums=('afbcd76f02fe6cc5899369b9e2e25107' 'cc0fd0aab74ffc1a9e75de8e651a2f60' 'a81223603341f8c59285753e91665e2f')
_pkgabbrev="Kyrandia3"
_exe="kyra3"
_icon="Kyrandia3.jpg"

build() {
	mkdir -p -m755 "$pkgdir/opt/" 
	mkdir -p -m755 "$pkgdir/opt/abandonia" 
	mkdir -p -m755 "$pkgdir/opt/abandonia/$_pkgabbrev" 
	rm -f $srcdir/download* 
	cp -ar $srcdir/KYRAND3/* "$pkgdir/opt/abandonia/$_pkgabbrev"
	cp -arL $srcdir/kyra.dat $pkgdir/opt/abandonia/$_pkgabbrev/KYRA.DAT
	cp -arL $srcdir/$_icon "$pkgdir/opt/abandonia/$_pkgabbrev" 

	#ok, let's use a script to start the game

	mkdir -p -m755 /$pkgdir/usr/bin/ 

	printf "#!/bin/bash
if whereis scummvm>/dev/null 2>&1;
	then
		mkdir -p ~/.abandonia/$_pkgabbrev
		scummvm -F --savepath=~/.abandonia/$_pkgabbrev --path=/opt/abandonia/$_pkgabbrev/ $_exe
	else
		echo '==> Please get sure to have ScummVM installed and have it in your PATH array.'
  fi
return \$?" >> /$pkgdir/usr/bin/$_pkgabbrev

	chmod +x /$pkgdir/usr/bin/$_pkgabbrev

	# Automatic generation of a .desktop file
	
	mkdir -p -m755 "$pkgdir/usr/share/applications/" 

	printf "[Desktop Entry]
Version=$pkgver
Type=Application
Name=$pkgname
Comment=$pkgdesc
Exec=/usr/bin/$_pkgabbrev
Icon=/opt/abandonia/$_pkgabbrev/$_icon
Categories=Game;Abandonia;
Terminal=false
StartupNotify=false" >> /$pkgdir/usr/share/applications/$_pkgabbrev.desktop
} 



Create a new paste based on this one


Comments: