[arch-commits] Commit in golang-github-burntsushi-toml/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Sep 1 08:24:54 UTC 2022


    Date: Thursday, September 1, 2022 @ 08:24:54
  Author: felixonmars
Revision: 1289827

archrelease: copy trunk to community-any

Added:
  golang-github-burntsushi-toml/repos/community-any/
  golang-github-burntsushi-toml/repos/community-any/PKGBUILD
    (from rev 1289826, golang-github-burntsushi-toml/trunk/PKGBUILD)

----------+
 PKGBUILD |   28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Copied: golang-github-burntsushi-toml/repos/community-any/PKGBUILD (from rev 1289826, golang-github-burntsushi-toml/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-09-01 08:24:54 UTC (rev 1289827)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-burntsushi-toml
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="TOML parser for Golang with reflection"
+arch=('any')
+url="https://github.com/BurntSushi/toml"
+license=('MIT')
+depends=('go')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/toml/archive/v$pkgver.tar.gz")
+sha512sums=('6ece438c703deaaee49423e404e477a5fb44bc62f8ae3edacf3c9c0bd1233b886f72fc9f1fba15257d84e3a717434145542be1a11aa69d98d374833e3d0147ab')
+
+check() {
+  export GO111MODULE=off
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/BurntSushi
+  cp -a "$srcdir"/toml-$pkgver "$srcdir"/build/src/github.com/BurntSushi/toml
+  cd "$srcdir"/build/src/github.com/BurntSushi/toml
+  go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/BurntSushi
+  cp -a "$srcdir"/toml-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/BurntSushi/toml
+
+  install -Dm644 toml-$pkgver/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list