opt/cmocka/Pkgfile

20 lines
498 B
Plaintext

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