Name md4c
Description Fast Markdown parser written in C
Version 0.5.2-r0
Package Base md4c
Homepage https://github.com/mity/md4c
Maintainers ['Celeste <cielesti@protonmail.com>']
Contributors ['Grigory Kirillov <txgk@bk.ru>']
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/community/md4c
Sources ['https://github.com/mity/md4c/archive/release-0.5.2-r0/md4c-0.5.2-r0.tar.gz']
Dependencies ['libc.musl-x86_64.so.1', 'libmd4c-html.so.0']
Optional-Dependencies []
Build-Dependencies ['cmake', 'samurai']
Provides ['cmd:md2html=0.5.2-r0']
Builddate 16-10-2024 18:20:45
Architecture x86_64
Distro-Version v3.22
Licenses ['MIT']
Hash Q1++o3d1pYkQ2JGqfh+Lpu2xDuuc0=
# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=md4c
pkgver=0.5.2
pkgrel=0
pkgdesc="Fast Markdown parser written in C"
url="https://github.com/mity/md4c"
arch="all"
license="MIT"
options="!check" # no test suite
makedepends="cmake samurai"
source="https://github.com/mity/md4c/archive/release-$pkgver/md4c-$pkgver.tar.gz"
subpackages="$pkgname-libs $pkgname-dev $pkgname-doc"
builddir="$srcdir/md4c-release-$pkgver"

build() {
	cmake -B builddir -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build builddir
}

package() {
	DESTDIR="$pkgdir" cmake --install builddir
}

sha512sums="
30607ba39d6c59329f5a56a90cd816ff60b82ea752ac2b9df356d756529cfc49170019fae5df32fa94afc0e2a186c66eaf56fa6373d18436c06ace670675ba85  md4c-0.5.2.tar.gz
"