wok-next view cmocka/receipt @ rev 21229
updated clamav (0.99.4 -> 0.101.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 03 16:54:38 2019 +0100 (2019-12-03) |
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 }