[arch-commits] Commit in golang-github-yuin-goldmark/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Sep 1 07:03:01 UTC 2022
Date: Thursday, September 1, 2022 @ 07:03:00
Author: felixonmars
Revision: 1289789
archrelease: copy trunk to community-any
Added:
golang-github-yuin-goldmark/repos/community-any/
golang-github-yuin-goldmark/repos/community-any/PKGBUILD
(from rev 1289788, golang-github-yuin-goldmark/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: golang-github-yuin-goldmark/repos/community-any/PKGBUILD (from rev 1289788, golang-github-yuin-goldmark/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-09-01 07:03:00 UTC (rev 1289789)
@@ -0,0 +1,27 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-yuin-goldmark
+pkgver=1.4.13
+pkgrel=1
+pkgdesc="Fork of Go's text/goldmark adding newline elision"
+arch=('any')
+url="https://github.com/yuin/goldmark"
+license=('BSD')
+depends=('go')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/yuin/goldmark/archive/v$pkgver.tar.gz")
+sha512sums=('82f6c3b8852a41d4072e1b88a70299e74234f5bf1e0fef2236d501edcde2586391fa05957fb30bd5c1c92361a6bd19e9105423ca3ce4f29a807a860674ece2e3')
+
+check() {
+ export GOPATH="$srcdir/build:/usr/share/gocode"
+ mkdir -p "$srcdir"/build/src/github.com/yuin
+ cp -a "$srcdir"/goldmark-$pkgver "$srcdir"/build/src/github.com/yuin/goldmark
+ cd "$srcdir"/build/src/github.com/yuin/goldmark
+ go test -v $(go list ./...)
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/yuin
+ cp -a "$srcdir"/goldmark-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/yuin/goldmark
+
+ install -Dm644 goldmark-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list