archrelease: copy trunk to community-any
[ArchLinux/community.git] / golang-github-kr-pty / repos / community-any / PKGBUILD
blobe62a9d4a953c709ef99909a1f098ed86d39af7ac
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=golang-github-kr-pty
4 pkgver=1.1.6
5 pkgrel=2
6 pkgdesc='PTY interface for Go'
7 arch=('any')
8 url="https://github.com/kr/pty"
9 license=('MIT')
10 depends=('go')
11 source=("$pkgname-$pkgver.tar.gz::https://github.com/kr/pty/archive/v$pkgver.tar.gz")
12 sha512sums=('d2fb6b0f4f980ff0135a34db1e9f4fe8ee31df47f19462b804a6979447752107965c1836409359ea85c6d3cdef6e106ac8bd1bb264e09954d9d85f40f57d0c48')
14 check() {
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 ./...)
22 package() {
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