-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplan.sh
36 lines (31 loc) · 881 Bytes
/
plan.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pkg_name=vj-text-adventure
pkg_description="silly game from tutorial"
pkg_origin=vjeffrey
pkg_version="0.0.0"
pkg_maintainer="Victoria Jeffrey <vjeffrey@chef.io>"
pkg_license=('UNLICENSED')
pkg_upstream_url="https://github.com/vjeffrey/playtime-with-golang"
pkg_interpreters=(bin/bash)
pkg_deps=(core/coreutils)
pkg_build_deps=(core/go/1.8 core/git core/make core/which)
pkg_bin_dirs=(bin)
do_begin() {
export GOPATH="${HAB_CACHE_ARTIFACT_PATH}/.go"
export GOBIN="${GOPATH}/bin"
export REPO="${GOPATH}/src/github.com/playtime-with-golang"
}
do_download() {
mkdir -p ${GOPATH}
rm -rf ${REPO}
git clone https://github.com/vjeffrey/playtime-with-golang.git ${REPO}
}
do_build() {
pushd ${REPO}
PATH="${PATH}:${REPO}" go build .
popd
}
do_install() {
pushd ${REPO}
PATH="${PATH}:${REPO}" go get github.com/Sirupsen/logrus && go get github.com/lib/pq
popd
}