wok-next diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cmocka/receipt Tue Oct 02 22:23:34 2018 +0300 1.3 @@ -0,0 +1,38 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="cmocka" 1.7 +VERSION="1.1.2" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Unit testing framework for C with support for mock objects" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="Apache2" 1.12 +WEB_SITE="https://cmocka.org/" 1.13 + 1.14 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.15 +WGET_URL="https://cmocka.org/files/${VERSION%.*}/$TARBALL" 1.16 + 1.17 +BUILD_DEPENDS="cmake doxygen graphviz" 1.18 +SPLIT="$PACKAGE-dev" 1.19 + 1.20 +compile_rules() { 1.21 + mkdir build 1.22 + cd build 1.23 + 1.24 + cmake \ 1.25 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.26 + -DCMAKE_BUILD_TYPE=Release \ 1.27 + -DCMAKE_C_FLAGS="$CFLAGS" \ 1.28 + .. && 1.29 + make && 1.30 + make docs && 1.31 + make install || return 1 1.32 + 1.33 + cook_pick_docs $src/README.md 1.34 +} 1.35 + 1.36 +genpkg_rules() { 1.37 + case $PACKAGE in 1.38 + cmocka) copy @std;; 1.39 + *-dev) copy @dev;; 1.40 + esac 1.41 +}