blob: de28dacc8b683d023bc0aeac62598195d0ae86e3 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Eivind Uggedal <eu@eju.no>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=hub
pkgver=2.12.1
pkgrel=0
pkgdesc="Extends git with extra features for GitHub"
url="https://hub.github.com/"
arch="all"
license="MIT"
makedepends="go util-linux bash ca-certificates groff"
options="net !checkroot"
subpackages="
$pkgname-doc
$pkgname-bash-completion:bashcomp:noarch
$pkgname-zsh-completion:zshcomp:noarch
$pkgname-fish-completion:fishcomp:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/github/hub/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/github/hub"
prepare() {
mkdir -p "${builddir%/*}"
mv $pkgname-$pkgver "$builddir"
default_prepare
}
build() {
export GOPATH="$srcdir"
make
make man-pages
}
check() {
bin/hub --version
}
package() {
make PREFIX="$pkgdir"/usr install
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -Dm644 "$builddir"/etc/hub.bash_completion.sh \
"$subpkgdir"/usr/share/bash-completion/completions/$pkgname
}
zshcomp() {
depends=""
pkgdesc="Zsh completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
install -Dm644 "$builddir"/etc/$pkgname.zsh_completion \
"$subpkgdir"/usr/share/zsh/site-functions/_$pkgname
}
fishcomp() {
depends=""
pkgdesc="Fish completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel fish"
install -Dm644 "$builddir"/etc/$pkgname.fish_completion \
"$subpkgdir"/usr/share/fish/completions/$pkgname.fish
}
sha512sums="c7b62758e423bf69fde2a4b040e1a9586cf76c2fbe633f4abc8ec465db1e37694efec23ce947b71c4131f5c73a37b5427f6c454061d2eb743a6b5f4c4e274107 hub-2.12.1.tar.gz"
|