From e3f1ec4a098de33c3d3b3d873d9522ad0d4edb7b Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 27 Dec 2016 07:44:26 +0100 Subject: [PATCH] rocksndiamonds: update to 4.0.0.0 --- srcpkgs/rocksndiamonds/template | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/srcpkgs/rocksndiamonds/template b/srcpkgs/rocksndiamonds/template index 81b776284ca..c3797b495f0 100644 --- a/srcpkgs/rocksndiamonds/template +++ b/srcpkgs/rocksndiamonds/template @@ -1,27 +1,34 @@ # Template file for 'rocksndiamonds' pkgname=rocksndiamonds -version=3.3.1.2 +version=4.0.0.0 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 " license="GPL-2" homepage="http://www.artsoft.org/rocksndiamonds" distfiles="http://www.artsoft.org/RELEASES/unix/${pkgname}/${pkgname}-${version}.tar.gz" -checksum=c117c20026299c6c935bd531ef9b0dc767731f600881d12ceb80c831483755f3 +checksum=041878417bce3c497f1757b507c3150610497e94cff8fb0addfd889c7d105c8e 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" + 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 - vman rocksndiamonds.1 + # 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 }