cmark: update to 0.30.2 and get source from upstream

Other repos are using cmark-gfm for github's fork of cmark. In case enough people are interested for cmark-gfm, we can package it too
This commit is contained in:
Yaksh Bariya 2022-01-03 19:40:35 +05:30 committed by YAKSH BARIYA
parent 65e3f8ab43
commit 94e89dc60e

View File

@ -1,19 +1,11 @@
TERMUX_PKG_HOMEPAGE=https://github.com/github/cmark
TERMUX_PKG_HOMEPAGE=https://github.com/commonmark/cmark
TERMUX_PKG_DESCRIPTION="CommonMark parsing and rendering program"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.29.0.gfm.2
TERMUX_PKG_SRCURL=https://github.com/github/cmark/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=66d92c8bef533744674c5b64d8744227584b12704bcfebbe16dab69f81e62029
TERMUX_PKG_VERSION=0.30.2
TERMUX_PKG_SRCURL=https://github.com/commonmark/cmark/archive/refs/tags/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=6c7d2bcaea1433d977d8fed0b55b71c9d045a7cdf616e3cd2dce9007da753db3
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BREAKS="cmark-dev"
TERMUX_PKG_REPLACES="cmark-dev"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DCMAKE_INSTALL_LIBDIR=$TERMUX_PREFIX/lib"
termux_step_post_make_install() {
cd $TERMUX_PREFIX/bin
ln -f -s cmark-gfm cmark
cd $TERMUX_PREFIX/share/man/man1
ln -f -s cmark-gfm.1 cmark.1
}