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

Felix Yan felixonmars at gemini.archlinux.org
Thu Sep 1 08:36:27 UTC 2022


    Date: Thursday, September 1, 2022 @ 08:36:26
  Author: felixonmars
Revision: 1289831

archrelease: copy trunk to community-any

Added:
  golang-github-fsnotify-fsnotify/repos/community-any/
  golang-github-fsnotify-fsnotify/repos/community-any/PKGBUILD
    (from rev 1289830, golang-github-fsnotify-fsnotify/trunk/PKGBUILD)

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

Copied: golang-github-fsnotify-fsnotify/repos/community-any/PKGBUILD (from rev 1289830, golang-github-fsnotify-fsnotify/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-09-01 08:36:26 UTC (rev 1289831)
@@ -0,0 +1,28 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=golang-github-fsnotify-fsnotify
+pkgver=1.5.4
+pkgrel=1
+pkgdesc="Cross-platform file system notifications for Go"
+arch=('any')
+url="https://github.com/fsnotify/fsnotify"
+license=('BSD')
+depends=('go' 'golang-golang-x-sys')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/fsnotify/fsnotify/archive/v$pkgver.tar.gz")
+sha512sums=('173c8f04e3d36aace342784359f16b7c5af8f8eb331c26358ae3d533bc1c3b4942384d0e0c39d5f8a201c69b475cca624e64fe5d7d22b6184de10179a096d7c1')
+
+check() {
+  export GO111MODULE=off
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p "$srcdir"/build/src/github.com/fsnotify
+  cp -a "$srcdir"/fsnotify-$pkgver "$srcdir"/build/src/github.com/fsnotify/fsnotify
+  cd "$srcdir"/build/src/github.com/fsnotify/fsnotify
+  go test -v $(go list ./...)
+}
+
+package() {
+  mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/fsnotify
+  cp -a "$srcdir"/fsnotify-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/fsnotify/fsnotify
+
+  install -Dm644 fsnotify-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list