diff options
author | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
commit | d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch) | |
tree | 684a17eebf446aa1adab1097616f1882c8d51568 /repo/cunit | |
parent | d1fc3393cca72e8e432f827f7624e38734fad6dc (diff) |
added deps for qemu
Diffstat (limited to 'repo/cunit')
-rw-r--r-- | repo/cunit/cunit.xibuild | 48 | ||||
-rw-r--r-- | repo/cunit/path-makefile.patch | 31 |
2 files changed, 79 insertions, 0 deletions
diff --git a/repo/cunit/cunit.xibuild b/repo/cunit/cunit.xibuild new file mode 100644 index 0000000..3b4b04f --- /dev/null +++ b/repo/cunit/cunit.xibuild @@ -0,0 +1,48 @@ +#!/bin/sh + +NAME="cunit" +DESC="Automated testing framework for C" + +MAKEDEPS=" automake autoconf libtool bash" + +PKG_VER=2.1-3 +SOURCE="https://downloads.sourceforge.net/project/cunit/CUnit/$PKG_VER/CUnit-$PKG_VER.tar.bz2" + +ADDITIONAL=" +path-makefile.patch +" + +prepare() { + apply_patches + + libtoolize --force --copy + aclocal + autoheader + automake --add-missing --include-deps --copy + autoconf + sed -i "s/@VERSION@-@RELEASE@/$PKG_VER/" cunit.pc.in +} + +build() { + ./configure \ + --prefix=/usr \ + --includedir=/usr/include \ + --datarootdir=/usr/share \ + --libdir=/usr/lib \ + --enable-debug \ + --enable-examples \ + --enable-automated \ + --enable-basic \ + --enable-test \ + --disable-static + make +} + +check() { + make check +} + +package() { + make DESTDIR="$PKG_DEST" install +} + diff --git a/repo/cunit/path-makefile.patch b/repo/cunit/path-makefile.patch new file mode 100644 index 0000000..a55bcd1 --- /dev/null +++ b/repo/cunit/path-makefile.patch @@ -0,0 +1,31 @@ +diff --git a/doc/Makefile.am b/doc/Makefile.am +index a864d46..1c15fc0 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-docdir = $(prefix)/doc/@PACKAGE@ ++docdir = $(datarootdir)/doc/@PACKAGE@ + + doc_DATA = \ + CUnit_doc.css \ +@@ -13,4 +13,4 @@ doc_DATA = \ + test_registry.html \ + writing_tests.html + +-SUBDIRS = headers +\ No newline at end of file ++SUBDIRS = headers +diff --git a/doc/headers/Makefile.am b/doc/headers/Makefile.am +index 9926e8b..3c5f1ba 100644 +--- a/doc/headers/Makefile.am ++++ b/doc/headers/Makefile.am +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-dochdrdir = $(prefix)/doc/@PACKAGE@/headers ++dochdrdir = $(includedir)/@PACKAGE@/headers + + INCLUDE_FILES = \ + Automated.h \ |