From 581d16c97004b44489850b322693af597f7c7169 Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Fri, 9 Feb 2018 14:11:47 +0300
Subject: [PATCH] nano: Update to 2.9.3

---
 nano/PKGBUILD                              |  6 +++---
 nano/nano-2.3.4-fix-ncurses-location.patch | 24 +++++++++++-----------
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/nano/PKGBUILD b/nano/PKGBUILD
index 9dacb76eed4..c19e3a4c804 100644
--- a/nano/PKGBUILD
+++ b/nano/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Alexey Pavlov <alexpux@gmail.com>
 
 pkgname=nano
-pkgver=2.8.7
+pkgver=2.9.3
 pkgrel=1
 pkgdesc="Pico editor clone with enhancements"
 arch=('i686' 'x86_64')
@@ -20,10 +20,10 @@ source=(https://www.nano-editor.org/dist/v${pkgver%.*}/${pkgname}-${pkgver}.tar.
         2.2.4-wchar.patch
         nano-2.3.4-fix-ncurses-location.patch
         nano-2.8.0-msys2.patch)
-sha256sums=('fbe31746958698d73c6726ee48ad8b0612697157961a2e9aaa83b4aa53d1165a'
+sha256sums=('7783bcfd4b2d5dc0bf64d4bd07b1a19e7ba3c91da881a4249772a36b972d4012'
             'SKIP'
             '60ea17cdaf6ce0dbcf7e21b592e54aa829b34d9aab95a7ad20ddce569605c3d4'
-            '576d365d7e51fc0fd6268a45023de1ea14a9a4d30df9d6c7bd2188f426422bea'
+            '62b0e50470254ed09e55c068b29b72fe784d0552f97fbc5a15b6ee791c9cbd72'
             '9ff4c257f385ae2d77a97b9f332e5022badf703d1e6f00ebc778c282c8323b82')
 validpgpkeys=('8DA6FE7BFA7A418AB3CB2354BCB356DF91009FA7' # "Chris Allegretta <chrisa@asty.org>"
               'A7F6A64A67DA09EF92782DD79DF4862AF1175C5B' # "Benno Schulenberg <bensberg@justemail.net>"
diff --git a/nano/nano-2.3.4-fix-ncurses-location.patch b/nano/nano-2.3.4-fix-ncurses-location.patch
index 21357901012..9cf8779c0d5 100644
--- a/nano/nano-2.3.4-fix-ncurses-location.patch
+++ b/nano/nano-2.3.4-fix-ncurses-location.patch
@@ -1,16 +1,16 @@
---- nano-2.3.4/configure.ac.orig	2014-07-12 15:07:04.197241900 +0100
-+++ nano-2.3.4/configure.ac	2014-07-12 15:08:08.022892500 +0100
-@@ -475,11 +475,11 @@
+--- nano-2.9.2/configure.ac.orig	2018-01-11 15:07:04.197241900 +0100
++++ nano-2.9.2/configure.ac	2018-01-11 15:08:08.022892500 +0100
+@@ -531,11 +531,11 @@
  fi
  
  if eval "test x$CURSES_LIB_NAME = x"; then
--    AC_CHECK_HEADERS(ncurses.h)
-+    AC_CHECK_HEADERS(ncursesw/ncurses.h)
+-	AC_CHECK_HEADERS(ncurses.h)
++	AC_CHECK_HEADERS(ncursesw/ncurses.h)
  
-     if test "x$enable_utf8" != xno; then
- 	OLDLIBS="$LIBS"
--	AC_CHECK_TOOL(NCURSESW_CONFIG, ncursesw5-config, no)
-+	AC_CHECK_TOOL(NCURSESW_CONFIG, ncursesw6-config, no)
- 	if test "x$NCURSESW_CONFIG" != xno; then
- 	    CURSES_LIB=`$NCURSESW_CONFIG --libs`
- 	    LIBS="$CURSES_LIB $LIBS"
+ 	if test "x$enable_utf8" != xno; then
+ 		OLDLIBS="$LIBS"
+-		AC_CHECK_TOOL(NCURSESW_CONFIG, ncursesw5-config, no)
++		AC_CHECK_TOOL(NCURSESW_CONFIG, ncursesw6-config, no)
+ 		if test "x$NCURSESW_CONFIG" != xno; then
+ 			CURSES_LIB=`$NCURSESW_CONFIG --libs`
+ 			LIBS="$CURSES_LIB $LIBS"