New recipe: SDL Sopwith (#9929)

* sopwith: Initial recipe

sopwith: Fixed deps and paths

* sopwith: Move to games-arcade and compliant folder

sdl-sopwith: Compliance with Gentoo package folder structure

* sdl_sopwith: Change to compliant package name, remove old recipe

---------

Co-authored-by: Julius Enriquez <win8linux@github.com>
This commit is contained in:
Julius Enriquez
2023-12-31 23:07:42 +08:00
committed by GitHub
parent e56e6fe843
commit 7e0e35dd33

View File

@@ -0,0 +1,64 @@
SUMMARY="Classic bi-plane shoot-'em up"
DESCRIPTION="SDL Sopwith is a port of the game 'Sopwith', which was \
originally by BMB Compuscience Canada. The original author David L. Clark \
has kindly released the sourcecode under the GNU GPL.
Features:
* Uses LibSDL, so will run on most modern operating systems
* Pseudo-functional networking
* PC speaker emulation!"
HOMEPAGE="https://fragglet.github.io/sdl-sopwith"
COPYRIGHT="2001-2023 Simon Howard and contributors"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/fragglet/sdl-sopwith/archive/sdl-sopwith-$portVersion.tar.gz"
CHECKSUM_SHA256="de322507d03259b7afb5818400894d1fa18850abad10c46d4736b2dfd07231d8"
SOURCE_DIR="sdl-sopwith-sdl-sopwith-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sopwith$secondaryArchSuffix = $portVersion
app:sopwith = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libSDL2_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoheader
cmd:autoreconf
cmd:automake
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $appsDir $docDir
mv $binDir/sopwith $appsDir/Sopwith
rm -rf $binDir
mv $prefix/share/doc/* $docDir
rm -rf $prefix/share
addAppDeskbarSymlink $appsDir/Sopwith
}