Date: Friday, February 22, 2019 @ 19:13:40 Author: felixonmars Revision: 435295
archrelease: copy trunk to community-any Added: golang-golang-x-sys/repos/community-any/ golang-golang-x-sys/repos/community-any/PKGBUILD (from rev 435294, golang-golang-x-sys/trunk/PKGBUILD) ----------+ PKGBUILD | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) Copied: golang-golang-x-sys/repos/community-any/PKGBUILD (from rev 435294, golang-golang-x-sys/trunk/PKGBUILD) =================================================================== --- community-any/PKGBUILD (rev 0) +++ community-any/PKGBUILD 2019-02-22 19:13:40 UTC (rev 435295) @@ -0,0 +1,28 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=golang-golang-x-sys +pkgver=0.0.20190222 +_commit=cd391775e71e684db52b63df9affd58269495083 +pkgrel=1 +pkgdesc='Go packages for low-level interaction with the operating system' +arch=('any') +url="https://github.com/golang/sys" +license=('BSD') +depends=('go-pie') +source=("$pkgname-$_commit.tar.gz::https://github.com/golang/sys/archive/$_commit.tar.gz") +sha512sums=('aa7cd0182ec2f4d20924187a0148a27454cb40d957cc44f65e0e684050de76ea19390718511f40bb39bcf12191347bf0aa15f8b158a28a3b330dcf2e99800c4a') + +check() { + export GOPATH="$srcdir/build:/usr/share/gocode" + mkdir -p "$srcdir"/build/src/golang.org/x + cp -a "$srcdir"/sys-$_commit "$srcdir"/build/src/golang.org/x/sys + cd "$srcdir"/build/src/golang.org/x/sys + go test -v $(go list ./... | grep -v vendor) +} + +package() { + mkdir -p "$pkgdir"/usr/share/gocode/src/golang.org/x + cp -a "$srcdir"/sys-$_commit "$pkgdir"/usr/share/gocode/src/golang.org/x/sys + + install -Dm644 sys-$_commit/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}