[arch-commits] Commit in golang-github-alecthomas-units/repos/community-any (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Sep 1 06:37:22 UTC 2022


    Date: Thursday, September 1, 2022 @ 06:37:21
  Author: felixonmars
Revision: 1289769

archrelease: copy trunk to community-any

Added:
  golang-github-alecthomas-units/repos/community-any/PKGBUILD
    (from rev 1289768, golang-github-alecthomas-units/trunk/PKGBUILD)
Deleted:
  golang-github-alecthomas-units/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++------------------------------
 1 file changed, 30 insertions(+), 30 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-01 06:37:07 UTC (rev 1289768)
+++ PKGBUILD	2022-09-01 06:37:21 UTC (rev 1289769)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=golang-github-alecthomas-units
-pkgver=0.0.20151022
-_commit=2efee857e7cfd4f3d0138cc3cbb1b4966962b93a
-pkgrel=2
-pkgdesc='Helpful unit multipliers and functions for Go'
-arch=('any')
-url="https://github.com/alecthomas/units"
-license=('MIT')
-depends=('go' 'golang-github-stretchr-testify')
-checkdepends=('git')
-source=("$pkgname-$_commit.tar.gz::https://github.com/alecthomas/units/archive/$_commit.tar.gz")
-sha512sums=('855f15eeb83bdc16981694f522aa1e200a3857ed11ae87fca9b0cc70734eac76f5082bc3ed92f843b818da14b58dc921dbb1aed4ea35de056c087a64b7e25fe4')
-
-check() {
-  export GOPATH="$srcdir/build:/usr/share/gocode"
-  mkdir -p "$srcdir"/build/src/github.com/alecthomas
-  cp -a "$srcdir"/units-$_commit "$srcdir"/build/src/github.com/alecthomas/units
-  cd "$srcdir"/build/src/github.com/alecthomas/units
-  go get gopkg.in/yaml.v3
-  go test -v $(go list ./...)
-}
-
-package() {
-  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/alecthomas
-  cp -a "$srcdir"/units-$_commit "$pkgdir"/usr/share/gocode/src/github.com/alecthomas/units
-
-  install -Dm644 units-$_commit/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
-}

Copied: golang-github-alecthomas-units/repos/community-any/PKGBUILD (from rev 1289768, golang-github-alecthomas-units/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-01 06:37:21 UTC (rev 1289769)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-alecthomas-units
+pkgver=0.0.20211218
+_commit=b94a6e3cc13755c0a75fffecbb089eb346fc4289
+pkgrel=1
+pkgdesc='Helpful unit multipliers and functions for Go'
+arch=('any')
+url="https://github.com/alecthomas/units"
+license=('MIT')
+depends=('go')
+checkdepends=('golang-github-stretchr-testify')
+source=("$pkgname-$_commit.tar.gz::https://github.com/alecthomas/units/archive/$_commit.tar.gz")
+sha512sums=('5733f879db5b6a5351ef2f0be1ea359dfe1b1494789cb54f207186701ed8a47bddd04440b9de460334860dab6251c67dbac792644cfe6b179c2b0a554a017ff0')
+
+check() {
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  export GO111MODULE=off
+  mkdir -p "$srcdir"/build/src/github.com/alecthomas
+  cp -a "$srcdir"/units-$_commit "$srcdir"/build/src/github.com/alecthomas/units
+  cd "$srcdir"/build/src/github.com/alecthomas/units
+  go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/alecthomas
+  cp -a "$srcdir"/units-$_commit "$pkgdir"/usr/share/gocode/src/github.com/alecthomas/units
+
+  install -Dm644 units-$_commit/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}



More information about the arch-commits mailing list