# Contributor: Daniel Sabogal # Maintainer: Carlo Landmeter pkgname=discount pkgver=3.0.0a pkgrel=0 pkgdesc="A Markdown to HTML translator written in C" url="http://www.pell.portland.or.us/~orc/Code/discount/" arch="all" license="BSD-3-Clause" depends="!markdown" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="$pkgname-$pkgver.tar.gz::https://github.com/Orc/discount/archive/v$pkgver.tar.gz configure.inc.patch " build() { ./configure.sh \ --prefix=/usr \ --mandir=/usr/share/man \ --enable-all-features \ --with-fenced-code \ --pkg-config \ --shared make -j1 } check() { msg "Running testsuites..." make test } package() { make PREFIX=/usr DESTDIR="$pkgdir" install.everything local bin; for bin in theme makepage mkd2html; do mv "$pkgdir"/usr/bin/$bin \ "$pkgdir"/usr/bin/$pkgname-$bin mv "$pkgdir"/usr/share/man/man1/$bin.1 \ "$pkgdir"/usr/share/man/man1/$pkgname-$bin.1 done } sha512sums=" d86bfc6d3e11131622046418a1f54bd9dfa5f1233e510189cd2c89dc857da31e88ffbe6670cc506ca8b9763e8fb74ed215f1018f83e25767c77acb8a7c296b8a discount-3.0.0a.tar.gz 6935a52d3fa1ee70e21cf6290bd83e045e8da349ef48ab7241c4eb075caded11945c9d1eabc7e9cdf549a4101daf81e10675464b84876838da669d2086f1de43 configure.inc.patch "