# Template file for 'libmarkdown2'
pkgname=libmarkdown2
version=2.2.7d
revision=1
build_style=configure
configure_script="./configure.sh"
configure_args="--prefix=/usr --shared --pkg-config"
depends="discount"
short_desc="C implementation of John Gruber's Markdown"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="http://www.pell.portland.or.us/~orc/Code/discount"
distfiles="https://github.com/Orc/discount/archive/v${version}.tar.gz"
checksum=eb9f6629dadddb44c3111267b82e51d5fb8364e228cc3533fe937d8a99e0155b
disable_parallel_build=yes

do_install() {
	make DESTDIR=${DESTDIR} install
	vlicense COPYRIGHT
	rm -rf "${DESTDIR}/usr/bin"
}

libmarkdown2-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	conflicts="discount-devel>=0"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
		vmove usr/lib/pkgconfig
	}
}
