# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games MY_PV="${PV/_/}" S=${WORKDIR}/homeworldsdl-Linux-${MY_PV} DESCRIPTION="Famous space strategy from Relic Entertainment" HOMEPAGE="http://homesource.nekomimicon.net/" SRC_URI="http://homesource.nekomimicon.net/downloads/stuff_for_testing/homeworldsdl-Linux-${MY_PV}.tar.gz http://homesource.nekomimicon.net/downloads/patches/Homeworld105Patch.exe" LICENSE="Relic" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="strip" RDEPEND=">=media-libs/libsdl-1.2.11 virtual/opengl media-libs/sdl-sound" DEPEND="app-arch/unzip ${RDEPEND}" GAMES_CHECK_LICENSE="yes" dir=${GAMES_PREFIX_OPT}/${PN} src_unpack() { unpack homeworldsdl-Linux-${MY_PV}.tar.gz unzip ${DISTDIR}/Homeworld105Patch.exe -d ${S} } src_install() { insinto ${dir} insinto ${GAMES_DATADIR}/${PN} doins devstats.dat Update.big || die "installing data failed" exeinto ${dir} doexe bin/homeworld \ || die "installing the binary failed" # Some useful options games_make_wrapper homeworld './homeworld -pilotView' \ "${dir}" "${dir}" # Adding HW_Data variable for newest files sed -i \ -e "s:exec:HW_Data\=\"${GAMES_DATADIR}\/homeworld\" exec:" \ ${D}/${GAMES_BINDIR}/${PN} || die "sed failed" dodoc INSTALL README || die "installing docs failed" prepgamesdirs } pkg_postinst() { echo einfo "Put Homeworld.big file from installed game to ${GAMES_DATADIR}/${PN}" einfo "And don't forget mount Homeworld CD before play!" echo games_pkg_postinst }