Date: Tuesday, May 7, 2019 @ 14:17:24 Author: felixonmars Revision: 462157
archrelease: copy trunk to community-any Added: golang-github-kr-pty/repos/community-any/PKGBUILD (from rev 462156, golang-github-kr-pty/trunk/PKGBUILD) Deleted: golang-github-kr-pty/repos/community-any/PKGBUILD ----------+ PKGBUILD | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-05-07 14:17:14 UTC (rev 462156) +++ PKGBUILD 2019-05-07 14:17:24 UTC (rev 462157) @@ -1,19 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgname=golang-github-kr-pty -pkgver=1.1.3 -pkgrel=1 -pkgdesc='PTY interface for Go' -arch=('any') -url="https://github.com/kr/pty" -license=('MIT') -depends=('go-pie') -source=("$pkgname-$pkgver.tar.gz::https://github.com/kr/pty/archive/v$pkgver.tar.gz") -sha512sums=('24fbf4e59bd73e3f8ecaca6e4ffa74e94702a231c3c315c514fa786ebdd1807a1017576506c36340f2ddda33fc860ac3f7c3d6390756f5c06377bc07b40a7276') - -package() { - mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/kr - cp -a "$srcdir"/pty-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/kr/pty - - install -Dm644 pty-$pkgver/License "$pkgdir"/usr/share/licenses/$pkgname/License -} Copied: golang-github-kr-pty/repos/community-any/PKGBUILD (from rev 462156, golang-github-kr-pty/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-05-07 14:17:24 UTC (rev 462157) @@ -0,0 +1,27 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=golang-github-kr-pty +pkgver=1.1.4 +pkgrel=1 +pkgdesc='PTY interface for Go' +arch=('any') +url="https://github.com/kr/pty" +license=('MIT') +depends=('go-pie') +source=("$pkgname-$pkgver.tar.gz::https://github.com/kr/pty/archive/v$pkgver.tar.gz") +sha512sums=('95226bdb7ebcf5b3f267f79aa4b1a21ce19fca25c1c9c4bf7acb24707aebb4888e923de7f91e44f18d61970851bfad6174a147ec09da16e5dad5cc928e7414f8') + +check() { + export GOPATH="$srcdir/build:/usr/share/gocode" + mkdir -p "$srcdir"/build/src/github.com/kr + cp -a "$srcdir"/pty-$pkgver "$srcdir"/build/src/github.com/kr/pty + cd "$srcdir"/build/src/github.com/kr/pty + go test -v $(go list ./...) +} + +package() { + mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/kr + cp -a "$srcdir"/pty-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/kr/pty + + install -Dm644 pty-$pkgver/License "$pkgdir"/usr/share/licenses/$pkgname/License +}