projects/aports·blob master · refs

54 lines · 1.6 KiB

1# Contributor: Leo <[email protected]>
2# Contributor: Sören Tempel <[email protected]>
3# Contributor: Eivind Uggedal <[email protected]>
4# Maintainer: Roberto Oliveira <[email protected]>
5pkgname=hub
6pkgver=2.14.2
7pkgrel=42
8pkgdesc="Extends git with extra features for GitHub"
9url="https://hub.github.com/"
10arch="all"
11license="MIT"
12makedepends="go bash ca-certificates"
13options="net chmod-clean"
14subpackages="
15 $pkgname-doc
16 $pkgname-bash-completion
17 $pkgname-zsh-completion
18 $pkgname-fish-completion
19 "
20source="$pkgname-$pkgver.tar.gz::https://github.com/github/hub/archive/v$pkgver.tar.gz
21 no-txt-man-pages.patch
22 update-x-sys.patch
23 "
24
25prepare() {
26 default_prepare
27
28 go mod vendor
29}
30
31build() {
32 make
33 make man-pages
34}
35
36check() {
37 ./bin/hub --version
38}
39
40package() {
41 make PREFIX="$pkgdir"/usr install
42 install -Dm644 "$builddir"/etc/hub.bash_completion.sh \
43 "$pkgdir"/usr/share/bash-completion/completions/$pkgname
44 install -Dm644 "$builddir"/etc/$pkgname.zsh_completion \
45 "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
46 install -Dm644 "$builddir"/etc/$pkgname.fish_completion \
47 "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish
48}
49
50sha512sums="
514809d12966cc983f42c8aef482e07bc4226e25fc4deba838e418664ce14ac9d2ac42842d0721a46466a80c0e492392542ecfaaccc2cea0efdd60df8b60a3ca02 hub-2.14.2.tar.gz
527099aac144abc7747e8dca3ff0ac28073c2e8aed45311c84675459b9ff5f6ee6798453458ded2ade2bb261b48c6b13ca936cb81d1b8b9a16eb120944e8ce48de no-txt-man-pages.patch
5367453a1b38e7aad8439d413cd296b7b247dbaa42c1d176c9db089663bedc77ebdcf8ee334763e2cc7a70f5e8c688c98521f6dfdda3054d2107ff2bbb84ecf2b0 update-x-sys.patch
54"