wok-next view cmocka/receipt @ rev 21574
updated aufs (4.14 -> 4.17)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 23 07:19:58 2020 +0100 (2020-06-23) |
parents | e19ff076dc63 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cmocka"
4 VERSION="1.1.5"
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 {
21 mkdir build
22 cd build
24 cmake .. \
25 -DCMAKE_INSTALL_PREFIX=/usr \
26 -DCMAKE_BUILD_TYPE=Release \
27 -DCMAKE_C_FLAGS="$CFLAGS" &&
28 make &&
29 make docs &&
30 make install || return 1
32 cook_pick_docs $src/README.md
33 }
35 genpkg_rules()
36 {
37 case $PACKAGE in
38 cmocka) copy @std;;
39 *-dev) copy @dev;;
40 esac
41 }