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

From Gentoo Linux Wiki

Jump to: navigation, search
#

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

Back to the Index
inherit eutils games

DESCRIPTION="Apprentice II: The Knight's Move"
SRC_URI="http://herculeaneffort.adventuredevelopers.com/apprentice2a.zip"
HOMEPAGE="http://herculeaneffort.adventuredevelopers.com/"

SLOT=""
LICENSE="apprentice2"
KEYWORDS="x86"
IUSE=""

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

src_install() {
	cd ${WORKDIR}
	BINDIR=/usr/games/bin
	SHAREDIR=/usr/share/games/apprentice2
	
	mkdir -p ${D}${BINDIR} ${D}${SHAREDIR}
	
	# first install packaged files
	rmdir ${D}${SHAREDIR}
	mv App2 ${D}${SHAREDIR}
	cd ${D}${SHAREDIR}
	mv App2.exe ac2game.dat
	
	# readme/clean-up
	dodoc readme.html
	rm -f readme.html winsetup.exe
	
	# startup script
	cd ${D}${BINDIR}
	ln -s ags-start apprentice2
	
	prepgamesdirs
	
	make_desktop_entry apprentice2 "Apprentice II: The Knight's Move" ${SHAREDIR}/images/logo2.gif
}
 # 
Personal tools