| 1 | # Contributor: Leo <[email protected]> |
| 2 | # Contributor: Sören Tempel <[email protected]> |
| 3 | # Contributor: Eivind Uggedal <[email protected]> |
| 4 | # Maintainer: Roberto Oliveira <[email protected]> |
| 5 | pkgname=hub |
| 6 | pkgver=2.14.2 |
| 7 | pkgrel=42 |
| 8 | pkgdesc="Extends git with extra features for GitHub" |
| 9 | url="https://hub.github.com/" |
| 10 | arch="all" |
| 11 | license="MIT" |
| 12 | makedepends="go bash ca-certificates" |
| 13 | options="net chmod-clean" |
| 14 | subpackages=" |
| 15 | $pkgname-doc |
| 16 | $pkgname-bash-completion |
| 17 | $pkgname-zsh-completion |
| 18 | $pkgname-fish-completion |
| 19 | " |
| 20 | source="$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 | |
| 25 | prepare() { |
| 26 | default_prepare |
| 27 | |
| 28 | go mod vendor |
| 29 | } |
| 30 | |
| 31 | build() { |
| 32 | make |
| 33 | make man-pages |
| 34 | } |
| 35 | |
| 36 | check() { |
| 37 | ./bin/hub --version |
| 38 | } |
| 39 | |
| 40 | package() { |
| 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 | |
| 50 | sha512sums=" |
| 51 | 4809d12966cc983f42c8aef482e07bc4226e25fc4deba838e418664ce14ac9d2ac42842d0721a46466a80c0e492392542ecfaaccc2cea0efdd60df8b60a3ca02 hub-2.14.2.tar.gz |
| 52 | 7099aac144abc7747e8dca3ff0ac28073c2e8aed45311c84675459b9ff5f6ee6798453458ded2ade2bb261b48c6b13ca936cb81d1b8b9a16eb120944e8ce48de no-txt-man-pages.patch |
| 53 | 67453a1b38e7aad8439d413cd296b7b247dbaa42c1d176c9db089663bedc77ebdcf8ee334763e2cc7a70f5e8c688c98521f6dfdda3054d2107ff2bbb84ecf2b0 update-x-sys.patch |
| 54 | " |