monsterz, fix build, credits to Vrindag (#3587)

This commit is contained in:
Schrijvers Luc
2019-02-02 19:23:21 +01:00
committed by waddlesplash
parent d7e9e48917
commit b654bba2d0
3 changed files with 92 additions and 0 deletions

View File

@@ -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.

View File

@@ -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
}

View File

@@ -0,0 +1,29 @@
From f609f6055ea0bcb5025171bd5ef5fb0c6830c5dd Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
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