blob: 792ad2059c33e7a4125677172b821e460db422fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Contributor: Jake Buchholz <tomalok@gmail.com>
# Maintainer: Jake Buchholz <tomalok@gmail.com>
pkgname=go-md2man
pkgver=1.0.10
pkgrel=0
pkgdesc="Utility to convert markdown to man pages"
url="https://github.com/cpuguy83/go-md2man"
arch="all"
license="MIT"
makedepends="go"
subpackages="$pkgname-doc"
source="go-md2man-$pkgver.tar.gz::https://github.com/cpuguy83/go-md2man/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/cpuguy83/go-md2man"
build() {
cd "$srcdir"
export GOPATH="$PWD"
mkdir -p $(dirname "$builddir")
ln -s "$PWD/go-md2man-$pkgver" "$builddir"
cd $builddir
CGO_ENABLED=0 go build
}
check() {
cd "$builddir"
./go-md2man -in go-md2man.1.md -out go-md2man.1
}
package() {
cd "$builddir"
install -Dsm755 go-md2man "$pkgdir"/usr/bin/go-md2man
install -Dm644 go-md2man.1 "$pkgdir"/usr/share/man/man1/go-md2man.1
}
sha512sums="cf9eb65bec7fc4293c4a867eca215a0ccb0c495c3e4e0759c04899887033c1edc2b4174d6975be73e56d621d5003b9b88f590f48276099c39458609b533eb40d go-md2man-1.0.10.tar.gz"
|