rocksndiamonds: update to 4.2.3.0
This commit is contained in:
parent
88f6a89beb
commit
426dac7f9a
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'rocksndiamonds'
|
# Template file for 'rocksndiamonds'
|
||||||
pkgname=rocksndiamonds
|
pkgname=rocksndiamonds
|
||||||
version=4.2.2.1
|
version=4.2.3.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
|
@ -10,24 +10,23 @@ maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
homepage="http://www.artsoft.org/rocksndiamonds"
|
homepage="http://www.artsoft.org/rocksndiamonds"
|
||||||
distfiles="http://www.artsoft.org/RELEASES/unix/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="http://www.artsoft.org/RELEASES/unix/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=56d3578548cdb439695fad7a8d2339ded9be355969f4fe3e43c89735d9815166
|
checksum=d931216d1dc52d98565dc178881b8e29b992293c043223889d67cd3e6fcf718c
|
||||||
replaces="rocksndiamonds-data>=0"
|
replaces="rocksndiamonds-data>=0"
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
vsed -i Makefile -e "s;^\(MAKE_CMD = \$(MAKE)\);& ${makejobs};"
|
||||||
CFLAGS+=" -DTARGET_SDL2"
|
CFLAGS+=" -DTARGET_SDL2"
|
||||||
CFLAGS+=" -DRO_GAME_DIR='\"/usr/share/${pkgname}\"'"
|
CFLAGS+=" -DRO_GAME_DIR='\"/usr/share/${pkgname}\"'"
|
||||||
CFLAGS+=" -DRW_GAME_DIR='\"/var/lib/${pkgname}\"'"
|
CFLAGS+=" -DRW_GAME_DIR='\"/var/lib/${pkgname}\"'"
|
||||||
CFLAGS+=" $(sdl2-config --cflags)"
|
CFLAGS+=" $(sdl2-config --cflags)"
|
||||||
LDFLAGS+=" $(sdl2-config --libs) -lSDL2_image -lSDL2_mixer -lSDL2_net -lm -lz"
|
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() {
|
do_install() {
|
||||||
vmkdir usr/share/${pkgname}
|
vmkdir usr/share/${pkgname}
|
||||||
cp -aR graphics levels music sounds ${DESTDIR}/usr/share/${pkgname}
|
cp -aR graphics levels music sounds ${DESTDIR}/usr/share/${pkgname}
|
||||||
vbin rocksndiamonds
|
vbin rocksndiamonds
|
||||||
# Manual page is no longer supplied (WTF)
|
|
||||||
# vman rocksndiamonds.1
|
|
||||||
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications
|
||||||
vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps
|
vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue