mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
devilutionx: Bump to version 0.4.0 (#3968)
This commit is contained in:
83
games-rpg/devilutionx/devilutionx-0.4.0.recipe
Normal file
83
games-rpg/devilutionx/devilutionx-0.4.0.recipe
Normal file
@@ -0,0 +1,83 @@
|
||||
SUMMARY="Diablo build for modern operating systems"
|
||||
DESCRIPTION="This new effort is an open-source re-implementation of \
|
||||
Blizzard's Diablo game from 1996 while now working on Linux and other \
|
||||
operating systems nicely."
|
||||
HOMEPAGE="https://github.com/diasurgical/devilutionX"
|
||||
COPYRIGHT="2018 GalaXyHaXz"
|
||||
LICENSE="Public Domain"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/diasurgical/devilutionX/archive/$portVersion.zip"
|
||||
CHECKSUM_SHA256="9bc3e3f17338dea8d8d7d9829de1afe59e06865a5459e09f09b222045154da41"
|
||||
SOURCE_DIR="devilutionX-$portVersion"
|
||||
ADDITIONAL_FILES="devilutionx.sh"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
USER_SETTINGS_FILES="
|
||||
settings/diasurgical/devilution/diablo.ini
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
devilutionx$secondaryArchSuffix = $portVersion
|
||||
app:devilutionx$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_ttf$secondaryArchSuffix
|
||||
lib:libsodium$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libsdl2$secondaryArchSuffix
|
||||
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_ttf$secondaryArchSuffix
|
||||
devel:libsodium$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p haiku_build && cd haiku_build
|
||||
cmake ..
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd haiku_build
|
||||
|
||||
local MAJOR="0"
|
||||
local MIDDLE="4"
|
||||
local MINOR="0"
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
../resources/haiku/devilutionX.rdef.in > devilutionx.rdef
|
||||
|
||||
addResourcesToBinaries devilutionx.rdef devilutionx
|
||||
|
||||
mkdir -p $appsDir/DevilutionX
|
||||
cp devilutionx $appsDir/DevilutionX
|
||||
|
||||
# Installing start-script
|
||||
cp $portDir/additional-files/devilutionx.sh \
|
||||
$appsDir/DevilutionX
|
||||
chmod +x $appsDir/DevilutionX/devilutionx.sh
|
||||
|
||||
# Installing extra-attribs
|
||||
rc devilutionx.rdef
|
||||
resattr -o $appsDir/DevilutionX/devilutionx.sh \
|
||||
devilutionx.rsrc
|
||||
|
||||
addAppDeskbarSymlink $appsDir/DevilutionX/devilutionx.sh "DevilutionX"
|
||||
}
|
||||
Reference in New Issue
Block a user