From 139a6fc783aead804e5a360985d164523dc85702 Mon Sep 17 00:00:00 2001 From: David Martinez Date: Wed, 8 Jun 2016 00:14:41 +0200 Subject: [PATCH] Added calcurse package --- packages/calcurse/build.sh | 9 +++++++++ packages/calcurse/io.c.patch | 8 ++++++++ packages/calcurse/notify.c.patch | 8 ++++++++ packages/calcurse/ui-calendar.c.patch | 8 ++++++++ 4 files changed, 33 insertions(+) create mode 100644 packages/calcurse/build.sh create mode 100644 packages/calcurse/io.c.patch create mode 100644 packages/calcurse/notify.c.patch create mode 100644 packages/calcurse/ui-calendar.c.patch diff --git a/packages/calcurse/build.sh b/packages/calcurse/build.sh new file mode 100644 index 000000000..049db9421 --- /dev/null +++ b/packages/calcurse/build.sh @@ -0,0 +1,9 @@ +TERMUX_PKG_HOMEPAGE=http://calcurse.org/ +TERMUX_PKG_DESCRIPTION="calcurse is a calendar and scheduling application for the command line" +TERMUX_PKG_VERSION=4.1.0 +TERMUX_PKG_SRCURL=http://calcurse.org/files/calcurse-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_DEPENDS="ncurses" + +termux_step_pre_configure() { + export ac_cv_lib_pthread_pthread_create=yes +} \ No newline at end of file diff --git a/packages/calcurse/io.c.patch b/packages/calcurse/io.c.patch new file mode 100644 index 000000000..f7c6b9868 --- /dev/null +++ b/packages/calcurse/io.c.patch @@ -0,0 +1,8 @@ +--- ../../cache/calcurse-4.1.0/src/io.c 2016-03-27 12:26:18.000000000 +0200 ++++ ./src/io.c 2016-05-09 00:00:16.402558225 +0200 +@@ -1430,4 +1430,3 @@ void io_stop_psave_thread(void) + io_save_mutex_lock(); +- pthread_cancel(io_t_psave); +- pthread_join(io_t_psave, NULL); ++ pthread_kill(io_t_psave, 0); + io_save_mutex_unlock(); diff --git a/packages/calcurse/notify.c.patch b/packages/calcurse/notify.c.patch new file mode 100644 index 000000000..eacd8379c --- /dev/null +++ b/packages/calcurse/notify.c.patch @@ -0,0 +1,8 @@ +--- ../../cache/calcurse-4.1.0/src/notify.c 2016-03-27 12:26:18.000000000 +0200 ++++ ./src/notify.c 2016-05-09 00:01:31.495324279 +0200 +@@ -193,4 +193,3 @@ void notify_stop_main_thread(void) + if (notify_t_main) { +- pthread_cancel(notify_t_main); +- pthread_join(notify_t_main, NULL); ++ pthread_kill(notify_t_main, 0); + } diff --git a/packages/calcurse/ui-calendar.c.patch b/packages/calcurse/ui-calendar.c.patch new file mode 100644 index 000000000..6b163a349 --- /dev/null +++ b/packages/calcurse/ui-calendar.c.patch @@ -0,0 +1,8 @@ +--- ../../cache/calcurse-4.1.0/src/ui-calendar.c 2016-03-27 12:26:18.000000000 +0200 ++++ ./src/ui-calendar.c 2016-05-09 00:01:52.327536161 +0200 +@@ -145,4 +145,3 @@ void ui_calendar_stop_date_thread(void) + if (ui_calendar_t_date) { +- pthread_cancel(ui_calendar_t_date); +- pthread_join(ui_calendar_t_date, NULL); ++ pthread_kill(ui_calendar_t_date, 0); + }