diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-11-24 17:04:28 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-11-24 17:04:28 (GMT) |
commit | d84e0e692a9769a2b0fa45a4eb8d1d8971ed2678 (patch) | |
tree | e93c5f849cdde6d8240847e0d94cb75851193d38 /abs/extra | |
parent | 9cd4bd0152e0b8213fd87556c3d56ca57a849384 (diff) | |
download | linhes_pkgbuild-d84e0e692a9769a2b0fa45a4eb8d1d8971ed2678.zip linhes_pkgbuild-d84e0e692a9769a2b0fa45a4eb8d1d8971ed2678.tar.gz linhes_pkgbuild-d84e0e692a9769a2b0fa45a4eb8d1d8971ed2678.tar.bz2 |
cmocka: initial inclusion. dep of libssh
Diffstat (limited to 'abs/extra')
-rw-r--r-- | abs/extra/cmocka/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
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 <anatol.pomozov@gmail.com> + +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" +} |