Commit 2fd6f34b authored by Alan Hardman's avatar Alan Hardman

Fixing micro build script

parent fa668a27
......@@ -22,16 +22,12 @@ class Micro < Package
depends_on 'go' => :build
def self.build
system "go get -d github.com/zyedidia/micro/cmd/micro"
end
def self.install
system "cd $GOPATH/src/github.com/zyedidia/micro"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system "go get -d github.com/zyedidia/micro/cmd/micro"
gopath = `go env GOPATH`.strip
Dir.chdir "#{gopath}/src/github.com/zyedidia/micro/cmd/micro" do
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "go build -o #{CREW_DEST_DIR}/usr/local/bin/micro"
end
def self.postinstall
system "rm -f #{CREW_DEST_DIR}/{LICENSE,LICENSE-THIRD-PARTY,README.md}"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment