34 lines
550 B
Ruby
34 lines
550 B
Ruby
$repo = "git.xeserv.us/xena/vyvanse"
|
|
$gover = "1.9"
|
|
|
|
from "xena/go-mini:#{$gover}"
|
|
run "go#{$gover} download"
|
|
|
|
def foldercopy(dir)
|
|
copy "#{dir}", "/root/go/src/#{$repo}/#{dir}"
|
|
end
|
|
|
|
def gobuild(pkg)
|
|
run "go#{$gover} build #{$repo}/#{pkg} && go#{$gover} install #{$repo}/#{pkg}"
|
|
end
|
|
|
|
folders = [
|
|
"bot",
|
|
"cmd",
|
|
"internal",
|
|
"vendor",
|
|
"vendor-log"
|
|
]
|
|
|
|
folders.each { |x| foldercopy x }
|
|
|
|
gobuild "cmd/vyvanse"
|
|
|
|
cmd "/vyvanse"
|
|
|
|
run "rm -rf $HOME/sdk /root/go/pkg /root/go/bin/vyvanse ||:"
|
|
run "apk del go#{$gover}"
|
|
flatten
|
|
|
|
tag "xena/vyvanse"
|