2014-02-20 08:44:51 +00:00
|
|
|
# Template file for 'hub'
|
2014-02-20 08:43:35 +00:00
|
|
|
pkgname=hub
|
2015-02-15 11:01:13 +00:00
|
|
|
version=2.2.0
|
2014-06-05 08:24:23 +00:00
|
|
|
revision=1
|
2014-02-20 08:43:35 +00:00
|
|
|
homepage="http://hub.github.com/"
|
|
|
|
distfiles="https://github.com/github/hub/archive/v${version}.tar.gz"
|
2015-02-15 11:01:13 +00:00
|
|
|
hostmakedepends="go"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" go-cross-linux"
|
|
|
|
fi
|
2014-03-30 19:40:45 +00:00
|
|
|
short_desc="command line tool for Github"
|
2014-02-20 08:43:35 +00:00
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
license="MIT"
|
2015-02-15 11:01:13 +00:00
|
|
|
checksum=2da1351197eb5696c207f22c69a5422af052d74277b73d0b8661efb9ec1d0eb1
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
armv6*) export GOARCH=arm; export GOARM=6;;
|
|
|
|
armv7*) export GOARCH=arm; export GOARM=7;;
|
|
|
|
i686*) export GOARCH=386;;
|
|
|
|
x86_64*) export GOARCH=amd64;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
export GOPATH="$PWD/gopath"
|
|
|
|
mkdir -p $GOPATH/src/github.com/github
|
|
|
|
ln -sf $PWD $GOPATH/src/github.com/github/${pkgname}
|
|
|
|
go build -v github.com/github/${pkgname}
|
|
|
|
}
|
2014-02-20 08:43:35 +00:00
|
|
|
|
|
|
|
do_install() {
|
2015-02-15 11:01:13 +00:00
|
|
|
vbin ${pkgname}
|
|
|
|
vman man/${pkgname}.1
|
|
|
|
vlicense LICENSE
|
2014-02-20 08:43:35 +00:00
|
|
|
}
|