wok-next annotate cmark-gfm/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f10e4fa916b0 |
children | e7e7475e84c9 |
rev | line source |
---|---|
al@21002 | 1 # SliTaz package receipt v2. |
al@19679 | 2 |
al@19679 | 3 PACKAGE="cmark-gfm" |
al@21002 | 4 VERSION="0.28.3.gfm.17" |
al@19679 | 5 CATEGORY="text" |
al@19679 | 6 SHORT_DESC="Github fork of CommonMark parsing and rendering program in C" |
al@19679 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19679 | 8 LICENSE="BSD" |
al@21020 | 9 WEB_SITE="https://github.com/github/cmark-gfm" |
al@19679 | 10 |
al@19679 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@21002 | 12 WGET_URL="https://github.com/github/cmark/archive/$VERSION.tar.gz" |
al@19679 | 13 |
al@20516 | 14 BUILD_DEPENDS="cmake python3" |
al@21002 | 15 SPLIT="$PACKAGE-dev" |
al@19679 | 16 |
al@21002 | 17 compile_rules() { |
al@21002 | 18 mkdir build |
al@21002 | 19 cd build |
al@21002 | 20 cmake \ |
al@21002 | 21 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@21002 | 22 .. && |
al@19679 | 23 make && |
al@19679 | 24 make test && |
al@21002 | 25 make install || return 1 |
al@21002 | 26 |
al@21002 | 27 cd $src |
al@21002 | 28 cook_pick_docs README.md benchmarks.md changelog.txt why-cmark-and-not-x.md |
al@19679 | 29 } |
al@19679 | 30 |
al@21002 | 31 genpkg_rules() { |
al@21002 | 32 case $PACKAGE in |
al@21002 | 33 *-dev) copy @dev;; |
al@21002 | 34 *) copy @std;; |
al@21002 | 35 esac |
al@19679 | 36 } |