New package: gtypist-2.9.5

This commit is contained in:
Phileas Vöcking 2017-10-06 15:47:56 +02:00 committed by Michael Gehring
parent 0b1a3d9d00
commit 874cbc1ab9
2 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,96 @@
diff --git configure.ac configure.ac
index 8742d93..cb0c62c 100644
--- configure.ac
+++ configure.ac
@@ -44,20 +44,20 @@ AC_TYPE_SIGNAL
AC_FUNC_STRTOD
AC_CHECK_FUNCS([__argz_count __argz_next __argz_stringify dcgettext getcwd getwd mempcpy memset munmap nl_langinfo setlocale stpcpy strcasecmp strchr strcspn strdup strstr strtoul])
-# check for libncursesw
+# check for libncurses
-AC_CHECK_HEADER(ncursesw/ncurses.h, HAVE_NCURSESW_H=1)
-AC_CHECK_LIB(ncursesw, add_wch, HAVE_LIBNCURSESW=1)
+AC_CHECK_HEADER(ncurses.h, HAVE_NCURSESW_H=1)
+AC_CHECK_LIB(ncurses, add_wch, HAVE_LIBNCURSESW=1)
if test -n "$HAVE_NCURSESW_H" -a -n "$HAVE_LIBNCURSESW"; then
- LIBS="-lncursesw $LIBS"
+ LIBS="-lncurses $LIBS"
else
- echo -e "Error: both library and header files for the ncursesw library\n"\
+ echo -e "Error: both library and header files for the ncurses library\n"\
"are required to build this package. See INSTALL file for"\
"further information. On Debian/Ubuntu you need to install libncursesw5-dev."
exit 1;
fi
AC_SEARCH_LIBS(cbreak, tinfo, [],
- [AC_MSG_ERROR([Can't find cbreak() in -lncursesw or -ltinfo])])
+ [AC_MSG_ERROR([Can't find cbreak() in -lncurses or -ltinfo])])
# iconv
diff --git src/cursmenu.c src/cursmenu.c
index 1c3990e..f0fc21a 100644
--- src/cursmenu.c
+++ src/cursmenu.c
@@ -24,7 +24,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include "error.h"
diff --git src/error.c src/error.c
index 2022f2b..4ab6741 100644
--- src/error.c
+++ src/error.c
@@ -25,7 +25,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include <stdlib.h>
diff --git src/gtypist.c src/gtypist.c
index 7328ac6..cb9dd61 100644
--- src/gtypist.c
+++ src/gtypist.c
@@ -32,7 +32,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include <time.h>
diff --git src/script.c src/script.c
index ce04d68..f4032e2 100644
--- src/script.c
+++ src/script.c
@@ -24,7 +24,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include "error.h"
diff --git src/utf8.c src/utf8.c
index 8eab3d3..e3194df 100644
--- src/utf8.c
+++ src/utf8.c
@@ -23,7 +23,7 @@
#ifdef HAVE_PDCURSES
#include <curses.h>
#else
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#endif
#include <stdlib.h>

16
srcpkgs/gtypist/template Normal file
View file

@ -0,0 +1,16 @@
pkgname=gtypist
version=2.9.5
revision=1
short_desc="A universal typing tutor"
maintainer="Phileas Vöcking <paspartout@fogglabs.de>"
license="GPL-3"
homepage="https://www.gnu.org/software/gtypist/"
distfiles="$GNU_SITE/gtypist/gtypist-${version}.tar.xz"
checksum="c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977"
build_style=gnu-configure
makedepends="ncurses-devel"
hostmakedepends="automake"
pre_configure() {
autoreconf
}