# Contributor: Jake Buchholz Göktürk # Maintainer: Jake Buchholz Göktürk pkgname=go-md2man pkgver=2.0.4 pkgrel=4 pkgdesc="Utility to convert markdown to man pages" options="net" url="https://github.com/cpuguy83/go-md2man" arch="all" license="MIT" makedepends="go" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/cpuguy83/go-md2man/archive/v$pkgver.tar.gz" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" export GOFLAGS="$GOFLAGS -modcacherw" build() { go build ./go-md2man -in go-md2man.1.md -out go-md2man.1 } check() { grep -q "User Manual" go-md2man.1 } package() { install -Dsm755 go-md2man "$pkgdir"/usr/bin/go-md2man install -Dm644 go-md2man.1 "$pkgdir"/usr/share/man/man1/go-md2man.1 } sha512sums=" 2169f16a7ea769357511a72dff5f8a5728ec810ed4165e6a4b8c61ee2fa7bccab132bad94584a547c5ce4c63ca533a144a6c379d81f1977854eb22bfbe21e065 go-md2man-2.0.4.tar.gz "