Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (85 sloc) 2.85 KB
SUMMARY="Simple Text Adventures, The Interpreter"
DESCRIPTION="INSTEAD was designed to make the textographic games. \
These games are a mix of interactive fiction, visual novels and classic \
point & click adventures. Adventure begins!
(Get games from http://instead-games.ru. You can install zip file from the INSTEAD \
'Select game/[...]' menu.
Also, you can just unpack zip file with game in ~/config/settings/Instead/games)"
HOMEPAGE="https://instead-hub.github.io/"
COPYRIGHT="2009-2018 Peter Kosyh"
LICENSE="MIT"
REVISION="4"
SOURCE_URI="https://github.com/instead-hub/instead/releases/download/$portVersion/instead_$portVersion.tar.gz"
CHECKSUM_SHA256="fd3e732e548a36ae85a27ea2e0743fd8c097ab8b613fc6e4b86a762fd15def1f"
PATCHES="instead-$portVersion.patchset"
ADDITIONAL_FILES="instead.rdef.in"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
if [ "$targetArchitecture" = "x86_gcc2" ]; then
SECONDARY_ARCHITECTURES="x86"
fi
PROVIDES="
instead$secondaryArchSuffix = $portVersion
app:Instead = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libluajit_5.1$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libsdl_image$secondaryArchSuffix
lib:libsdl_mixer$secondaryArchSuffix
lib:libsdl_ttf$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libluajit_5.1$secondaryArchSuffix
devel:libsdl$secondaryArchSuffix
devel:libsdl_image$secondaryArchSuffix
devel:libsdl_mixer$secondaryArchSuffix
devel:libsdl_ttf$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
mkdir doc/saved && mv doc/*.pdf doc/*.txt doc/saved
echo "2" | ./configure.sh
mv doc/saved/* doc/ && rm -rf doc/saved
make $jobArgs PREFIX=$appsDir/Instead \
BIN=$appsDir/Instead \
DESTDIR=/ \
DATAPATH=$appsDir/Instead/data \
DOCPATH=$appsDir/Instead/documentation \
ICONPATH=$appsDir/Instead/data/icon
}
INSTALL()
{
make install PREFIX=$appsDir/Instead \
BIN=$appsDir/Instead \
DESTDIR=/ \
DATAPATH=$appsDir/Instead/data \
DOCPATH=$appsDir/Instead/documentation \
ICONPATH=$appsDir/Instead/data/icon
# Clean up some unnecessary things from the package
rm -rf $appsDir/Instead/{share,instead}
mv $appsDir/Instead/sdl-instead $appsDir/Instead/Instead
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/instead.rdef.in > instead.rdef
addResourcesToBinaries instead.rdef $appsDir/Instead/Instead
addAppDeskbarSymlink $appsDir/Instead/Instead INSTEAD
}