From fe6fbeb6a0c67d41e4ef7902e813d775d7e79cee Mon Sep 17 00:00:00 2001 From: Jorge Araya Navarro Date: Sat, 30 Nov 2013 00:13:56 -0600 Subject: adding unittestpp, a C++ unit test framework --- pcr/unittestpp/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ pcr/unittestpp/UnitTest++.h | 1 + 2 files changed, 38 insertions(+) create mode 100644 pcr/unittestpp/PKGBUILD create mode 100644 pcr/unittestpp/UnitTest++.h diff --git a/pcr/unittestpp/PKGBUILD b/pcr/unittestpp/PKGBUILD new file mode 100644 index 000000000..3918f98a2 --- /dev/null +++ b/pcr/unittestpp/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jorge Araya Navarro +# Contributor: Piotr Beling +# Contributor: Vianney le Clément +pkgname=unittestpp +pkgver=1.4 +pkgrel=3 +pkgdesc="A lightweight unit testing framework for C++" +arch=('i686' 'x86_64') +url="http://unittest-cpp.sourceforge.net/" +depends=('gcc-libs') +source=("http://downloads.sourceforge.net/project/unittest-cpp/UnitTest%2B%2B/$pkgver/unittest-cpp-${pkgver}.zip") +sha1sums=('dad944159e2e135aea74039987490eaaee00f2ad') +license=('MIT') + +build() { + cd "$srcdir/UnitTest++" + make all +} + +package() { + cd "$srcdir/UnitTest++" + + install -dm755 "$pkgdir/usr/include/unittest++/Posix" + install -m644 src/*.h "$pkgdir/usr/include/unittest++" + install -m644 src/Posix/*.h "$pkgdir/usr/include/unittest++/Posix" + + install -dm755 "$pkgdir/usr/lib" + install -m644 libUnitTest++.a "$pkgdir/usr/lib" + + install -dm755 "$pkgdir/usr/share/licenses/unittest++" + install -m644 COPYING "$pkgdir/usr/share/licenses/unittest++/LICENSE" + install -dm755 "$pkgdir/usr/share/doc/unittest++" + install -m644 README "$pkgdir/usr/share/doc/unittest++/README" + install -m644 docs/UnitTest++.html "$pkgdir/usr/share/doc/unittest++/UnitTest++.html" +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/unittestpp/UnitTest++.h b/pcr/unittestpp/UnitTest++.h new file mode 100644 index 000000000..6c0771a0d --- /dev/null +++ b/pcr/unittestpp/UnitTest++.h @@ -0,0 +1 @@ +#include "UnitTest++/UnitTest++.h" -- cgit v1.2.3