barbarian-bin-1.01-r1.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils games
  5. MY_PN=${PN/-bin/}
  6. DESCRIPTION="Save Princess Mariana through one-on-one battles with demonic barbarians"
  7. HOMEPAGE="http://www.tdbsoft.com/"
  8. SRC_URI="http://www.pcpages.com/tomberrr/downloads/${MY_PN}${PV/./}_linux.zip"
  9. LICENSE="CC-BY-NC-ND-2.0"
  10. SLOT="0"
  11. KEYWORDS="-* amd64 x86"
  12. RESTRICT="strip"
  13. IUSE=""
  14. DEPEND="app-arch/unzip"
  15. RDEPEND="sys-libs/libstdc++-v3:5
  16. amd64? ( sys-libs/libstdc++-v3:5[multilib] )
  17. >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-)]"
  18. game_dest="${GAMES_PREFIX_OPT}/${MY_PN}"
  19. QA_PREBUILT="${game_dest:1}/Barbarian"
  20. S=${WORKDIR}
  21. src_install() {
  22. dodir "${game_dest}"
  23. cp -r gfx sounds "${D}${game_dest}/" || die
  24. exeinto "${game_dest}"
  25. doexe Barbarian
  26. dohtml Barbarian.html
  27. games_make_wrapper barbarian ./Barbarian "${game_dest}"
  28. # High-score file
  29. dodir "${GAMES_STATEDIR}"
  30. touch "${D}${GAMES_STATEDIR}/heroes.hoh"
  31. fperms 660 "${GAMES_STATEDIR}/heroes.hoh"
  32. dosym "${GAMES_STATEDIR}/heroes.hoh" "${game_dest}/heroes.hoh"
  33. newicon gfx/sprites/player_attack_2_1.bmp barbarian.bmp
  34. make_desktop_entry barbarian "Barbarian" /usr/share/pixmaps/barbarian.bmp
  35. prepgamesdirs
  36. }