wok-next view cmocka/receipt @ rev 21002

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Oct 06 06:18:03 2018 +0300 (2018-10-06)
parents ede906abe532
children e19ff076dc63
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 compile_rules() {
18 mkdir build
19 cd build
21 cmake \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 -DCMAKE_BUILD_TYPE=Release \
24 -DCMAKE_C_FLAGS="$CFLAGS" \
25 .. &&
26 make &&
27 make docs &&
28 make install || return 1
30 cook_pick_docs $src/README.md
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 cmocka) copy @std;;
36 *-dev) copy @dev;;
37 esac
38 }