Commit 26d2b14f authored by Alan Hardman's avatar Alan Hardman

Use binaries as source URLs

parent 2fd6f34b
...@@ -4,30 +4,23 @@ class Micro < Package ...@@ -4,30 +4,23 @@ class Micro < Package
description 'A modern and intuitive terminal-based text editor' description 'A modern and intuitive terminal-based text editor'
homepage 'https://micro-editor.github.io/' homepage 'https://micro-editor.github.io/'
version '1.3.3' version '1.3.3'
source_url 'https://github.com/zyedidia/micro/archive/v1.3.3.tar.gz'
source_sha256 '22256792cd7136996f0b62f0ac789c1d86b4b96a01390058570b4b067592160b'
binary_url ({ case ARCH
armv7l: 'https://github.com/Alanaktion/chromebrew/releases/download/micro-v1.3.3/micro-1.3.3-arm.tar.xz', when 'aarch64'
aarch64: 'https://github.com/Alanaktion/chromebrew/releases/download/micro-v1.3.3/micro-1.3.3-arm.tar.xz', source_url 'https://github.com/zyedidia/micro/releases/download/v1.3.3/micro-1.3.3-linux-arm.tar.gz'
i686: 'https://github.com/Alanaktion/chromebrew/releases/download/micro-v1.3.3/micro-1.3.3-i686.tar.xz', source_sha256 '1d6ce6042b13fa19ecbae8b5a4d11b9e8d21b44f3720110993f62014199cd34c'
x86_64: 'https://github.com/Alanaktion/chromebrew/releases/download/micro-v1.3.3/micro-1.3.3-x86_64.tar.xz', when 'armv7l'
}) source_url 'https://github.com/zyedidia/micro/releases/download/v1.3.3/micro-1.3.3-linux-arm.tar.gz'
binary_sha256 ({ source_sha256 '1d6ce6042b13fa19ecbae8b5a4d11b9e8d21b44f3720110993f62014199cd34c'
armv7l: 'a33553178de468deee6922b6ddbedd2f7340eece225f143e0514838637220d0f', when 'i686'
aarch64: 'a33553178de468deee6922b6ddbedd2f7340eece225f143e0514838637220d0f', source_url 'https://github.com/zyedidia/micro/releases/download/v1.3.3/micro-1.3.3-linux32.tar.gz'
i686: '90ee8680dbde1ef467f32a0c291fd244ada8dc6eb6ac89d8056a3617cfb93251', source_sha256 '7600666ae08a878c40efa2448fce03a042a18132a2a7f27e134502d36065193d'
x86_64: '7cc32cbc7fccf0e8fd48a2ab38d9e32a0d645dfee69a329c802d1802253ddbab', when 'x86_64'
}) source_url 'https://github.com/zyedidia/micro/releases/download/v1.3.3/micro-1.3.3-linux64.tar.gz'
source_sha256 '329f746e4ee9edf244618dda4208b638fda34c593d5cd96d8f71dc3b53e3d994'
depends_on 'go' => :build end
def self.install def self.install
system "go get -d github.com/zyedidia/micro/cmd/micro" system "install -Dm755 micro #{CREW_DEST_PREFIX}/bin/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
end end
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