wok-next annotate cmocka/receipt @ rev 20990

Remove mate116 stash
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 02 22:23:34 2018 +0300 (2018-10-02)
parents
children f10e4fa916b0
rev   line source
al@20957 1 # SliTaz package receipt v2.
al@20957 2
al@20957 3 PACKAGE="cmocka"
al@20957 4 VERSION="1.1.2"
al@20957 5 CATEGORY="development"
al@20957 6 SHORT_DESC="Unit testing framework for C with support for mock objects"
al@20957 7 MAINTAINER="al.bobylev@gmail.com"
al@20957 8 LICENSE="Apache2"
al@20957 9 WEB_SITE="https://cmocka.org/"
al@20957 10
al@20957 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@20957 12 WGET_URL="https://cmocka.org/files/${VERSION%.*}/$TARBALL"
al@20957 13
al@20957 14 BUILD_DEPENDS="cmake doxygen graphviz"
al@20957 15 SPLIT="$PACKAGE-dev"
al@20957 16
al@20957 17 compile_rules() {
al@20957 18 mkdir build
al@20957 19 cd build
al@20957 20
al@20957 21 cmake \
al@20957 22 -DCMAKE_INSTALL_PREFIX=/usr \
al@20957 23 -DCMAKE_BUILD_TYPE=Release \
al@20957 24 -DCMAKE_C_FLAGS="$CFLAGS" \
al@20957 25 .. &&
al@20957 26 make &&
al@20957 27 make docs &&
al@20957 28 make install || return 1
al@20957 29
al@20957 30 cook_pick_docs $src/README.md
al@20957 31 }
al@20957 32
al@20957 33 genpkg_rules() {
al@20957 34 case $PACKAGE in
al@20957 35 cmocka) copy @std;;
al@20957 36 *-dev) copy @dev;;
al@20957 37 esac
al@20957 38 }