blob: 814ba53e5811dfe8869f1c7c651c9b529e788b93 (
plain)
1 # Description: Unit testing framework
2 # URL: https://cmocka.org/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: cmake
5
6 name=cmocka
7 version=1.1.5
8 release=2
9 source=(https://cmocka.org/files/1.1/$name-$version.tar.xz)
10
11 build() {
12 cmake -S $name-$version -B build \
13 -D CMAKE_BUILD_TYPE=Release \
14 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
15 -D CMAKE_INSTALL_PREFIX=/usr \
16 -D CMAKE_INSTALL_LIBDIR=lib \
17 -D WITH_STATIC_LIB=On \
18 -D UNIT_TESTING=On
19 cmake --build build
20 DESTDIR=$PKG cmake --install build
21 }
|