mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
pipepanic: move from games-kids to games-puzzle; minor changes. (#606)
* Move pipepanic from games-kids to games-puzzle to follow Gentoo.
* Put pipepanic.rdef in additional-files instead of the patch file.
* Call addResourcesToBinaries instead of rc and xres.
* Reorder sections, fix COPYRIGHT, enable x86_64, drop cmd:xres from
BUILD_REQUIRES, add cmd:{sdl_config,install,cut} to BUILD_PREREQ.
* Install README and do some polishing in BUILD and INSTALL.
This commit is contained in:
71
games-puzzle/pipepanic/pipepanic-0.1.3.recipe
Normal file
71
games-puzzle/pipepanic/pipepanic-0.1.3.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
SUMMARY="A pipe connecting game"
|
||||
DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many \
|
||||
different shaped pipes together as possible within the time given."
|
||||
HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/"
|
||||
COPYRIGHT="2006 TheGreenKnight"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="4"
|
||||
SOURCE_URI="http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-$portVersion-source.tar.gz"
|
||||
CHECKSUM_SHA256="4b02249c92228b03f4cc3c1d999cacf3fe52c16df53c6bf76fc6c1e2caa74318"
|
||||
SOURCE_DIR="pipepanic-$portVersion-source"
|
||||
PATCHES="pipepanic-$portVersion.patch"
|
||||
ADDITIONAL_FILES="pipepanic.rdef"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
pipepanic = $portVersion
|
||||
app:Pipepanic = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libsdl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libsdl
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cut
|
||||
cmd:gcc
|
||||
cmd:install
|
||||
cmd:make
|
||||
cmd:sdl_config
|
||||
"
|
||||
|
||||
USER_SETTINGS_FILES="
|
||||
settings/pipepanic
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make
|
||||
|
||||
MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/pipepanic.rdef \
|
||||
> pipepanic.rdef
|
||||
|
||||
addResourcesToBinaries pipepanic.rdef pipepanic
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
install -m 755 -d $appsDir/Pipepanic $docDir
|
||||
|
||||
install -m 444 -t $appsDir/Pipepanic \
|
||||
ascii15.bmp ascii30.bmp \
|
||||
digits24.bmp digits48.bmp \
|
||||
tiles24.bmp tiles48.bmp
|
||||
|
||||
install -m 444 -t $docDir README
|
||||
install -m 555 -T pipepanic $appsDir/Pipepanic/Pipepanic
|
||||
|
||||
addAppDeskbarSymlink $appsDir/Pipepanic/Pipepanic
|
||||
}
|
||||
Reference in New Issue
Block a user