From 426dac7f9a45c8c18dd32f2ae7b529102c414d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 24 Feb 2021 12:24:12 +0100 Subject: [PATCH] rocksndiamonds: update to 4.2.3.0 --- srcpkgs/rocksndiamonds/template | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/srcpkgs/rocksndiamonds/template b/srcpkgs/rocksndiamonds/template index bd76648459f..5d4cba4d766 100644 --- a/srcpkgs/rocksndiamonds/template +++ b/srcpkgs/rocksndiamonds/template @@ -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 " 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 }