# HG changeset patch # User Aleksej Bobylev # Date 1451566313 -7200 # Node ID 61e23282014d35da70483c84d3cc874b9721d503 # Parent 1a89affba7d6d0ea3ad08b85b0724af38597f039 Add sundown diff -r 1a89affba7d6 -r 61e23282014d sundown/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sundown/receipt Thu Dec 31 14:51:53 2015 +0200 @@ -0,0 +1,31 @@ +# SliTaz package receipt. + +PACKAGE="sundown" +VERSION="1.16.0" +COMMIT="37728fb2d7137ff7c37d0a474cb827a8d6d846d8" +CATEGORY="utilities" +SHORT_DESC="Standards compliant, fast, secure markdown processing library in C" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="ISC" +WEB_SITE="https://github.com/vmg/sundown" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz" + +DEPENDS="" +BUILD_DEPENDS="" + +# Rules to configure and make the package. +compile_rules() +{ + #sed -i 's|O3|Os|' $src/Makefile + patch -p1 -i $stuff/sundown.options.patch + make + mkdir -p $install/usr/bin + cp -a $src/sundown $install/usr/bin +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs +} diff -r 1a89affba7d6 -r 61e23282014d sundown/stuff/sundown.options.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sundown/stuff/sundown.options.patch Thu Dec 31 14:51:53 2015 +0200 @@ -0,0 +1,20 @@ +Enable next extensions in the sundown example: + * tables + * fenced_code + * autolink + * strikethrough + * space_headers + * superscript +See `markdown.h` to calculate mkd_extensions value. + +--- a/examples/sundown.c ++++ b/examples/sundown.c +@@ -62,7 +62,7 @@ + ob = bufnew(OUTPUT_UNIT); + + sdhtml_renderer(&callbacks, &options, 0); +- markdown = sd_markdown_new(0, 16, &callbacks, &options); ++ markdown = sd_markdown_new(222, 16, &callbacks, &options); + + sd_markdown_render(ob, ib->data, ib->size, markdown); + sd_markdown_free(markdown);