diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-31 18:59:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-11-01 08:42:43 +0000 |
commit | 235c03090cb5b6ed29c730cacde6a8ccbbd34b47 (patch) | |
tree | 71013a07526bd7cef2da94740114d2552f8ac89e /main/cppunit | |
parent | 8fb9e478be9d2a8a7c96e992d5e0a0a53092fc26 (diff) | |
download | aports-235c03090cb5b6ed29c730cacde6a8ccbbd34b47.tar.bz2 aports-235c03090cb5b6ed29c730cacde6a8ccbbd34b47.tar.xz |
main/cppunit: moved from testing
Diffstat (limited to 'main/cppunit')
-rw-r--r-- | main/cppunit/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
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 <ncopa@alpinelinux.org> +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" |