Browse Source

Add abduco and dvtm packages

android-5
Fredrik Fornwall 9 years ago
parent
commit
37606179a9
  1. 9
      packages/abduco/build.sh
  2. 9
      packages/dvtm/build.sh
  3. 28
      packages/dvtm/vt.c.patch

9
packages/abduco/build.sh

@ -0,0 +1,9 @@
TERMUX_PKG_HOMEPAGE=http://www.brain-dump.org/projects/abduco/
TERMUX_PKG_DESCRIPTION="Clean and simple terminal session manager"
TERMUX_PKG_VERSION=0.5
TERMUX_PKG_SRCURL=http://www.brain-dump.org/projects/abduco/abduco-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="libutil,dvtm"
export PREFIX=$TERMUX_PREFIX
CFLAGS+=" $CPPFLAGS"

9
packages/dvtm/build.sh

@ -0,0 +1,9 @@
TERMUX_PKG_HOMEPAGE=http://www.brain-dump.org/projects/dvtm/
TERMUX_PKG_DESCRIPTION="Terminal tiling window manager"
TERMUX_PKG_VERSION=0.15
TERMUX_PKG_SRCURL=http://www.brain-dump.org/projects/dvtm/dvtm-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_DEPENDS="libutil, ncurses"
export PREFIX=$TERMUX_PREFIX
CFLAGS+=" $CPPFLAGS"

28
packages/dvtm/vt.c.patch

@ -0,0 +1,28 @@
diff -u -r ../dvtm-0.15/vt.c ./vt.c
--- ../dvtm-0.15/vt.c 2016-01-09 06:40:56.000000000 -0500
+++ ./vt.c 2016-01-21 08:09:47.457953606 -0500
@@ -21,7 +21,9 @@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#ifndef __ANDROID__
#include <langinfo.h>
+#endif
#include <limits.h>
#include <signal.h>
#include <stdio.h>
@@ -1309,10 +1311,14 @@
static void is_utf8_locale(void)
{
+#ifdef __ANDROID__
+ is_utf8 = true;
+#else
const char *cset = nl_langinfo(CODESET);
if (!cset)
cset = "ANSI_X3.4-1968";
is_utf8 = !strcmp(cset, "UTF-8");
+#endif
}
static wchar_t get_vt100_graphic(char c)
Loading…
Cancel
Save