From b654bba2d04fec7e0b7ea75c598f1a47d7d53bb4 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 2 Feb 2019 19:23:21 +0100 Subject: [PATCH] monsterz, fix build, credits to Vrindag (#3587) --- games-puzzle/monsterz/licenses/WTFPL v2 | 13 +++++ games-puzzle/monsterz/monsterz-0.7.1.recipe | 50 +++++++++++++++++++ .../monsterz/patches/monsterz-0.7.1.patchset | 29 +++++++++++ 3 files changed, 92 insertions(+) create mode 100644 games-puzzle/monsterz/licenses/WTFPL v2 create mode 100644 games-puzzle/monsterz/monsterz-0.7.1.recipe create mode 100644 games-puzzle/monsterz/patches/monsterz-0.7.1.patchset diff --git a/games-puzzle/monsterz/licenses/WTFPL v2 b/games-puzzle/monsterz/licenses/WTFPL v2 new file mode 100644 index 000000000..d23841b41 --- /dev/null +++ b/games-puzzle/monsterz/licenses/WTFPL v2 @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + 22 rue de Plaisance, 75014 Paris, France + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/games-puzzle/monsterz/monsterz-0.7.1.recipe b/games-puzzle/monsterz/monsterz-0.7.1.recipe new file mode 100644 index 000000000..a1dfdb9e2 --- /dev/null +++ b/games-puzzle/monsterz/monsterz-0.7.1.recipe @@ -0,0 +1,50 @@ +SUMMARY="A little arcade puzzle game" +DESCRIPTION="Monsterz is a little arcade puzzle game, similar to the famous \ +Bejeweled or Zookeepe. The goal of the game is to create rows of similar \ +monsters, either horizontally or vertically. The only allowed move is the swap \ +of two adjacent monsters, on the condition that it creates a row of three or \ +more. When alignments are cleared, pieces fall from the top of the screen to \ +fill the board again. Chain reactions earn you even more points." +HOMEPAGE="http://sam.zoy.org/monsterz/" +COPYRIGHT="2007 Sam Hocevar, Brendan Rackley, MenTaLguY, Sun Microsystems\ +Michael Speck, David White Mike Kershaw" +LICENSE="WTFPL v2 + GNU GPL v1 + GNU LGPL v2" +REVISION="1" +SOURCE_URI="http://sam.zoy.org/monsterz/monsterz-$portVersion.tar.gz" +CHECKSUM_SHA256="50828b8fa26d107bcc2bd134328f83c905b9f5e124846bdf239daf0eed34973d" +PATCHES="monsterz-$portVersion.patchset" + +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" + +GLOBAL_WRITABLE_FILES="settings/monsterz keep-old" + +PROVIDES=" + monsterz = $portVersion + cmd:monsterz = $portVersion + " +REQUIRES=" + haiku + pygame + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:gcc + cmd:make + " + +BUILD() +{ + make PREFIX=$prefix gamesdir=$binDir \ + datadir=$dataDir scoredir=$settingsDir $jobArgs +} + +INSTALL() +{ + make PREFIX=$prefix gamesdir=$binDir \ + datadir=$dataDir scoredir=$settingsDir install +} diff --git a/games-puzzle/monsterz/patches/monsterz-0.7.1.patchset b/games-puzzle/monsterz/patches/monsterz-0.7.1.patchset new file mode 100644 index 000000000..26a21f1e8 --- /dev/null +++ b/games-puzzle/monsterz/patches/monsterz-0.7.1.patchset @@ -0,0 +1,29 @@ +From f609f6055ea0bcb5025171bd5ef5fb0c6830c5dd Mon Sep 17 00:00:00 2001 +From: begasus +Date: Sat, 26 Jan 2019 16:21:26 +0100 +Subject: don't use chown + + +diff --git a/Makefile b/Makefile +index 6db0ff8..5aa803f 100644 +--- a/Makefile ++++ b/Makefile +@@ -42,7 +42,6 @@ graphics/logo.png: graphics/graphics.svg + install: all + mkdir -p $(DESTDIR)$(gamesdir) + cp monsterz $(DESTDIR)$(gamesdir)/ +- chown root:games $(DESTDIR)$(gamesdir)/monsterz + chmod g+s $(DESTDIR)$(gamesdir)/monsterz + mkdir -p $(DESTDIR)$(pkgdatadir)/graphics + mkdir -p $(DESTDIR)$(pkgdatadir)/sound +@@ -51,7 +50,6 @@ install: all + cp $(SOUND) $(MUSIC) $(DESTDIR)$(pkgdatadir)/sound/ + mkdir -p $(DESTDIR)$(scoredir) + test -f $(DESTDIR)$(scorefile) || echo "" > $(DESTDIR)$(scorefile) +- chown root:games $(DESTDIR)$(scorefile) + chmod g+w $(DESTDIR)$(scorefile) + + uninstall: +-- +2.19.1 +