mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/opensurge: new aport
https://opensurge2d.org 2D retro platformer inspired by Sonic games
This commit is contained in:
parent
19da2d399e
commit
b68bbef079
38
testing/opensurge/APKBUILD
Normal file
38
testing/opensurge/APKBUILD
Normal file
@ -0,0 +1,38 @@
|
||||
# Contributor: David Demelier <markand@malikania.fr>
|
||||
# Maintainer: David Demelier <markand@malikania.fr>
|
||||
pkgname=opensurge
|
||||
pkgver=0.5.2.1
|
||||
pkgrel=0
|
||||
pkgdesc="2D retro platformer inspired by Sonic games"
|
||||
url="https://opensurge2d.org"
|
||||
arch="all"
|
||||
license="GPL-3.0-only"
|
||||
makedepends="allegro-dev cmake linux-headers surgescript-dev"
|
||||
source="opensurge-$pkgver.tar.gz::https://github.com/alemart/opensurge/archive/refs/tags/v$pkgver.tar.gz
|
||||
patch-zip.patch"
|
||||
|
||||
build() {
|
||||
if [ "$CBUILD" != "$CHOST" ]; then
|
||||
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||||
fi
|
||||
cmake -B build \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DGAME_BINDIR=/bin \
|
||||
$CMAKE_CROSSOPTS .
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd build
|
||||
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1f407ca33ef6d6bd72848f3db1b0b51f42a19648c1164d3547bdc2126dba310f318527f3bf04af0dfe78998a3a53bf057af92f8b1ff36e33255ee270a97bf2f3 opensurge-0.5.2.1.tar.gz
|
||||
e830dcac54afa3d8042a5ac647dbcf96df065639b425070f7b5874741360996b46a6ffe30b14b6b01f19b9404e2541d020d7bba7caf0c29f2408a2531deba991 patch-zip.patch
|
||||
"
|
||||
21
testing/opensurge/patch-zip.patch
Normal file
21
testing/opensurge/patch-zip.patch
Normal file
@ -0,0 +1,21 @@
|
||||
Fix invalid conditional on recent version of musl.
|
||||
|
||||
Upstream: not yet, need better alternative.
|
||||
--- a/src/core/zip/zip.h
|
||||
+++ b/src/core/zip/zip.h
|
||||
@@ -19,15 +19,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
-#if !defined(_SSIZE_T_DEFINED) && !defined(_SSIZE_T_DEFINED_) && \
|
||||
- !defined(_SSIZE_T) && !defined(_SSIZE_T_) && \
|
||||
- !defined(__ssize_t_defined) && !defined(ssize_t) && \
|
||||
- !defined(_SSIZE_T_DECLARED) && !defined(HAVE_SSIZE_T)
|
||||
-#define _SSIZE_T
|
||||
-#define __ssize_t_defined
|
||||
-typedef long ssize_t; /* byte count or error */
|
||||
-#endif
|
||||
-
|
||||
#ifndef MAX_PATH
|
||||
#define MAX_PATH 32767 /* # chars in a path name including NULL */
|
||||
#endif
|
||||
Loading…
x
Reference in New Issue
Block a user