add bvi package (#656)

This commit is contained in:
ElTopo 2017-01-24 16:36:06 -08:00 committed by Fredrik Fornwall
parent 5a3ba094be
commit fad0fde667
2 changed files with 39 additions and 0 deletions

9
packages/bvi/build.sh Normal file
View File

@ -0,0 +1,9 @@
TERMUX_PKG_HOMEPAGE=http://bvi.sourceforge.net/
TERMUX_PKG_DESCRIPTION="The bvi is a display-oriented editor for binary files (hex editor), based on the vi texteditor"
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_VERSION=1.4.0
TERMUX_PKG_SRCURL=http://sourceforge.net/projects/bvi/files/bvi/${TERMUX_PKG_VERSION}/bvi-${TERMUX_PKG_VERSION}.src.tar.gz
TERMUX_PKG_FOLDERNAME=bvi-${TERMUX_PKG_VERSION}
TERMUX_PKG_BUILD_IN_SRC="yes"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_ncursesw6_addnwstr=yes"
TERMUX_PKG_RM_AFTER_INSTALL="share/applications share/pixmaps"

View File

@ -0,0 +1,30 @@
--- src/bm_unix.c~ 2013-08-25 11:59:33.000000000 -0700
+++ src/bm_unix.c 2017-01-03 23:37:36.697875250 -0800
@@ -260,7 +260,6 @@
vgetc()
{
char cha;
- extern int errno;
errno = 0;
if (read(2, &cha, 1) <= 0) {
--- src/bvi.c~ 2014-10-07 13:09:45.000000000 -0700
+++ src/bvi.c 2017-01-03 23:37:09.469794620 -0800
@@ -729,7 +729,6 @@
char *arg;
{
off_t val;
- extern int errno;
char *poi;
errno = 0;
--- src/comm.c~ 2014-01-29 06:54:53.000000000 -0800
+++ src/comm.c 2017-01-03 23:37:18.305820838 -0800
@@ -84,7 +84,6 @@
extern char *name; /* actual filename */
extern char **files; /* used for "next" and "rewind" */
extern int numfiles, curfile;
-extern int errno;
static char oldbuf[CMDSZ]; /** for :!! command **/