diff --git a/packages/ne/build.sh b/packages/ne/build.sh
index a8821394c..c9b9e2579 100644
--- a/packages/ne/build.sh
+++ b/packages/ne/build.sh
@@ -1,9 +1,9 @@
TERMUX_PKG_HOMEPAGE=http://ne.di.unimi.it/
TERMUX_PKG_DESCRIPTION="Easy-to-use and powerful text editor"
TERMUX_PKG_MAINTAINER="David MartÃnez @vaites"
-TERMUX_PKG_VERSION=3.1.1
+TERMUX_PKG_VERSION=3.1.2
+TERMUX_PKG_SHA256=31710ce07d6134355f311b249dcd0a8c99c0075b377bbb78a99ee1338d00c6a3
TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/ne-${TERMUX_PKG_VERSION}.tar.xz
-TERMUX_PKG_SHA256=361aeeda179ac2904efe35f0c5d4c90e6e9a246485ddd9fa6fb74581803435e2
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
TERMUX_PKG_RM_AFTER_INSTALL="info/"
TERMUX_PKG_BUILD_IN_SRC=yes
diff --git a/packages/ne/makefile.patch b/packages/ne/makefile.patch
deleted file mode 100644
index 81459669c..000000000
--- a/packages/ne/makefile.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff -u -r ../ne-3.1.1/makefile ./makefile
---- ../ne-3.1.1/makefile 2017-06-04 22:43:12.000000000 +0200
-+++ ./makefile 2017-06-06 09:45:51.221176799 +0200
-@@ -8,10 +8,12 @@
- # and installed under the $(PREFIX) hierarchy. You can even use "make install PREFIX=$HOME/
"
- # to install ne locally into the directory .
-
--PREFIX=/usr/local
-+PREFIX?=/usr/local
-
- PROGRAM = ne
-
-+STRIP?=strip
-+
- ifeq ($(OS), Windows_NT)
- OS := Windows
- else
-@@ -20,7 +22,7 @@
-
-
- build: docs
-- ( cd src; make clean; make NE_GLOBAL_DIR=$(PREFIX)/share/ne; strip ne )
-+ ( cd src; make clean; make NE_GLOBAL_DIR=$(PREFIX)/share/ne; $(STRIP) ne )
-
- docs:
- ( cd doc; make )
diff --git a/packages/ne/src-makefile.patch b/packages/ne/src-makefile.patch
deleted file mode 100644
index f5c8a4829..000000000
--- a/packages/ne/src-makefile.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -u -r ../ne-3.1.1/src/makefile ./src/makefile
---- ../ne-3.1.1/src/makefile 2017-04-04 12:35:59.000000000 +0200
-+++ ./src/makefile 2017-06-06 10:07:56.594364223 +0200
-@@ -28,7 +28,7 @@
- # where ne tries to read system-wide information (configuration
- # files, etc.).
-
--NE_GLOBAL_DIR = /usr/local/share/ne
-+NE_GLOBAL_DIR ?= /usr/local/share/ne
-
- PROGRAM = ne
-
-@@ -81,7 +81,7 @@
- NE_DEBUG=
- NE_TEST=
-
--CC=c99
-+CC?=c99
-
- ifeq ($(CC),gcc)
- GCCFLAGS=-std=c99 -Wall -Wno-parentheses
-@@ -96,7 +96,7 @@
- $(if $(NE_ANSI), -DTERMCAP -DANSI,)
-
-
--LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses)
-+LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lncursesw)
-
- ne: $(OBJS) $(if $(NE_TERMCAP)$(NE_ANSI),$(TERMCAPOBJS),)
- $(CC) $(OPTS) $(LDFLAGS) $(if $(NE_TEST), -coverage -lefence,) $^ -lm $(LIBS) -o $(PROGRAM)