34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'rocksndiamonds'
|
|
pkgname=rocksndiamonds
|
|
version=4.0.0.1
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
hostmakedepends="pkg-config"
|
|
# XXX: switch to SDL2
|
|
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=8649a450419d9cee2ffd9463cae65e7ebcbbf48c2cc945a85d91bbcdd9be3249
|
|
|
|
do_build() {
|
|
CFLAGS+=" -DTARGET_SDL"
|
|
CFLAGS+=" $(sdl-config --cflags)"
|
|
CFLAGS+=" -DRO_GAME_DIR='\"/usr/share/${pkgname}\"'"
|
|
CFLAGS+=" -DRW_GAME_DIR='\"/var/lib/${pkgname}\"'"
|
|
LDFLAGS+=" $(sdl-config --libs)"
|
|
LDFLAGS+=" -lSDL_image -lSDL_mixer -lSDL_net -lm"
|
|
make CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ${makejobs} sdl
|
|
}
|
|
|
|
do_install() {
|
|
vmkdir usr/share/${pkgname}
|
|
cp -aR graphics levels music sounds ${DESTDIR}/usr/share/${pkgname}
|
|
vbin rocksndiamonds
|
|
# Manual page is no longer supplied (WTF)
|
|
# vman rocksndiamonds.1
|
|
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
|
vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps
|
|
}
|