# Template file for 'rocksndiamonds' pkgname=rocksndiamonds version=4.3.0.2 revision=1 build_style=gnu-makefile hostmakedepends="pkg-config" makedepends="SDL2_image-devel SDL2_mixer-devel SDL2_net-devel" short_desc="Arcade style game" maintainer="Orphaned " license="GPL-2.0-only" homepage="http://www.artsoft.org/rocksndiamonds" distfiles="http://www.artsoft.org/RELEASES/unix/${pkgname}/${pkgname}-${version}.tar.gz" checksum=e4540f9b92b4e31e0a75bf1bf7f12fd0b9ec3c9cea69616a33a0cb88db8da1bf replaces="rocksndiamonds-data>=0" do_build() { vsed -i Makefile -e "s;^\(MAKE_CMD = \$(MAKE)\);& ${makejobs};" CFLAGS+=" -DTARGET_SDL2" CFLAGS+=" -DBASE_PATH='\"/usr/share/${pkgname}\"'" CFLAGS+=" $(sdl2-config --cflags)" LDFLAGS+=" $(sdl2-config --libs) -lSDL2_image -lSDL2_mixer -lSDL2_net -lm -lz" 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 vinstall ${FILESDIR}/${pkgname}.desktop 644 usr/share/applications vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps }