From 52c9c2e4ff7e9f81c17b157444048a09920e7626 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 21 Mar 2016 13:04:32 +0100 Subject: [PATCH] New package: MultiMarkdown-5.2.0 --- srcpkgs/MultiMarkdown/template | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 srcpkgs/MultiMarkdown/template diff --git a/srcpkgs/MultiMarkdown/template b/srcpkgs/MultiMarkdown/template new file mode 100644 index 00000000000..afff5c10924 --- /dev/null +++ b/srcpkgs/MultiMarkdown/template @@ -0,0 +1,43 @@ +# Template file for 'MultiMarkdown' +pkgname=MultiMarkdown +version=5.2.0 +revision=1 +build_style=cmake +_greg_git=98ecf13c3502b47e342b09fb7b0cad453e1bb797 +_cheatsheet_git=199dae83cfd22254a7b329450e48aaedb8d4d2e9 +hostmakedepends="cmake" +makedepends="" +depends="" +short_desc="a superset of the Markdown syntax" +maintainer="Enno Boland " +license="MIT" +homepage="http://fletcherpenney.net/multimarkdown/" +distfiles="https://github.com/fletcher/MultiMarkdown-5/archive/5.2.0.tar.gz + https://github.com/ooc-lang/greg/archive/$_greg_git.tar.gz + https://github.com/fletcher/human-markdown-reference/archive/$_cheatsheet_git.tar.gz +" +checksum="eed8cb8c39896b57b8d6e0093a7d96843326a7f731036c4ba790ac04f84e12c3 + de0cd368e22fc218c38fbf52ea5cd3e6aa0f7eecadadcfa4ca15d7ee7c27d7cb + f0176ec41692f275ef4f94c5b8a59e991576abf28ba374d96c34599282509364" +wrksrc=$pkgname-5-$version + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" $pkgname" + configure_args+=" -DIS_CROSSCOMPILING=On" +fi + +pre_configure() { + rm -r submodules/* + ln -srf ../greg-$_greg_git submodules/greg + ln -srf ../human-markdown-reference-$_cheatsheet_git submodules/cheat-sheet + make -C submodules/greg CC=cc CFLAGS= LDFLAGS= + cp -a . /tmp/$pkgname.$$ + mv /tmp/$pkgname.$$ submodules/documentation + mkdir -p build + touch build/README.html +} + +# TODO: markdown alternatives +post_install() { + mv $DESTDIR/usr/bin/markdown $DESTDIR/usr/bin/mmd_markdown +}