# Contributor: z3bra <willy at mailoo dot org>
# Maintainer: Kevin Daudt <me@ikke.info>
setvar pkgname = 'markdown'
setvar _pkgreal = 'Markdown'
setvar pkgver = '1.0.1'
setvar pkgrel = '0'
setvar pkgdesc = ""Text-to-HTML conversion tool for web writers""
setvar url = ""http://daringfireball.net/projects/markdown/""
setvar arch = ""noarch""
setvar license = ""custom:BSD""
setvar depends = ""perl""
setvar depends_dev = """"
setvar makedepends = "$depends_dev"
setvar install = """"
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://daringfireball.net/projects/downloads/Markdown_1.0.1.zip""

setvar _builddir = "$srcdir/${_pkgreal}_${pkgver}"

proc build {
    cd $_builddir
    pod2man "Markdown.pl" > "$_builddir/$pkgname.1"
}

proc package {
	cd $_builddir
        install -Dm755 "Markdown.pl" "${pkgdir}/usr/bin/${pkgname}"
        install -Dm644 "License.text" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
        install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
}

setvar md5sums = ""f17b3c2b2830c6fd2fe0098226e59a2f  Markdown_1.0.1.zip""
setvar sha256sums = ""6520e9b6a58c5555e381b6223d66feddee67f675ed312ec19e9cee1b92bc0137  Markdown_1.0.1.zip""
setvar sha512sums = ""962df356e641326fbf29cdedc36dafb5f04683f0b3f5eb1efb8e15994e1e000b5a6882c84f09db4a6f8f948811ebbe76759e27871c644e690884db31705eab1f  Markdown_1.0.1.zip""