# Maintainer: NOGISAKA Sadata # Contributor: Kohei Suzuki pkgname=ghq pkgver=0.17.0 pkgrel=1 pkgdesc="Remote repository management made easy" arch=('i686' 'x86_64') url="https://github.com/motemen/ghq" license=('MIT') makedepends=('go' 'git') optdepends=('zsh: ghq function for zsh') source=("ghq-${pkgver}.tar.gz::https://github.com/motemen/ghq/archive/v${pkgver}.tar.gz") build() { cd "$srcdir/$pkgname-$pkgver" export GOPATH="$srcdir/build" go get -t -d -v go build . } check() { cd "$srcdir/$pkgname-$pkgver" export GOPATH="$srcdir/build" go test -x -v . } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm 755 ghq "$pkgdir/usr/bin/ghq" install -Dm 644 zsh/_ghq "$pkgdir/usr/share/zsh/site-functions/_ghq" install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/ghq/LICENSE" } # vim: set et sw=2 sts=2: sha512sums=('56a850c27514b7b522dd50d9810e8e5410d81458cdcc828c48435ef4dda2ffee1328c6924af55fee11e7ecc82274f95b70bb8bcae45b4cb899b98b48a6c5ae5e')