add stag package (#425)
authorOliver Schmidhauser <oliver.schmidhauser@gmail.com>
Thu, 1 Sep 2016 11:24:51 +0000 (13:24 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 1 Sep 2016 11:24:51 +0000 (13:24 +0200)
packages/stag/Makefile.patch [new file with mode: 0644]
packages/stag/build.sh [new file with mode: 0644]
packages/stag/stag.c.patch [new file with mode: 0644]

diff --git a/packages/stag/Makefile.patch b/packages/stag/Makefile.patch
new file mode 100644 (file)
index 0000000..0778506
--- /dev/null
@@ -0,0 +1,9 @@
+--- stag/Makefile      2016-08-31 15:10:57.847902802 +0200
++++ Makefile   2016-08-31 15:09:34.507902834 +0200
+@@ -1,5 +1,5 @@
+ CC ?= gcc
+-CFLAGS=-Wall -Werror -Wextra -std=c99 -pedantic -Wno-unused-parameter
++CFLAGS+=-Wall -Werror -Wextra -std=c99 -pedantic -Wno-unused-parameter
+ # D_BSD_SOURCE for strsep
+ LIBS=-lncurses -lm -D_DEFAULT_SOURCE
+ PREFIX ?= /usr/local
diff --git a/packages/stag/build.sh b/packages/stag/build.sh
new file mode 100644 (file)
index 0000000..1989fb6
--- /dev/null
@@ -0,0 +1,9 @@
+TERMUX_PKG_HOMEPAGE=https://github.com/seenaburns/stag
+TERMUX_PKG_DESCRIPTION="Streaming bar graphs. For stats and stuff."
+TERMUX_PKG_VERSION=1.0.0
+TERMUX_PKG_SRCURL=https://github.com/seenaburns/stag/archive/v${TERMUX_PKG_VERSION}.tar.gz
+TERMUX_PKG_FOLDERNAME=stag-$TERMUX_PKG_VERSION
+TERMUX_PKG_DEPENDS="ncurses"
+TERMUX_PKG_BUILD_IN_SRC=yes
+CFLAGS+=" $CPPFLAGS"
+CFLAGS+=" $LDFLAGS"
diff --git a/packages/stag/stag.c.patch b/packages/stag/stag.c.patch
new file mode 100644 (file)
index 0000000..3618c48
--- /dev/null
@@ -0,0 +1,11 @@
+--- stag/stag.c        2016-08-31 15:03:32.627902972 +0200
++++ stag.c     2016-08-31 15:18:34.487902628 +0200
+@@ -87,7 +87,7 @@
+   
+   // Read options
+-  char opt;
++  signed char opt;
+   int option_index = 0;
+   struct option long_options[] =
+   {