diff options
Diffstat (limited to 'games-action/chickens')
-rw-r--r-- | games-action/chickens/Manifest | 3 | ||||
-rw-r--r-- | games-action/chickens/chickens-0.2.4-r1.ebuild | 64 | ||||
-rw-r--r-- | games-action/chickens/metadata.xml | 8 |
3 files changed, 75 insertions, 0 deletions
diff --git a/games-action/chickens/Manifest b/games-action/chickens/Manifest new file mode 100644 index 000000000000..6480162e0a70 --- /dev/null +++ b/games-action/chickens/Manifest @@ -0,0 +1,3 @@ +DIST ChickensForLinux-Linux-0.2.4.tar.gz 1455207 BLAKE2B a1388d49ee6291df0cb7f015928fbb2db4e86d611f1beb5513e9152b431991aeb9f0198a371c8391e1b69e2333916809f44000be7d132588f1af265fffd91186 SHA512 d94a70818a766fde443e86184418990d789246c239da01c6c1a2c9e7d8c1d6bb52ed28efbb4ecdb6b079c585e1ba18bc8efcd4f1cbf718ff39757831265c7a78 +EBUILD chickens-0.2.4-r1.ebuild 1468 BLAKE2B 21d52836d7ede8680a5d0ea3530bd69bba922fe523f60ad511ba58026701063be64d354f34304f5ad4c4ac2946e1313c21b8e9dd26d1286bed1f4724da845762 SHA512 20715e652c0c8554eb6a443f689e0074f2f964ad327c16a8aab466aac5e969b22c8c6745101c1eec338a0daa8969a9996a6fbf276019aa68d08900d06d7add55 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-action/chickens/chickens-0.2.4-r1.ebuild b/games-action/chickens/chickens-0.2.4-r1.ebuild new file mode 100644 index 000000000000..258e87e5303c --- /dev/null +++ b/games-action/chickens/chickens-0.2.4-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils user + +MY_P="ChickensForLinux-Linux-${PV}" +DESCRIPTION="Target chickens with rockets and shotguns. Funny" +HOMEPAGE="http://www.chickensforlinux.com/" +SRC_URI="http://www.chickensforlinux.com/${MY_P}.tar.gz" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="mirror bindist" + +DEPEND="<media-libs/allegro-5" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PN} + +pkg_setup(){ + enewgroup gamestat 36 +} + +src_prepare() { + default + + sed -i \ + -e "s:HighScores:/var/games//${PN}/HighScores:" \ + -e "s:....\(.\)\(_\)\(.*.4x0\)\(.\):M\4\2\x42\x6Fn\1s\2:" \ + highscore.cpp HighScores || die + sed -i \ + -e "s:options.cfg:/etc/${PN}/options.cfg:" \ + -e "s:\"sound/:\"/usr/share/${PN}/sound/:" \ + -e "s:\"dat/:\"/usr/share/${PN}/dat/:" \ + main.cpp README || die + sed -i \ + -e '/^CPPFLAGS/d' \ + -e 's:g++:\\$(CXX) \\$(CXXFLAGS) \\$(LDFLAGS):' \ + configure || die +} + +src_configure() { + # econf (sometimes) fails, see https://bugs.gentoo.org/588544 + bash ./configure || die +} + +src_install() { + dobin ${PN} + insinto /usr/share/${PN} + doins -r dat sound + dodoc AUTHOR README + insinto /var/games/${PN} + doins HighScores + insinto /etc/${PN} + doins options.cfg + make_desktop_entry ${PN} Chickens + + fowners root:gamestat /usr/bin/${PN} /var/games/${PN}/HighScores + fperms 2755 /usr/bin/${PN} + fperms 660 /var/games/${PN}/HighScores +} diff --git a/games-action/chickens/metadata.xml b/games-action/chickens/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-action/chickens/metadata.xml @@ -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>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> |