opt/cmocka/Pkgfile

22 lines
531 B
Plaintext

# Description: Unit testing framework
# URL: https://cmocka.org/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: cmake
name=cmocka
version=1.1.5
release=2
source=(https://cmocka.org/files/1.1/$name-$version.tar.xz)
build() {
cmake -S $name-$version -B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D WITH_STATIC_LIB=On \
-D UNIT_TESTING=On
cmake --build build
DESTDIR=$PKG cmake --install build
}