1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=golang-golang-x-sys
5 _commit=4fee21c923398823434653737e3d413027fe4cdd
7 pkgdesc='Go packages for low-level interaction with the operating system'
9 url="https://github.com/golang/sys"
13 source=("git+https://github.com/golang/sys.git#commit=$_commit")
17 export GOPATH="$srcdir/build:/usr/share/gocode"
18 mkdir -p "$srcdir"/build/src/golang.org/x
19 cp -a "$srcdir"/sys "$srcdir"/build/src/golang.org/x/sys
20 cd "$srcdir"/build/src/golang.org/x/sys
21 go test -v $(go list ./...)
25 mkdir -p "$pkgdir"/usr/share/gocode/src/golang.org/x
26 cp -a "$srcdir"/sys "$pkgdir"/usr/share/gocode/src/golang.org/x/sys
27 rm -r "$pkgdir"/usr/share/gocode/src/golang.org/x/sys/.git
29 install -Dm644 sys/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/