You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-rpg/zsxd/zsxd-1.8.0.ebuild

63 lines
1.4 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/zsxd/zsxd-1.8.0.ebuild,v 1.1 2014/05/22 17:12:33 hasufell Exp $
EAPI=5
inherit eutils gnome2-utils cmake-utils games
DESCRIPTION="A free 2D Zelda fangame parody"
HOMEPAGE="http://www.solarus-games.org/"
SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz"
LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror"
RDEPEND="games-engines/solarus"
DEPEND="app-arch/zip"
DOCS=( ChangeLog readme.txt )
PATCHES=( "${FILESDIR}"/${P}-paths.patch )
src_prepare() {
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DDATADIR="${GAMES_DATADIR}/solarus"
-DBINDIR="${GAMES_BINDIR}"
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png
newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png
# install proper wrapper script
rm -f "${ED%/}${GAMES_BINDIR}"/${PN}
games_make_wrapper ${PN} "solarus \"${GAMES_DATADIR}/solarus/${PN}\""
make_desktop_entry "${PN}" "Zelda: Mystery of Solarus XD"
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}