void-packages/srcpkgs/go/template

46 lines
1.3 KiB
Text
Raw Normal View History

2011-07-05 18:51:42 +00:00
# Template file for 'go'
pkgname=go
2012-01-26 10:09:38 +00:00
version=r60.3
depends="make"
makedepends="mercurial ed bison glibc-devel"
2011-07-05 18:51:42 +00:00
short_desc="The Go Programming Language"
maintainer="Juan RP <xtraeme@gmail.com>"
2011-07-05 18:51:42 +00:00
homepage="http://golang.org/"
license="BSD"
long_desc="
The Go programming language is an open source project to make programmers
more productive. Go is expressive, concise, clean, and efficient. Its
concurrency mechanisms make it easy to write programs that get the most out
of multicore and networked machines, while its novel type system enables
flexible and modular program construction. Go compiles quickly to machine
code yet has the convenience of garbage collection and the power of run-time
reflection. It's a fast, statically typed, compiled language that feels like
a dynamically typed, interpreted language."
2011-07-05 18:51:42 +00:00
nofetch=yes
noextract=yes
nostrip=yes
do_fetch() {
2012-01-26 10:09:38 +00:00
local url="https://go.googlecode.com/hg"
hg clone -u ${version} ${url} ${pkgname}-${version}
2011-07-05 18:51:42 +00:00
}
do_build() {
cd ${wrksrc}/src
2011-07-05 18:51:42 +00:00
GOROOT="${wrksrc}/${build_wrksrc}"
GOROOT_FINAL="/opt/go/"
bash ./make.bash
hg --config extensions.purge= purge . --all
2011-07-05 18:51:42 +00:00
}
do_install() {
2011-07-05 18:51:42 +00:00
vmkdir opt/go 755
for i in bin doc misc src lib include pkg;do
vcopy $i opt/go
done
vinstall ${FILESDIR}/go.sh 644 etc/profile.d
}