Merge pull request #2593 from pullmoll/rocksndiamonds

New package: rocksndiamonds-3.3.1.2
This commit is contained in:
Jürgen Buchmüller 2015-09-24 14:52:20 +02:00
commit 0450668a5e
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[Desktop Entry]
Encoding=UTF-8
Name=Rocks'n'Diamonds
Exec=rocksndiamonds
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
Icon=rocksndiamonds

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B

View file

@ -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 <pullmoll@t-online.de>"
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
}