Date: Wednesday, April 23, 2014 @ 18:52:17
  Author: anatolik
Revision: 110061

cmocka: add unit testing framework

Added:
  cmocka/
  cmocka/repos/
  cmocka/trunk/
  cmocka/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Added: cmocka/trunk/PKGBUILD
===================================================================
--- cmocka/trunk/PKGBUILD                               (rev 0)
+++ cmocka/trunk/PKGBUILD       2014-04-23 16:52:17 UTC (rev 110061)
@@ -0,0 +1,31 @@
+# $Id$
+# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com>
+
+pkgname=cmocka
+url='http://cmocka.org/'
+pkgver=0.4.0
+pkgrel=1
+pkgdesc='an elegant unit testing framework for C with support for mock objects'
+arch=(i686 x86_64)
+license=(GPL)
+depends=(glibc)
+makedepends=(cmake)
+source=(https://open.cryptomilk.org/attachments/download/37/cmocka-$pkgver.tar.xz)
+sha1sums=('7fe27a6fdcf60222cf15ae67aeee83139180a759')
+
+build() {
+  rm -rf build; mkdir build
+  cd build
+  cmake ../$pkgname-$pkgver -DCMAKE_INSTALL_PREFIX=/usr 
-DCMAKE_BUILD_TYPE=Release -DUNIT_TESTING=ON
+  make
+}
+
+check() {
+  cd build
+  make test
+}
+
+package() {
+  cd build
+  make install DESTDIR="$pkgdir"
+}


Property changes on: cmocka/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property

Reply via email to