# Contributor: Daniel Sabogal # Maintainer: Carlo Landmeter pkgname=discount pkgver=2.2.4 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" depends="!markdown" makedepends="" checkdepends="diffutils" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="http://www.pell.portland.or.us/~orc/Code/discount/$pkgname-$pkgver.tar.bz2 configure.inc.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure.sh \ --prefix=/usr \ --mandir=/usr/share/man \ --enable-all-features \ --with-fenced-code \ --pkg-config \ --shared make } check() { msg "Running testsuites..." cd "$builddir" make test } package() { cd "$builddir" 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="0650e0ce3f6948e3a30fdaa1a810e895f64621c55df46c7a5ed8755e65c1b718b7a1d1a1bfe0a87a3a59fbb13fca8907718f1aa095125a4b6e152602b8e490cf discount-2.2.4.tar.bz2 6935a52d3fa1ee70e21cf6290bd83e045e8da349ef48ab7241c4eb075caded11945c9d1eabc7e9cdf549a4101daf81e10675464b84876838da669d2086f1de43 configure.inc.patch"