1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=golang-github-kr-pty
6 pkgdesc='PTY interface for Go'
8 url="https://github.com/kr/pty"
11 source=("$pkgname-$pkgver.tar.gz::https://github.com/kr/pty/archive/v$pkgver.tar.gz")
12 sha512sums=('d2fb6b0f4f980ff0135a34db1e9f4fe8ee31df47f19462b804a6979447752107965c1836409359ea85c6d3cdef6e106ac8bd1bb264e09954d9d85f40f57d0c48')
15 export GOPATH="$srcdir/build:/usr/share/gocode"
16 mkdir -p "$srcdir"/build/src/github.com/kr
17 cp -a "$srcdir"/pty-$pkgver "$srcdir"/build/src/github.com/kr/pty
18 cd "$srcdir"/build/src/github.com/kr/pty
19 go test -v $(go list ./...)
23 mkdir -p "$pkgdir"/usr/share/gocode/src/github.com/kr
24 cp -a "$srcdir"/pty-$pkgver "$pkgdir"/usr/share/gocode/src/github.com/kr/pty
26 install -Dm644 pty-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE