wok-next view cmocka/receipt @ rev 21247

updated cyrus-imapd (2.4.17 -> 3.0.12)
author Hans-G?nter Theisgen
date Thu Dec 05 16:28:27 2019 +0100 (2019-12-05)
parents f10e4fa916b0
children a923f715f955
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cmocka"
4 VERSION="1.1.3"
5 CATEGORY="development"
6 SHORT_DESC="Unit testing framework for C with support for mock objects"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="Apache2"
9 WEB_SITE="https://cmocka.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://cmocka.org/files/${VERSION%.*}/$TARBALL"
14 BUILD_DEPENDS="cmake doxygen graphviz"
15 SPLIT="$PACKAGE-dev"
17 COOKOPTS="force-arch" # different .cmake
19 compile_rules() {
20 mkdir build
21 cd build
23 cmake \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DCMAKE_BUILD_TYPE=Release \
26 -DCMAKE_C_FLAGS="$CFLAGS" \
27 .. &&
28 make &&
29 make docs &&
30 make install || return 1
32 cook_pick_docs $src/README.md
33 }
35 genpkg_rules() {
36 case $PACKAGE in
37 cmocka) copy @std;;
38 *-dev) copy @dev;;
39 esac
40 }