New package: opensurge-0.5.1.2

Closes #18381
This commit is contained in:
Andrew Benson 2020-01-18 15:18:46 -06:00 committed by Johannes
parent 6f4d5bf984
commit 10c0c686fa
4 changed files with 52 additions and 0 deletions

1
srcpkgs/opensurge-data Symbolic link
View file

@ -0,0 +1 @@
opensurge

View file

@ -0,0 +1,11 @@
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -651,7 +651,7 @@
# Installing on *nix
IF(UNIX)
INSTALL(CODE "MESSAGE(\"Installing ${GAME_NAME} ${GAME_VERSION}... Make sure that you have the appropriate privileges.\")")
- INSTALL(TARGETS "${GAME_UNIXNAME}" RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}")
+ INSTALL(TARGETS "${GAME_UNIXNAME}" RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
INSTALL(FILES LICENSE README.md CHANGES.md logo.png surge.png surge.rocks DESTINATION "${GAME_DATADIR}")
INSTALL(DIRECTORY characters scripts sprites config images levels musics quests samples scripts themes languages fonts licenses DESTINATION "${GAME_DATADIR}" PATTERN ".git" EXCLUDE)
IF(DESKTOP_INSTALL)

View file

@ -0,0 +1,18 @@
--- src/core/zip/zip.h.orig
+++ 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

View file

@ -0,0 +1,22 @@
# Template file for 'opensurge'
pkgname=opensurge
version=0.5.1.2
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="allegro5-devel surgescript-devel"
depends="opensurge-data>=0"
short_desc="Retro platformer inspired by Sonic"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://opensurge2d.org/"
distfiles="https://github.com/alemart/opensurge/archive/v${version}.tar.gz"
checksum=d060e3215231741ce0b4e5b897af52f8755c57660c8a33856bf921c83af18ba2
opensurge-data_package() {
short_desc+=" - game data"
archs=noarch
pkg_install() {
vmove usr/share/games
}
}