2016-03-21 13:04:32 +01:00
|
|
|
# Template file for 'MultiMarkdown'
|
|
|
|
pkgname=MultiMarkdown
|
2016-08-07 15:16:27 +02:00
|
|
|
version=5.4.0
|
2017-07-19 11:29:29 +02:00
|
|
|
revision=3
|
2016-03-21 13:04:32 +01:00
|
|
|
build_style=cmake
|
2016-06-12 20:58:43 +02:00
|
|
|
_greg_git=265003c8cb3022183f48df3e2684336b788af39d
|
2016-03-21 13:04:32 +01:00
|
|
|
_cheatsheet_git=199dae83cfd22254a7b329450e48aaedb8d4d2e9
|
2017-07-15 23:46:05 +02:00
|
|
|
short_desc="Superset of the Markdown syntax"
|
2016-03-21 13:04:32 +01:00
|
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="http://fletcherpenney.net/multimarkdown/"
|
2016-06-12 20:58:43 +02:00
|
|
|
distfiles="https://github.com/fletcher/MultiMarkdown-5/archive/$version.tar.gz
|
2016-03-21 13:04:32 +01:00
|
|
|
https://github.com/ooc-lang/greg/archive/$_greg_git.tar.gz
|
|
|
|
https://github.com/fletcher/human-markdown-reference/archive/$_cheatsheet_git.tar.gz
|
|
|
|
"
|
2016-08-07 15:16:27 +02:00
|
|
|
checksum="1cc0385ffd6c821c265e970f81cc4ec009c7ecbbfb12e0e115c7bb5b33d09a83
|
2016-06-12 20:58:43 +02:00
|
|
|
ada9df7bbd158472c33e6d84b62d0fb39bedd094201f44af1581f0cb468cdc73
|
2016-03-21 13:04:32 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
2017-07-19 11:29:29 +02:00
|
|
|
# TODO: markdown alternatives
|
|
|
|
mv ${DESTDIR}/usr/bin/markdown ${DESTDIR}/usr/bin/multimarkdown-markdown
|
|
|
|
# Avoid conflict with mtools
|
|
|
|
mv ${DESTDIR}/usr/bin/mmd ${DESTDIR}/usr/bin/multimarkdown-mmd
|
2017-07-15 23:46:05 +02:00
|
|
|
vlicense LICENSE.txt LICENSE
|
2016-03-21 13:04:32 +01:00
|
|
|
}
|