Search:  
Gentoo Wiki

Ucpt:Games-adventure/norbisquest2/norbisquest2-1.0.ebuild

#

Image:Ebuild_file.png Games-adventure/norbisquest2/norbisquest2-1.0.ebuild

Download - Bugs - Discussion - History

Back to the Index
inherit eutils games

DESCRIPTION="Norbis Quest 2"
SRC_URI='http://users.atw.hu/pilczstudios/Norbi2.zip'
HOMEPAGE="http://pilczstudios.atw.hu/"

SLOT=""
LICENSE="norbisquest2"
KEYWORDS="x86"
IUSE=""

DEPEND=">=games-engines/ags-bin-2.70"

src_install() {
	cd ${WORKDIR}
	BINDIR=/usr/games/bin
	TITLE=${PN}
	SHAREDIR=/usr/share/games/${TITLE}
	
	mkdir -p ${D}${BINDIR} ${D}${SHAREDIR}
	
	# first install packaged files
	#rmdir ${D}${SHAREDIR}
	mv "Norbis quest 2/"* ${D}${SHAREDIR}
	cd ${D}${SHAREDIR}
	mv acsetup.cfg acsetup.cfg.pkg
cat > acsetup.cfg << EOF
[misc]
cachemax=5120
defaultres=3
screenres=1
windowed=0
forceletterbox=0
antialias=0

[sound]
digiid=-1
midiid=-1
usevox=1
usespeech=1

[language]
translation=English

EOF
	chmod 444 acsetup.cfg
cat > startup.sh << MYEOF
#!/bin/sh
cat > acsetup.cfg << EOF
[misc]
cachemax=5120
defaultres=3
screenres=1
windowed=0
forceletterbox=0
antialias=0

[sound]
digiid=-1
midiid=-1
usevox=1
usespeech=1

[language]
translation=English

EOF
MYEOF
	chmod 755 startup.sh
	rm -f winsetup.exe Uninstal.exe
	mv "Norbi 2.exe" ac2game.dat
		
	# startup script
	cd ${D}${BINDIR}
	ln -s ags-start ${TITLE}
	
	prepgamesdirs
	
	make_desktop_entry ${TITLE} "${DESCRIPTION}"
}
 # 
Retrieved from "http://www.gentoo-wiki.info/Ucpt:Games-adventure/norbisquest2/norbisquest2-1.0.ebuild"

Last modified: Mon, 05 Sep 2005 21:38:00 +0000 Hits: 1,884