diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-24 03:30:57 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-24 03:30:57 +0000 |
commit | 431023a318e680258f02c1fb5fdca176c68e5cb7 (patch) | |
tree | cedbdd37d2a93310636cf71c781041a2b5ee68a3 /community/cmocka/PKGBUILD | |
parent | 0459e6459ee534bf22ab8a5381cd485e6035e9e2 (diff) |
Thu Apr 24 03:25:33 UTC 2014
Diffstat (limited to 'community/cmocka/PKGBUILD')
-rw-r--r-- | community/cmocka/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/community/cmocka/PKGBUILD b/community/cmocka/PKGBUILD new file mode 100644 index 000000000..2c11615e8 --- /dev/null +++ b/community/cmocka/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 110062 2014-04-23 16:53:25Z anatolik $ +# Maintainer: Anatol Pomozov <anatol.pomozov@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" +} |