diff options
Diffstat (limited to 'games-arcade/supermeatboy/supermeatboy-2013.11.11.ebuild')
-rw-r--r-- | games-arcade/supermeatboy/supermeatboy-2013.11.11.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/games-arcade/supermeatboy/supermeatboy-2013.11.11.ebuild b/games-arcade/supermeatboy/supermeatboy-2013.11.11.ebuild new file mode 100644 index 0000000..fc0f046 --- /dev/null +++ b/games-arcade/supermeatboy/supermeatboy-2013.11.11.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit versionator + +MY_PN=SuperMeatBoy +MY_PV=$(version_format_string '${2}${3}${1}') + +DESCRIPTION="A platformer where you play as an animated cube of meat" +HOMEPAGE="http://www.supermeatboy.com/" +SRC_URI="${PN}-linux-${MY_PV}-bin" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="+system-mariadb" + +RESTRICT="fetch" + +DEPEND="app-arch/zip" +RDEPEND=" + ${DEPEND} + media-libs/openal + media-libs/libsdl2 + system-mariadb? ( <dev-db/mariadb-connector-c-3.0 ) +" + +S="${WORKDIR}/data" +GAMEDIR="/usr/share/${P}" + +pkg_nofetch() { + einfo "Please download ${A}" + einfo "from your personal page in Humble Indie Bundle site" + einfo "(http://www.humblebundle.com)" + einfo "and place it to ${DESTDIR}" +} + +src_unpack() { + # self unpacking zip archive; unzip warns about the exe stuff + # (taken from lugaru ebuild) + local a=${DISTDIR}/${A} + echo ">>> Unpacking ${A} to ${PWD}" + unzip -q "${a}" + [ $? -gt 1 ] && die "unpacking failed" +} + +src_install() { + insinto "${GAMEDIR}" + doins -r resources Levels buttonmap.cfg \ + gameaudio.dat gamedata.dat locdb.txt \ + steam_appid.txt + + insinto "${GAMEDIR}/${ARCH}" + doins "${ARCH}"/libsteam_api.so + + use system-mariadb && + dosym /usr/lib64/mariadb/libmariadb.so "${GAMEDIR}/${ARCH}"/libmariadb.so.1 || + doins "${ARCH}"/libmariadb.so.1 + + exeinto "${GAMEDIR}/${ARCH}" + doexe "${ARCH}/${MY_PN}" + + make_wrapper "${PN}" "./${ARCH}/${MY_PN}" "${GAMEDIR}" "./${ARCH}" + + doicon "${PN}".png + make_desktop_entry "${PN}" "${MY_PN}" "${PN}" + + dodoc README-linux.txt +} |