# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Author: Phil Bordelon # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.6 2002/05/07 03:58:19 drobbins Exp S=${WORKDIR}/${P} DESCRIPTION="greedy is a fun little ncurses puzzle game." SRC_URI="http://www.kotinet.com/juhamattin/linux/download/${P}.tar.gz" HOMEPAGE="http://www.kotinet.com/juhamattin/linux/index.html" LICENSE="GPL-2" DEPEND="virtual/glibc sys-libs/ncurses" src_compile() { # One source file. emake || die } src_install () { # It wants a scores file. We need to touch one and install it. cd ${S} touch greedy.scores insinto /var/lib/games doins greedy.scores || die # Now, handle the executable and doc. exeinto /usr/bin doexe greedy || die dodoc CHANGES COPYING README TODO || die } pkg_postinst () { # We need to set the permissions correctly on greedy.scores. chown games.games /var/lib/games/greedy.scores || die chmod 664 /var/lib/games/greedy.scores || die # We also need to set the executable to root.games. chown root.games /usr/bin/greedy || die }