aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hub
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-04-22 22:32:01 -0300
committerKevin Daudt <kdaudt@alpinelinux.org>2019-04-23 17:03:03 +0000
commit19a0e0f612537dfe0fcfca0c1012ac957a33605c (patch)
tree6b3591ec4ea5e2ada192815c2fe7c61e21ae489e /testing/hub
parent8a1eeac295c73e34a0d483f1ace2422399404652 (diff)
downloadaports-19a0e0f612537dfe0fcfca0c1012ac957a33605c.tar.bz2
aports-19a0e0f612537dfe0fcfca0c1012ac957a33605c.tar.xz
testing/hub: update to 2.11.2
Diffstat (limited to 'testing/hub')
-rw-r--r--testing/hub/APKBUILD36
1 files changed, 23 insertions, 13 deletions
diff --git a/testing/hub/APKBUILD b/testing/hub/APKBUILD
index 1399f499f7..9eb02510ba 100644
--- a/testing/hub/APKBUILD
+++ b/testing/hub/APKBUILD
@@ -1,45 +1,46 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Eivind Uggedal <eivind@uggedal.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=hub
-pkgver=2.7.0
+pkgver=2.11.2
pkgrel=0
pkgdesc="Extends git with extra features for GitHub"
-url="http://hub.github.com/"
+url="https://hub.github.com/"
arch="all"
license="MIT"
-makedepends="go dep bash ca-certificates"
+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-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/hub/$pkgname"
+builddir="$srcdir/src/github.com/github/hub"
prepare() {
- mkdir -p ${builddir%/*}
- mv "$srcdir"/$pkgname-$pkgver "$builddir"/
+ mkdir -p "${builddir%/*}"
+ mv $pkgname-$pkgver "$builddir"
default_prepare
}
build() {
cd "$builddir"
export GOPATH="$srcdir"
- dep ensure -v
- ./script/build
+ make
+ make man-pages
}
check() {
cd "$builddir"
- go test ./...
+ bin/hub --version
}
package() {
cd "$builddir"
- install -Dm755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
- install -D -m644 share/man/man1/$pkgname.1.ronn "$pkgdir"/usr/share/man/man1/$pkgname.1
+ make PREFIX="$pkgdir"/usr install
}
bashcomp() {
@@ -60,4 +61,13 @@ zshcomp() {
"$subpkgdir"/usr/share/zsh/site-functions/_$pkgname
}
-sha512sums="77223b0860bac42195dfc43e9164f5da446e414e32d0d3caa931f30e5b06d6f65cd69caa2f5097285a91d2ddb48265dfedec9dd8b361417556ff38782fa1a17c hub-2.7.0.tar.gz"
+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="3b8230d1ee6619c2fe502cd3a7ad04aeab4ca77a6251c4d50c87addad3e3cbb043c8c102b080cb7a528e1d72f1ac6a59d8ca1c024f15601aa35b74961590420d hub-2.11.2.tar.gz"