Skip to content

Commit

Permalink
games-action/badland: New package
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
chewi committed Dec 10, 2018
1 parent c54671a commit 2cff8f8
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
2 changes: 2 additions & 0 deletions games-action/badland/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST Badland_GotY_121.tar 191872792 BLAKE2B ed1c75d378b742a9f2c82f2ca1055837ff302e1438d4d1a48118ff0caf0455ce0001bb3b90e7c80361672435d2a846d67c94d1c8f28e8ecf8afe87d4177aaa86 SHA512 db018e79fada80c2e6f4ce9dc1f23bf43a8b6257207e52dbb583c484bb71e4e6b0109f750ab8fb7b1e221e2618a1994828c4525d478b7d45bf7d60012f9cf13a
DIST badland.png 42439 BLAKE2B 9439349c8f0a0133fdc042a373a4f625d0988ef4b9de71456ccc1dab4b0f8f56ab386e5f2ba5b322ca5f885c9784c325c9be25d691a740a89dc237afa2216451 SHA512 30387f1906fb35ff9684a8ad28535de7804e456ff545fd69bc6bad3d96c6e2149ca9c5fe19a6dc711f145191d72311538b402d3891971185fc07edabd61ba52f
67 changes: 67 additions & 0 deletions games-action/badland/badland-121.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit desktop eutils gnome2-utils

DESCRIPTION="Atmospheric side-scrolling action adventure platformer set in a gorgeous forest"
HOMEPAGE="http://badlandgame.com"
SRC_URI="Badland_GotY_${PV}.tar
https://dev.gentoo.org/~chewi/distfiles/${PN}.png"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RESTRICT="bindist splitdebug"

QA_PREBUILT="opt/${PN}/*"

DEPEND="
app-admin/chrpath
"

RDEPEND="
dev-db/sqlite:3[abi_x86_32]
media-libs/fontconfig:1.0[abi_x86_32]
media-libs/freetype:2[abi_x86_32]
media-libs/libpng:1.2[abi_x86_32]
media-libs/libsdl2[abi_x86_32,joystick,opengl,sound,threads,video]
net-misc/curl[abi_x86_32]
>=sys-devel/gcc-4.6[cxx]
>=sys-libs/glibc-2.14
virtual/opengl[abi_x86_32]
x11-libs/libX11[abi_x86_32]
"

S="${WORKDIR}"

pkg_nofetch() {
einfo "Please buy and download ${SRC_URI} from:"
einfo " https://www.humblebundle.com/store/badland-game-of-the-year-humble-deluxe-edition"
einfo "and move it to your distfiles directory."
}

src_prepare() {
default

# Replace insecure RPATH.
chrpath -r '$ORIGIN' ${PN} || die
}

src_install() {
local dir=/opt/${PN}

insinto "${dir}"
doins -r Resources

exeinto "${dir}"
doexe ${PN} *.so

make_wrapper ${PN} "./${PN}" "${dir}"
make_desktop_entry ${PN} "Badland"

doicon -s 128 "${DISTDIR}"/${PN}.png
}

pkg_postinst() { gnome2_icon_cache_update; }
pkg_postrm() { gnome2_icon_cache_update; }
8 changes: 8 additions & 0 deletions games-action/badland/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Games Project</name>
</maintainer>
</pkgmetadata>

0 comments on commit 2cff8f8

Please sign in to comment.