parent
6f4d5bf984
commit
10c0c686fa
4 changed files with 52 additions and 0 deletions
1
srcpkgs/opensurge-data
Symbolic link
1
srcpkgs/opensurge-data
Symbolic link
|
@ -0,0 +1 @@
|
|||
opensurge
|
11
srcpkgs/opensurge/patches/fix-installdir.patch
Normal file
11
srcpkgs/opensurge/patches/fix-installdir.patch
Normal 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)
|
18
srcpkgs/opensurge/patches/fix_ssize_t.patch
Normal file
18
srcpkgs/opensurge/patches/fix_ssize_t.patch
Normal 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
|
22
srcpkgs/opensurge/template
Normal file
22
srcpkgs/opensurge/template
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue