Search:  
Gentoo Wiki

Ucpt:Games-adventure/apprentice-deluxe/apprentice-deluxe-1.0.ebuild

#

Image:Ebuild_file.png Games-adventure/apprentice-deluxe/apprentice-deluxe-1.0.ebuild

Download - Bugs - Discussion - History

Back to the Index
inherit eutils games

DESCRIPTION="Apprentice Deluxe"
# portage does not yet handle URL encodings correctly, but there is an easy workaround
# by just redefining FETCHCOMMAND and RESUMECOMMAND in /etc/make.conf to something like
# "/usr/bin/wget -t 1 -c -O '${URI##*/}' '${URI}'"
SRC_URI='http://herculeaneffort.adventuredevelopers.com/apprentice%201%20deluxe.zip'
HOMEPAGE="http://herculeaneffort.adventuredevelopers.com/app1.html"

SLOT=""
LICENSE="apprentice-deluxe"
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 "Apprentice 1 Deluxe" ${D}${SHAREDIR}
	cd ${D}${SHAREDIR}
	rm -f winsetup.exe
	mv acsetup.cfg acsetup.cfg.pkg
	mv App.exe ac2game.dat
	mv readme.txt README
	dodoc README
	rm -f README
		
	# 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/apprentice-deluxe/apprentice-deluxe-1.0.ebuild"

Last modified: Thu, 18 Aug 2005 05:43:00 +0000 Hits: 1,891