2021-01-27 18:13:48 +01:00
|
|
|
# Description: Unit testing framework
|
|
|
|
# URL: https://cmocka.org/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: cmake
|
2017-05-24 14:58:17 +09:00
|
|
|
|
|
|
|
name=cmocka
|
2020-01-14 15:40:15 +09:00
|
|
|
version=1.1.5
|
2020-09-04 13:24:23 +02:00
|
|
|
release=2
|
2017-05-24 14:58:17 +09:00
|
|
|
source=(https://cmocka.org/files/1.1/$name-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
2020-11-19 19:23:50 +01:00
|
|
|
cmake -S $name-$version -B build \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-11-22 11:30:07 +01:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-19 19:23:50 +01:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D WITH_STATIC_LIB=On \
|
|
|
|
-D UNIT_TESTING=On
|
2020-07-10 22:54:29 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2017-05-24 14:58:17 +09:00
|
|
|
}
|