Search:  
Gentoo Wiki

Ucpt:Games-adventure/kq2/kq2-2.0.ebuild

#

Image:Ebuild_file.png Games-adventure/kq2/kq2-2.0.ebuild

Download - Bugs - Discussion - History

Back to the Index

Does not run with ags-bin under Linux/x86. Maybe wine will make it run properly somewhen.

inherit eutils games

DESCRIPTION="Kings Quest 2 (VGA)"
SRC_URI="http://www.darkestlight.net/agdigames/kq2vga20.exe http://www.darkestlight.net/agdigames/kq2musicpack.exe http://www.darkestlight.net/agdigames/kq2speechpack.exe"
HOMEPAGE="http://www.agdinteractive.com/"

SLOT=""
LICENSE="freedist"
KEYWORDS="~x86"
IUSE=""

DEPEND=">=games-engines/ags-bin-2.70
	>=app-emulation/wine-20050111"

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
	for F in ${A}; do
		cp ${DISTDIR}/${F} ${D}${SHAREDIR}/.
	done
	
	# setup user-space installer info
	cd ${D}${SHAREDIR}

cat > wine_user_setup_exe << EOF
kq2vga20.exe
kq2musicpack.exe
kq2speechpack.exe
EOF

cat > ac2game_dat_exe << EOF
KQ2VGA.exe
EOF

	# 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/kq2/kq2-2.0.ebuild"

Last modified: Tue, 16 Aug 2005 07:05:00 +0000 Hits: 2,434