diff --git a/srcpkgs/rocksndiamonds/files/rocksndiamonds.desktop b/srcpkgs/rocksndiamonds/files/rocksndiamonds.desktop new file mode 100644 index 00000000000..dabefcbfb22 --- /dev/null +++ b/srcpkgs/rocksndiamonds/files/rocksndiamonds.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Rocks'n'Diamonds +Exec=rocksndiamonds +Terminal=false +Type=Application +Categories=Game;ArcadeGame; +Icon=rocksndiamonds diff --git a/srcpkgs/rocksndiamonds/files/rocksndiamonds.png b/srcpkgs/rocksndiamonds/files/rocksndiamonds.png new file mode 100644 index 00000000000..e3f50da3814 Binary files /dev/null and b/srcpkgs/rocksndiamonds/files/rocksndiamonds.png differ diff --git a/srcpkgs/rocksndiamonds/template b/srcpkgs/rocksndiamonds/template new file mode 100644 index 00000000000..81b776284ca --- /dev/null +++ b/srcpkgs/rocksndiamonds/template @@ -0,0 +1,27 @@ +# Template file for 'rocksndiamonds' +pkgname=rocksndiamonds +version=3.3.1.2 +revision=1 +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends="SDL_image-devel SDL_mixer-devel SDL_net-devel" +short_desc="Arcade style game" +maintainer="Jürgen Buchmüller " +license="GPL-2" +homepage="http://www.artsoft.org/rocksndiamonds" +distfiles="http://www.artsoft.org/RELEASES/unix/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=c117c20026299c6c935bd531ef9b0dc767731f600881d12ceb80c831483755f3 + +do_build() { + make ${makejobs} CC="${CC}" \ + CFLAGS="${CFLAGS} -DTARGET_SDL $(sdl-config --cflags) -DRO_GAME_DIR='\"/usr/share/${pkgname}\"' -DRW_GAME_DIR='\"/var/lib/${pkgname}\"'" \ + LDFLAGS="${LDFLAGS} $(sdl-config --libs) -lSDL_image -lSDL_mixer -lSDL_net -lm" +} +do_install() { + vmkdir usr/share/${pkgname} + cp -aR graphics levels music sounds ${DESTDIR}/usr/share/${pkgname} + vbin rocksndiamonds + vman rocksndiamonds.1 + vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications + vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps +}