dopewars: add package

This commit is contained in:
Henrik Grimler 2019-10-24 21:59:21 +02:00
parent c528c9a65e
commit 6c0d63d805
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,11 @@
TERMUX_PKG_HOMEPAGE=https://dopewars.sourceforge.io
TERMUX_PKG_DESCRIPTION="Drug-dealing game set in streets of New York City"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=1.5.12
TERMUX_PKG_SRCURL=https://prdownloads.sourceforge.net/dopewars/dopewars-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=23059dcdea96c6072b148ee21d76237ef3535e5be90b3b2d8239d150feee0c19
TERMUX_PKG_DEPENDS="ncurses, glib, pcre"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--without-sdl
"
TERMUX_PKG_RM_AFTER_INSTALL="share/gnome"

View File

@ -0,0 +1,16 @@
--- ../configure.orig 2019-10-24 14:56:07.273121338 +0200
+++ ./configure 2019-10-24 14:58:24.726415961 +0200
@@ -21930,11 +21930,8 @@
LIBS="$ac_save_LIBS"
fi
fi
- GLIB_CFLAGS=""
- GLIB_LIBS=""
- { { echo "$as_me:$LINENO: error: Cannot find glib - aborting" >&5
-echo "$as_me: error: Cannot find glib - aborting" >&2;}
- { (exit 1); exit 1; }; }
+ GLIB_CFLAGS="-I@TERMUX_PREFIX@/include/glib-2.0 -I@TERMUX_PREFIX@/lib/glib-2.0/include"
+ GLIB_LIBS="-lglib-2.0"
fi

View File

@ -0,0 +1,11 @@
--- ../serverside.c.orig 2019-10-24 20:32:11.932674648 +0200
+++ ./src/serverside.c 2019-10-24 20:32:50.810268396 +0200
@@ -800,7 +800,7 @@
dopelog(1, LF_SERVER, _("Maintaining pid file %s"), PidFile);
fprintf(fp, "%ld\n", (long)getpid());
fclose(fp);
- chmod(PidFile, S_IREAD | S_IWRITE);
+ chmod(PidFile, S_IRUSR | S_IWUSR);
} else {
gchar *OpenError = ErrStrFromErrno(errno);
g_warning(_("Cannot create pid file %s: %s"), PidFile, OpenError);