blob: b6edd4ad8f6b61b8f449c1cb1aea5858c2ded5e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Max Harmathy <harmathy@secure.mailbox.org>
# Contributor: Arturo Penen <apenen@gmail.com>
pkgname=ghorg
pkgver=1.11.0
pkgrel=1
pkgdesc='allows you to quickly clone all of an orgs, or users repos into a single directory.'
arch=('x86_64')
url='https://github.com/gabrie30/ghorg'
license=('Apache-2.0')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('04ea9d2137e5a2cbde46b7ce6519e46cce182436b0d91d45b813411407ac2991')
build() {
cd $pkgname-$pkgver
go build
}
package() {
install -Dm 755 "${pkgname}-${pkgver}/ghorg" "${pkgdir}/usr/bin/ghorg"
# Populate bash and zsh completions
install -dm 755 "${pkgdir}/usr/share/bash-completion/completions"
install -dm 755 "${pkgdir}/usr/share/zsh/site-functions"
"${pkgdir}/usr/bin/ghorg" completion bash > "${pkgdir}/usr/share/bash-completion/completions/ghorg"
"${pkgdir}/usr/bin/ghorg" completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_ghorg"
}
|