From 87abb342555f93cba4904e73795b9280079f1d5a Mon Sep 17 00:00:00 2001 From: Thibault Meyer Date: Thu, 28 Jan 2021 20:25:23 +0100 Subject: [PATCH] new package: libcunit (#6319) --- packages/libcunit/build.sh | 21 +++++++++++++++++++++ packages/libcunit/doc-makefile-am.patch | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 packages/libcunit/build.sh create mode 100644 packages/libcunit/doc-makefile-am.patch diff --git a/packages/libcunit/build.sh b/packages/libcunit/build.sh new file mode 100644 index 0000000000..6d03419aa3 --- /dev/null +++ b/packages/libcunit/build.sh @@ -0,0 +1,21 @@ +TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/cunit/ +TERMUX_PKG_DESCRIPTION="C Unit Testing Framework" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="Thibault Meyer " +TERMUX_PKG_VERSION=2.1.3 +TERMUX_PKG_SRCURL=https://github.com/Linaro/libcunit/releases/download/2.1-3/CUnit-2.1-3.tar.bz2 +TERMUX_PKG_SHA256=f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214 +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--enable-automated +--enable-basic +--enable-console +" + +termux_step_pre_configure() { + libtoolize --force --copy + aclocal + autoheader + automake --add-missing --include-deps --copy + autoconf +} diff --git a/packages/libcunit/doc-makefile-am.patch b/packages/libcunit/doc-makefile-am.patch new file mode 100644 index 0000000000..82921eef14 --- /dev/null +++ b/packages/libcunit/doc-makefile-am.patch @@ -0,0 +1,22 @@ +diff -uNr CUnit-2.1-3/doc/Makefile.am CUnit-2.1-3.mod/doc/Makefile.am +--- CUnit-2.1-3/doc/Makefile.am 2014-04-24 03:54:45.000000000 +0300 ++++ CUnit-2.1-3.mod/doc/Makefile.am 2021-01-28 21:15:41.452347087 +0200 +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-docdir = $(prefix)/doc/@PACKAGE@ ++docdir = $(prefix)/share/doc/@PACKAGE@ + + doc_DATA = \ + CUnit_doc.css \ +diff -uNr CUnit-2.1-3/doc/headers/Makefile.am CUnit-2.1-3.mod/doc/headers/Makefile.am +--- CUnit-2.1-3/doc/headers/Makefile.am 2014-04-24 03:54:45.000000000 +0300 ++++ CUnit-2.1-3.mod/doc/headers/Makefile.am 2021-01-28 21:10:42.601482549 +0200 +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-dochdrdir = $(prefix)/doc/@PACKAGE@/headers ++dochdrdir = $(prefix)/share/doc/@PACKAGE@/headers + + INCLUDE_FILES = \ + Automated.h \