From 874cbc1ab9e711b18f328da0b4077abae90e5d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phileas=20V=C3=B6cking?= Date: Fri, 6 Oct 2017 15:47:56 +0200 Subject: [PATCH] New package: gtypist-2.9.5 --- srcpkgs/gtypist/patches/ncurses.patch | 96 +++++++++++++++++++++++++++ srcpkgs/gtypist/template | 16 +++++ 2 files changed, 112 insertions(+) create mode 100644 srcpkgs/gtypist/patches/ncurses.patch create mode 100644 srcpkgs/gtypist/template diff --git a/srcpkgs/gtypist/patches/ncurses.patch b/srcpkgs/gtypist/patches/ncurses.patch new file mode 100644 index 00000000000..1e535006b1c --- /dev/null +++ b/srcpkgs/gtypist/patches/ncurses.patch @@ -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 + #else +-#include ++#include + #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 + #else +-#include ++#include + #endif + + #include +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 + #else +-#include ++#include + #endif + + #include +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 + #else +-#include ++#include + #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 + #else +-#include ++#include + #endif + + #include diff --git a/srcpkgs/gtypist/template b/srcpkgs/gtypist/template new file mode 100644 index 00000000000..723bc166446 --- /dev/null +++ b/srcpkgs/gtypist/template @@ -0,0 +1,16 @@ +pkgname=gtypist +version=2.9.5 +revision=1 +short_desc="A universal typing tutor" +maintainer="Phileas Vöcking " +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 +}