void-packages/srcpkgs/go/template
Juan RP 23dd7d008e Update build_style for all templates.
- There's no need to set build_style for custom-install (default).
- gnu_{configure,makefile} renamed to gnu-{configure,makefile}.
2011-10-24 14:14:47 +02:00

52 lines
1.4 KiB
Text

# Template file for 'go'
pkgname=go
version=r58
revision=1
short_desc="The Go Programming Language"
maintainer="Juan RP <xtraeme@gmail.com>"
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."
nofetch=yes
noextract=yes
nostrip=yes
Add_dependency run make
Add_dependency run glibc
Add_dependency build mercurial
Add_dependency build coreutils
Add_dependency build ed
Add_dependency build bison
Add_dependency build gawk
Add_dependency build glibc-devel
do_fetch() {
local url="https://go.googlecode.com/hg"
hg clone -u ${version} ${url} ${pkgname}-${version}
}
do_build() {
cd ${wrksrc}/src
GOROOT="${wrksrc}/${build_wrksrc}"
GOROOT_FINAL="/opt/go/"
bash ./make.bash
hg --config extensions.purge= purge . --all
}
do_install() {
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
}