mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
36 lines
1.4 KiB
Ruby
36 lines
1.4 KiB
Ruby
require 'package'
|
|
|
|
class Dart < Package
|
|
description 'The Dart SDK is a set of tools and libraries for the Dart programming language. You can find information about Dart online at dartlang.org.'
|
|
homepage 'https://dart.dev/'
|
|
@_ver = '2.10.5'
|
|
version @_ver
|
|
license 'BSD-3'
|
|
compatibility 'all'
|
|
case ARCH
|
|
when 'aarch64', 'armv7l'
|
|
source_url "https://storage.googleapis.com/dart-archive/channels/stable/release/#{@_ver}/sdk/dartsdk-linux-arm-release.zip"
|
|
source_sha256 '12db2a878a450586da9cba8f22adaec23ae2d7c8b4838a2be58687c28d5b6814'
|
|
when 'i686'
|
|
source_url "https://storage.googleapis.com/dart-archive/channels/stable/release/#{@_ver}/sdk/dartsdk-linux-ia32-release.zip"
|
|
source_sha256 'c7319de95d1e9c471d8dbe80ebdabc0c437e5ec21c7814c96b79a9ba79c6e481'
|
|
when 'x86_64'
|
|
source_url "https://storage.googleapis.com/dart-archive/channels/stable/release/#{@_ver}/sdk/dartsdk-linux-x64-release.zip"
|
|
source_sha256 '5037a2c0fd631afc1e77e8ef86fe1ab60420d810cab67ac86f4179d9f7a866d5'
|
|
end
|
|
|
|
binary_url({
|
|
})
|
|
binary_sha256({
|
|
})
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p CREW_DEST_PREFIX
|
|
FileUtils.mkdir_p CREW_DEST_LIB_PREFIX
|
|
FileUtils.cp_r 'bin/', CREW_DEST_PREFIX
|
|
FileUtils.cp_r 'include/', CREW_DEST_PREFIX
|
|
FileUtils.cp_r Dir.glob('lib/*'), CREW_DEST_LIB_PREFIX
|
|
FileUtils.cp 'version', CREW_DEST_PREFIX # This stops 'pub get' from throwing errors
|
|
end
|
|
end
|