archrelease: copy trunk to community-any
[arch-community.git] / golang-github-fsnotify-fsnotify / trunk / PKGBUILD
blob11e593239f14aadfbebcda5571e934eac8a6d2b6
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=golang-github-fsnotify-fsnotify
4 pkgver=1.5.4
5 pkgrel=1
6 pkgdesc="Cross-platform file system notifications for Go"
7 arch=('any')
8 url="https://github.com/fsnotify/fsnotify"
9 license=('BSD')
10 depends=('go' 'golang-golang-x-sys')
11 source=("$pkgname-$pkgver.tar.gz::https://github.com/fsnotify/fsnotify/archive/v$pkgver.tar.gz")
12 sha512sums=('173c8f04e3d36aace342784359f16b7c5af8f8eb331c26358ae3d533bc1c3b4942384d0e0c39d5f8a201c69b475cca624e64fe5d7d22b6184de10179a096d7c1')
14 check() {
15   export GO111MODULE=off
16   export GOPATH="$srcdir/build:/usr/share/gocode"
17   mkdir -p "$srcdir"/build/src/github.com/fsnotify
18   cp -a "$srcdir"/fsnotify-$pkgver "$srcdir"/build/src/github.com/fsnotify/fsnotify
19   cd "$srcdir"/build/src/github.com/fsnotify/fsnotify
20   go test -v $(go list ./...)
23 package() {
24   mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/fsnotify
25   cp -a "$srcdir"/fsnotify-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/fsnotify/fsnotify
27   install -Dm644 fsnotify-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/