# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit eutils games DESCRIPTION="a humorous spoof of fantasy role-playing video games" HOMEPAGE="http://www.thebardstale.com/" SRC_URI="TheBardsTale_linux_${PV}.tar.gz" RESTRICT="fetch" LICENSE="as-is" SLOT="0" KEYWORDS="amd64 ~x86 -*" IUSE="" RDEPEND="media-libs/openal[abi_x86_32(-)] sys-libs/zlib[abi_x86_32(-)] x11-libs/libX11[abi_x86_32(-)] x11-libs/libXau[abi_x86_32(-)] x11-libs/libXdmcp[abi_x86_32(-)] x11-libs/libXext[abi_x86_32(-)] x11-libs/libXinerama[abi_x86_32(-)] x11-libs/libXpm[abi_x86_32(-)] x11-libs/libxcb[abi_x86_32(-)] virtual/opengl" S="${WORKDIR}/The Bard's Tale" GAMEDIR="${GAMES_PREFIX_OPT}/${PN}" BIN="BardTale" pkg_nofetch() { einfo "" einfo "Please buy and download \"${SRC_URI}\"" einfo "and move/link it to \"${DISTDIR}\"" einfo "" } src_install() { # Install data exeinto "${GAMEDIR}" insinto "${GAMEDIR}" doexe ${BIN} doins -r movies res # Install shortcut games_make_wrapper "${BIN}" "./${BIN}" "${GAMEDIR}" make_desktop_entry "${BIN}" "The Bard's Tale" "${BIN}" prepgamesdirs } pkg_postinst() { echo einfo "To play The Bard's Take, run:" einfo "${BIN}" echo einfo "Note: The original Bard's Tale games included as a bonus will not launch due" einfo "to bugs in the main game. To play, you'll need to use the KEGS emulator" einfo "to launch the games separately. Further details can be found here:" einfo "https://steamcommunity.com/app/41900/discussions/0/810938082715451774/" echo }