# Maintainer: NOGISAKA Sadata # Contributor: Kohei Suzuki pkgname=ghq pkgver=1.6.1 pkgrel=2 pkgdesc="Remote repository management made easy" arch=('i686' 'x86_64' 'aarch64') url="https://github.com/x-motemen/ghq" license=('MIT') makedepends=('go' 'git') # Yes, you're right; no git-depended lines in the PKGBUILD but `make test` requires git... optdepends=('zsh: ghq function for zsh') conflicts=('ghq-bin') source=("https://github.com/x-motemen/${pkgname}/archive/v${pkgver}.tar.gz") build() { cd "${srcdir}/${pkgname}-${pkgver}" export GOPATH="$srcdir/build" go get -t -d -v make build } package() { cd "${srcdir}/${pkgname}-${pkgver}" install -Dm 755 ghq "$pkgdir/usr/bin/ghq" install -Dm 644 misc/bash/_ghq "$pkgdir/usr/share/bash-completion/completions/ghq" install -Dm 644 misc/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=('fd3071e666b31a7ae79908c9ff64ab18ac7c3ee452bcef1745d2f281dd111aa6b81d81ff0b29d76963c478380fb6dc330c3ee4fe325dfbbb121b407373f3be43')