🔒 Repository is read-only – file editing is disabled.

recipes/gui/go-md2man/PAGBUILD.yaml main

35 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435
pkgname: 'go-md2man'
pkgver: '2.0.7'
pkgrel: '1'
pkgdesc: 'Utility to convert markdown to man pages'
url: 'https://github.com/cpuguy83/go-md2man'
arch: x86_64
license:
- MIT

depends: []
makedepends:
- go

source:
- 'https://github.com/cpuguy83/go-md2man/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz'

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}

  	export PATH=/usr/lib/go/bin:$PATH

  	export GOFLAGS="-buildmode=pie -trimpath"
  	export CGO_LDFLAGS="$LDFLAGS"
  	go build -o go-md2man .
  	./go-md2man -in=go-md2man.1.md -out=go-md2man.1
  	install -Dm755 go-md2man "${PKGDIR}/usr/bin/go-md2man"
  	install -Dm755 go-md2man.1 "${PKGDIR}/usr/share/man/man1/go-md2man.1"

      install -Dm644 LICENSE.md ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE.md

package: |
  true