void-packages/srcpkgs/xbps-go/template

40 lines
725 B
Text
Raw Normal View History

2011-07-09 23:20:25 +00:00
# Template file for 'xbps-go'
pkgname=xbps-go
2011-07-12 07:43:07 +00:00
version=0.0.2
2011-07-09 23:20:25 +00:00
build_style=custom-install
build_wrksrc=xbps-go
short_desc="xbps go programs"
maintainer="Mike Rosset <mike.rosset@gmail.com>"
homepage="https://github.com/vanilla/xbps-go"
license="BSD"
long_desc="
Set of go programs used to interface with xbp-src and xbps.
"
nofetch=yes
noextract=yes
nostrip=yes
Add_dependency run glibc
Add_dependency build go
Add_dependency build git
do_fetch()
{
local url="git://github.com/vanilla/xbps-go.git"
cd $wrksrc
git clone ${url} ${build_wrksrc}
}
do_build()
{
. /etc/profile.d/go.sh
2011-07-10 12:36:18 +00:00
GOPATH=${wrksrc}/${build_wrksrc} goinstall upstream
2011-07-09 23:20:25 +00:00
}
do_install()
{
cd ${wrksrc}/${build_wrksrc}
vinstall bin/upstream 755 usr/bin
}