# Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author jano lukac # $HEADER$ #P= levels="Chaos Holidays Ph33r Runes" A="${P}.tar.gz" S=${WORKDIR}/${P} DESCRIPTION="Breakout clone written with the SDL library" SRC_URI="http://ftp1.sourceforge.net/lgames/${A}" for x in $levels; do SRC_URI="$SRC_URI http://lgames.sourceforge.net/games/LBreakout2/levels/${x}" done HOMEPAGE="http://lgames.sourceforge.net" DEPEND=">=media-libs/libsdl-1.1.5 media-libs/sdl-mixer" src_unpack() { unpack ${P}.tar.gz for x in ${levels}; do cp ${DISTDIR}/${x} ${S} done cd ${S} } src_compile() { ./configure \ --prefix=/usr \ --with-doc-path=/usr/share/doc/${P} \ --host=${CHOST} || die emake || die } src_install () { dodir /var/lib/games make DESTDIR=${D} install || die insinto /usr/share/games/lbreakout2/levels doins ${levels} dodoc AUTHORS COPYING README TODO ChangeLog }