diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-03-10 16:43:43 +0200 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-03-27 07:49:46 +0000 |
commit | e6ec94757d54fb82253f8f868b901eff856ab591 (patch) | |
tree | 04d00cfa6dea46c26c7d84cc57a9b045da6a90a2 /main/cmocka | |
parent | 9ce4bde295dbcbd026a3d0c0e4ae779cb026680d (diff) | |
download | aports-e6ec94757d54fb82253f8f868b901eff856ab591.tar.bz2 aports-e6ec94757d54fb82253f8f868b901eff856ab591.tar.xz |
main/cmocka: move from testing
Diffstat (limited to 'main/cmocka')
-rw-r--r-- | main/cmocka/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/main/cmocka/APKBUILD b/main/cmocka/APKBUILD new file mode 100644 index 0000000000..a78b818a6e --- /dev/null +++ b/main/cmocka/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=cmocka +pkgver=1.1.0 +pkgrel=1 +pkgdesc="An elegant unit testing framework for C with support for mock objects" +url="https://cmocka.org/" +arch="all !aarch64" +license="ASL-2.0" +depends="" +makedepends="cmake" +subpackages="$pkgname-dev" +source="https://cmocka.org/files/${pkgver%.*}/$pkgname-$pkgver.tar.xz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + mkdir -p "$builddir"/build || return 1 + cd "$builddir"/build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DUNIT_TESTING=ON \ + || return 1 + make +} + +check() { + make -C "$builddir"/build test +} + +package() { + make -C "$builddir"/build DESTDIR="$pkgdir" install +} + +md5sums="59c9aa5735d9387fb591925ec53523ec cmocka-1.1.0.tar.xz" +sha256sums="e960d3bf1be618634a4b924f18bb4d6f20a825c109a8ad6d1af03913ba421330 cmocka-1.1.0.tar.xz" +sha512sums="b45b6c6bf6c1a0e12cbbfa203afc0172aa53215e0bd43a21b30db04c0490609a7a262f1b4d87be9df0c5c486c4f4891d3432e0e053418d373d9750a6cf5adf70 cmocka-1.1.0.tar.xz" |