aboutsummaryrefslogblamecommitdiffstats
path: root/testing/hub/APKBUILD
blob: 98be5bc2851014142d53af05e629960466ab35c8 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             
                                                              
                                         
                                                            
           
             
        
                                                    
                             
          
             
                                                      
                        

                    
                                                

                                                 

                                                                                       
                                            

           

                                       

                       
 
         
                      
                               

                      

 

                      
                         

 
           
                      
                                         
 



                                               
                                                              
 
                                                               
                                                                           





                                                  
 
                                                                
                                                                   

 









                                                                                                                                                                
# 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.11.2
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() {
	cd "$builddir"
	export GOPATH="$srcdir"
	make
	make man-pages
}

check() {
	cd "$builddir"
	bin/hub --version
}

package() {
	cd "$builddir"
	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="3b8230d1ee6619c2fe502cd3a7ad04aeab4ca77a6251c4d50c87addad3e3cbb043c8c102b080cb7a528e1d72f1ac6a59d8ca1c024f15601aa35b74961590420d  hub-2.11.2.tar.gz"