From 235c03090cb5b6ed29c730cacde6a8ccbbd34b47 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 31 Oct 2013 18:59:00 +0000 Subject: main/cppunit: moved from testing --- main/cppunit/APKBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 main/cppunit/APKBUILD (limited to 'main') diff --git a/main/cppunit/APKBUILD b/main/cppunit/APKBUILD new file mode 100644 index 0000000000..7ccadb9799 --- /dev/null +++ b/main/cppunit/APKBUILD @@ -0,0 +1,49 @@ +# Maintainer: Natanael Copa +pkgname=cppunit +pkgver=1.12.1 +pkgrel=0 +pkgdesc="C++ unit testing framework" +url="http://cppunit.sourceforge.net/" +arch="all" +license="LGPLv2+" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://downloads.sourceforge.net/cppunit/cppunit-$pkgver.tar.gz" + +_builddir="$srcdir"/cppunit-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + LIBS="-ldl" ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="bd30e9cf5523cdfc019b94f5e1d7fd19 cppunit-1.12.1.tar.gz" +sha256sums="ac28a04c8e6c9217d910b0ae7122832d28d9917fa668bcc9e0b8b09acb4ea44a cppunit-1.12.1.tar.gz" +sha512sums="7af3569d028d5fa49106ece281f478cc2757cc5deca8c2512406796a7dbd6473928a1e730f28880467d19c6e59b31e55bf4f92f5cf2498a3a875ab32c5b2a081 cppunit-1.12.1.tar.gz" -- cgit v1.2.3