void-packages/srcpkgs/rocksndiamonds/template

28 lines
1.0 KiB
Bash

# 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
}