From d84e0e692a9769a2b0fa45a4eb8d1d8971ed2678 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Mon, 24 Nov 2014 17:04:28 +0000 Subject: cmocka: initial inclusion. dep of libssh --- abs/extra/cmocka/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 abs/extra/cmocka/PKGBUILD diff --git a/abs/extra/cmocka/PKGBUILD b/abs/extra/cmocka/PKGBUILD new file mode 100644 index 0000000..fc28878 --- /dev/null +++ b/abs/extra/cmocka/PKGBUILD @@ -0,0 +1,31 @@ +# $Id$ +# Maintainer: Anatol Pomozov + +pkgname=cmocka +url='http://cmocka.org/' +pkgver=0.4.1 +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=(http://git.cryptomilk.org/projects/cmocka.git/snapshot/cmocka-$pkgver.tar.bz2) +sha1sums=('215378198f489033d982122e34168d9d225e2f5b') + +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" +} -- cgit v0.12