Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions srcpkgs/maelstrom/patches/00-justlibdir.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/load.h b/load.h
index 1eaf3a4..ff947c0 100644
--- a/load.h
+++ b/load.h
@@ -94,12 +94,13 @@ public:
directory = SDL_getenv("MAELSTROM_LIB");
if ( directory == NULL ) {
directory = LIBDIR;
-#ifndef macintosh
- if ( access(directory, F_OK) < 0 ) {
- directory = exepath;
- }
-#endif
}
+ /*#ifndef macintosh
+ if ( access(directory, F_OK) < 0 ) {
+ directory = exepath;
+ }
+ #endif */
+

if ( path != NULL )
delete[] path;
17 changes: 17 additions & 0 deletions srcpkgs/maelstrom/patches/01-removegamepath.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/configure.in b/configure.in
index b7f4f84..130f54a 100644
--- a/configure.in
+++ b/configure.in
@@ -102,10 +102,10 @@ case "$target" in
;;
*-*-beos*)
ac_default_prefix=/boot/beos
- GAME_INSTALLDIR="\$(prefix)/games/$PACKAGE"
+ GAME_INSTALLDIR="\$(prefix)/$PACKAGE"
;;
*)
- GAME_INSTALLDIR="\$(prefix)/games/$PACKAGE"
+ GAME_INSTALLDIR="\$(prefix)/$PACKAGE"
;;
esac
AC_SUBST(GAME_INSTALLDIR)
37 changes: 37 additions & 0 deletions srcpkgs/maelstrom/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Template file for 'maelstrom'
pkgname=maelstrom
version=3.0.7
revision=2

Check failure on line 4 in srcpkgs/maelstrom/template

View workflow job for this annotation

GitHub Actions / Lint templates

Template Lint

revision should be set to 1 on creation
build_style=gnu-configure
configure_args="--prefix=/usr/share"
hostmakedepends="pkg-config automake autoconf libtool"
makedepends="SDL2-devel SDL2_net-devel"
short_desc="You pilot your ship through the dreaded \"Maelstrom\" asteroid belt"
maintainer="orahcio <orahcio@gmail.com>"
license="GPL-2.0-only, CC-BY-3.0"
homepage="https://www.libsdl.org/projects/Maelstrom/index.html"
_commit="767d95c"
distfiles="https://github.com/libsdl-org/Maelstrom/archive/${_commit}.tar.gz"
checksum=8e8406d4436f43d98d58ce8e16f184c1de64ecee077113c4dcd98183f2659a5d

pre_configure() {
touch AUTHORS ChangeLog NEWS README
autoreconf -fi
}

do_install() {
# licence and binary
vlicense COPYING.txt
vbin Maelstrom maelstrom
# docfiles
vmkdir usr/share/doc/Maelstrom
cp Docs/*.txt ${DESTDIR}/usr/share/doc/Maelstrom/
# resources
vmkdir usr/share/Maelstrom
cp -r Images ${DESTDIR}/usr/share/Maelstrom/
cp -r Maelstrom_Fonts ${DESTDIR}/usr/share/Maelstrom/
cp -r Maelstrom_Sounds ${DESTDIR}/usr/share/Maelstrom/
cp -r Maelstrom_Sprites ${DESTDIR}/usr/share/Maelstrom/
vcopy README*.txt usr/share/Maelstrom
vcopy icon.* usr/share/Maelstrom
}
Loading