runescape_launcher: add recipe (#9248)

This commit is contained in:
TheZeldakatze
2023-08-22 07:39:12 +02:00
committed by GitHub
parent 306d281fb8
commit db9fb858a4

View File

@@ -0,0 +1,49 @@
SUMMARY="A launcher script for old-school Runescape"
DESCRIPTION="This is a launcher script that downloads the \
old school Runescape launcher and starts it. \
Please note that runescape itself is closed-source and has a \
proprietary license.\
\
This script is based on https://gitlab.com/coringao/runescape/"
HOMEPAGE="https://github.com/TheZeldakatze/haiku-oldschoolrunescape-launcher"
COPYRIGHT="2023, Maite Gamper \
2016-2020, Carlos Donizete Froes"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://github.com/TheZeldakatze/haiku-oldschoolrunescape-launcher/archive/refs/tags/v0.9.0.tar.gz"
CHECKSUM_SHA256="92f9497095c56a74da87c5f907a57f46cee84c0ac505cb9f41e9015565354863"
SOURCE_DIR="haiku-oldschoolrunescape-launcher-0.9.0"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
runescape_launcher$secondaryArchSuffix
app:Runescape_Launcher
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:7z
cmd:wget
openjdk11${secondaryArchSuffix}_jre
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:resattr
"
BUILD() {
chmod +x Runescape\ Launcher
rc -o runescapeLogo.rsrc runescapeLogo.rdef
resattr -o ./Runescape\ Launcher runescapeLogo.rsrc
}
INSTALL() {
mkdir $appsDir
cp Runescape\ Launcher $appsDir
addAppDeskbarSymlink $appsDir/Runescape\ Launcher "Runescape Launcher"
}