rocksndiamonds: update to 4.2.3.0

This commit is contained in:
Jürgen Buchmüller 2021-02-24 12:24:12 +01:00
parent 88f6a89beb
commit 426dac7f9a
1 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'rocksndiamonds'
pkgname=rocksndiamonds
version=4.2.2.1
version=4.2.3.0
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
@ -10,24 +10,23 @@ maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.0-only"
homepage="http://www.artsoft.org/rocksndiamonds"
distfiles="http://www.artsoft.org/RELEASES/unix/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=56d3578548cdb439695fad7a8d2339ded9be355969f4fe3e43c89735d9815166
checksum=d931216d1dc52d98565dc178881b8e29b992293c043223889d67cd3e6fcf718c
replaces="rocksndiamonds-data>=0"
do_build() {
vsed -i Makefile -e "s;^\(MAKE_CMD = \$(MAKE)\);& ${makejobs};"
CFLAGS+=" -DTARGET_SDL2"
CFLAGS+=" -DRO_GAME_DIR='\"/usr/share/${pkgname}\"'"
CFLAGS+=" -DRW_GAME_DIR='\"/var/lib/${pkgname}\"'"
CFLAGS+=" $(sdl2-config --cflags)"
LDFLAGS+=" $(sdl2-config --libs) -lSDL2_image -lSDL2_mixer -lSDL2_net -lm -lz"
make ${makejobs} CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
make CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
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
}