From eb81fe3346b2b53573927b3ef72e3785abef8630 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 5 Sep 2016 17:55:39 -0400 Subject: [PATCH] timewarrior: Patch for system include path So that is found in Termux custom include dir. --- disabled-packages/timewarrior/build.sh | 4 +++- disabled-packages/timewarrior/src-CMakeLists.txt.patch | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 disabled-packages/timewarrior/src-CMakeLists.txt.patch diff --git a/disabled-packages/timewarrior/build.sh b/disabled-packages/timewarrior/build.sh index b70ecf60..1733cf01 100644 --- a/disabled-packages/timewarrior/build.sh +++ b/disabled-packages/timewarrior/build.sh @@ -9,7 +9,9 @@ TERMUX_PKG_VERSION=1.0.0 TERMUX_PKG_SRCURL=http://taskwarrior.org/download/timew-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_DEPENDS="libandroid-glob" -LDFLAGS+=" -landroid-glob" +termux_step_pre_configure() { + LDFLAGS+=" -landroid-glob" +} termux_step_configure () { cd $TERMUX_PKG_BUILDDIR diff --git a/disabled-packages/timewarrior/src-CMakeLists.txt.patch b/disabled-packages/timewarrior/src-CMakeLists.txt.patch new file mode 100644 index 00000000..63986abd --- /dev/null +++ b/disabled-packages/timewarrior/src-CMakeLists.txt.patch @@ -0,0 +1,9 @@ +diff -u -r ../timew-1.0.0/src/CMakeLists.txt ./src/CMakeLists.txt +--- ../timew-1.0.0/src/CMakeLists.txt 2016-08-17 17:23:15.000000000 -0400 ++++ ./src/CMakeLists.txt 2016-09-05 17:53:00.643967527 -0400 +@@ -1,4 +1,5 @@ + cmake_minimum_required (VERSION 2.8) ++include_directories(SYSTEM "@TERMUX_PREFIX@/include") + include_directories (${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src + ${CMAKE_SOURCE_DIR}/src/commands -- 2.11.0