# Template file for 'lbreakout2'
pkgname=lbreakout2
version=2.6.2
distfiles="${SOURCEFORGE_SITE}/lgames/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--disable-rpath --enable-sdl-net
 --localstatedir=/var/games/$pkgname"
make_install_args="doc_dir=/usr/share/doc"
short_desc="Breakout-style arcade game"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=3f58eb2dc657572a22103c836277e653d47bf22453355ee1e3b531a72579d616
long_desc="
 The polished successor to LBreakout offers you a new challenge in more
 than 50 levels with loads of new bonuses (goldshower, joker, explosive
 balls, bonus magnet ...), maluses (chaos, darkness, weak balls, malus
 magnet ...) and special bricks (growing bricks, explosive bricks,
 regenerative bricks, indestructible bricks, chaotic bricks).

 And if you're through with all the levels you can create complete new
 levelsets with the integrated easy-to-use level editor!"

Add_dependency run glibc
Add_dependency run zlib
Add_dependency run libpng
Add_dependency run SDL
Add_dependency run SDL_mixer
Add_dependency run SDL_net
Add_dependency build zlib-devel
Add_dependency build libpng-devel
Add_dependency build SDL-devel
Add_dependency build SDL_mixer-devel
Add_dependency build SDL_net-devel

post_install()
{
	install -Dm755 ${FILESDIR}/lbreakout2.desktop \
		${DESTDIR}/usr/share/applications/lbreakout2.desktop
	install -Dm755 ${FILESDIR}/lbreakout2.png \
		${DESTDIR}/usr/share/pixmaps/lbreakout2.png
}
