Skip to content

Commit ae94e2d

Browse files
committed
New package: maelstrom-3.0.7
1 parent b5eec9a commit ae94e2d

4 files changed

Lines changed: 78 additions & 1 deletion

File tree

srcpkgs/Maelstrom/template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Template file for 'Maelstrom'
22
pkgname=Maelstrom
33
version=3.0.7
4-
revision=2
4+
revision=1
55
build_style=gnu-configure
66
hostmakedepends="automake libtool SDL2_net-devel"
77
makedepends="SDL2_net-devel"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff --git a/load.h b/load.h
2+
index 1eaf3a4..ff947c0 100644
3+
--- a/load.h
4+
+++ b/load.h
5+
@@ -94,12 +94,13 @@ public:
6+
directory = SDL_getenv("MAELSTROM_LIB");
7+
if ( directory == NULL ) {
8+
directory = LIBDIR;
9+
-#ifndef macintosh
10+
- if ( access(directory, F_OK) < 0 ) {
11+
- directory = exepath;
12+
- }
13+
-#endif
14+
}
15+
+ /*#ifndef macintosh
16+
+ if ( access(directory, F_OK) < 0 ) {
17+
+ directory = exepath;
18+
+ }
19+
+ #endif */
20+
+
21+
22+
if ( path != NULL )
23+
delete[] path;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/configure.in b/configure.in
2+
index b7f4f84..130f54a 100644
3+
--- a/configure.in
4+
+++ b/configure.in
5+
@@ -102,10 +102,10 @@ case "$target" in
6+
;;
7+
*-*-beos*)
8+
ac_default_prefix=/boot/beos
9+
- GAME_INSTALLDIR="\$(prefix)/games/$PACKAGE"
10+
+ GAME_INSTALLDIR="\$(prefix)/$PACKAGE"
11+
;;
12+
*)
13+
- GAME_INSTALLDIR="\$(prefix)/games/$PACKAGE"
14+
+ GAME_INSTALLDIR="\$(prefix)/$PACKAGE"
15+
;;
16+
esac
17+
AC_SUBST(GAME_INSTALLDIR)

srcpkgs/maelstrom/template

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Template file for 'maelstrom'
2+
pkgname=maelstrom
3+
version=3.0.7
4+
revision=2
5+
build_style=gnu-configure
6+
configure_args="--prefix=/usr/share"
7+
hostmakedepends="pkg-config automake autoconf libtool"
8+
makedepends="SDL2-devel SDL2_net-devel"
9+
short_desc="You pilot your ship through the dreaded \"Maelstrom\" asteroid belt"
10+
maintainer="orahcio <orahcio@gmail.com>"
11+
license="GPL-2.0-only, CC-BY-3.0"
12+
homepage="https://www.libsdl.org/projects/Maelstrom/index.html"
13+
_commit="767d95c"
14+
distfiles="https://github.com/libsdl-org/Maelstrom/archive/${_commit}.tar.gz"
15+
checksum=8e8406d4436f43d98d58ce8e16f184c1de64ecee077113c4dcd98183f2659a5d
16+
17+
pre_configure() {
18+
touch AUTHORS ChangeLog NEWS README
19+
autoreconf -fi
20+
}
21+
22+
do_install() {
23+
# licence and binary
24+
vlicense COPYING.txt
25+
vbin Maelstrom maelstrom
26+
# docfiles
27+
vmkdir usr/share/doc/Maelstrom
28+
cp Docs/*.txt ${DESTDIR}/usr/share/doc/Maelstrom/
29+
# resources
30+
vmkdir usr/share/Maelstrom
31+
cp -r Images ${DESTDIR}/usr/share/Maelstrom/
32+
cp -r Maelstrom_Fonts ${DESTDIR}/usr/share/Maelstrom/
33+
cp -r Maelstrom_Sounds ${DESTDIR}/usr/share/Maelstrom/
34+
cp -r Maelstrom_Sprites ${DESTDIR}/usr/share/Maelstrom/
35+
vcopy README*.txt usr/share/Maelstrom
36+
vcopy icon.* usr/share/Maelstrom
37+
}

0 commit comments

Comments
 (0)