Browse Source

add stag package (#425)

android-5
Oliver Schmidhauser 8 years ago
committed by Fredrik Fornwall
parent
commit
d26fc718f7
  1. 9
      packages/stag/Makefile.patch
  2. 9
      packages/stag/build.sh
  3. 11
      packages/stag/stag.c.patch

9
packages/stag/Makefile.patch

@ -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

9
packages/stag/build.sh

@ -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"

11
packages/stag/stag.c.patch

@ -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[] =
{
Loading…
Cancel
Save