Commit 3e86295f authored by Ed Reel's avatar Ed Reel

Update stack from 1.4.0 to 1.5.1

Refactor to use install command
parent 537edfed
......@@ -3,32 +3,26 @@ require 'package'
class Stack < Package
description 'The Haskell Tool Stack - Stack is a cross-platform program for developing Haskell projects. It is aimed at Haskellers both new and experienced.'
homepage 'https://docs.haskellstack.org/en/stable/README/'
version '1.4.0'
version '1.5.1'
case ARCH
when 'aarch64', 'armv7l'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.5.1/stack-1.5.1-linux-arm.tar.gz'
source_sha256 '91a6539494504f670223b8de5af2b87e67267d7c80b4372e6eb3a8577771dbb4'
when 'i686'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.4.0/stack-1.4.0-linux-i386.tar.gz'
source_sha256 'aabd307f7dcb585a7821d7b44a73527f0928a76c48711e6968262ee87c86bc14'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.5.1/stack-1.5.1-linux-i386.tar.gz'
source_sha256 '2973f7baab2f557c113a92a560ad79b887bd57102e8f4a5caf67551a42ea4250'
when 'x86_64'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.4.0/stack-1.4.0-linux-x86_64.tar.gz'
source_sha256 '618a309d763432a2cca654bc29249a77c7de096c693a28b84dd3656470269f5a'
source_url 'https://github.com/commercialhaskell/stack/releases/download/v1.5.1/stack-1.5.1-linux-x86_64.tar.gz'
source_sha256 'b7df551c2f67464bebc5859fc0ecb2dc59cdbeb525af09e05ea4f2752828e542'
end
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/stack-1.4.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/stack-1.4.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/stack-1.4.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/stack-1.4.0-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '5d372b2453b33a0e22e929e50b0eef9893c881b65a6a00f8a3c722ede57a9bf4',
armv7l: '5d372b2453b33a0e22e929e50b0eef9893c881b65a6a00f8a3c722ede57a9bf4',
i686: '2b1103372503767cf3982ce07a2fc9f7ea97bc3e4cee0e27703285f4a9561eea',
x86_64: '85be48d282df764cec7139ffd6e2c9f4b05e437b5b24cba371cdc5dab982c41f',
})
def self.install
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
system "cp stack #{CREW_DEST_DIR}/usr/local/bin"
system "install -Dm755 stack #{CREW_DEST_PREFIX}/bin/stack"
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