diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/cppunit |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cppunit')
-rw-r--r-- | community/cppunit/PKGBUILD | 32 | ||||
-rw-r--r-- | community/cppunit/gcc4.5.patch | 15 |
2 files changed, 47 insertions, 0 deletions
diff --git a/community/cppunit/PKGBUILD b/community/cppunit/PKGBUILD new file mode 100644 index 000000000..609ddf766 --- /dev/null +++ b/community/cppunit/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 16187 2010-04-26 10:05:11Z andrea $ +# Maintainer: +# Contributor: Jeff 'codemac' Mickey <jeff@archlinux.org> + +pkgname=cppunit +pkgver=1.12.1 +pkgrel=2 +pkgdesc="A C++ unit testing framework" +arch=('i686' 'x86_64') +url="http://cppunit.sourceforge.net" +license=('LGPL') +depends=('sh' 'gcc-libs') +makedepends=('gcc') +options=('!libtool') +source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" + 'gcc4.5.patch') +md5sums=('bd30e9cf5523cdfc019b94f5e1d7fd19' + '7f4e3b50fa1ee8bc854ab431848dddec') + +build() { + cd ${srcdir}/$pkgname-$pkgver + patch -Np1 -i ${srcdir}/gcc4.5.patch + autoreconf + libtoolize -f + ./configure --prefix=/usr + make || return 1 +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + make DESTDIR=${pkgdir} install || return 1 +} diff --git a/community/cppunit/gcc4.5.patch b/community/cppunit/gcc4.5.patch new file mode 100644 index 000000000..86d4a424d --- /dev/null +++ b/community/cppunit/gcc4.5.patch @@ -0,0 +1,15 @@ +--- cppunit-1.12.1.orig/src/cppunit/Makefile.am ++++ cppunit-1.12.1/src/cppunit/Makefile.am +@@ -63,5 +63,11 @@ + + libcppunit_la_LDFLAGS= \ + -no-undefined -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ +- -release $(LT_RELEASE) ++ -release $(LT_RELEASE) @LIBADD_DL@ + ++TESTS = t_link ++ ++check_PROGRAMS = t_link ++ ++t_link_SOURCES = t_link.cpp ++t_link_LDADD = libcppunit.la |