Add Rubocop CI (#7083)

* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Maximilian Downey Twiss
2022-08-23 03:31:25 +10:00
committed by GitHub
parent 4c0f15a6f3
commit de24923ee8
1144 changed files with 7527 additions and 7515 deletions

15
.github/workflows/Rubocop.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: Rubocop
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: rubocop
uses: Freshly/Octocop@v0.0.2
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-check
rubocop_flags: "-c .rubocop.yml"

View File

@@ -12,30 +12,165 @@
AllCops:
NewCops: enable
TargetRubyVersion: 3.0
Exclude:
- 'lib/docopt.rb'
# These cops have been temporarily disabled and should be reenabled asap
Security/Eval:
Enabled: false
Naming/ClassAndModuleCamelCase:
# Disable this cop for every file in packages/
Enabled: false
Naming/MethodParameterName:
Enabled: false
Naming/MethodName:
Enabled: false
Naming/VariableName:
Enabled: false
Naming/PredicateName:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Metrics/BlockNesting:
Enabled: false
Metrics/ParameterLists:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Layout/LineContinuationLeadingSpace:
Enabled: false
Lint/EmptyBlock:
Enabled: false
Lint/ImplicitStringConcatenation:
Enabled: false
Lint/UnreachableCode:
Enabled: false
Lint/DuplicateBranch:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false
Lint/LiteralAsCondition:
Enabled: false
Lint/UnderscorePrefixedVariableName:
Enabled: false
Lint/EmptyWhen:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Lint/MissingSuper:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
Lint/SuppressedException:
Enabled: false
Layout/LineLength:
AllowedPatterns:
- '#'
- 'description'
# When this is reenabled, keep the AllowedPatterns configuration
Enabled: false
Layout/HashAlignment:
EnforcedHashRocketStyle:
- separator
EnforcedColonStyle:
- separator
# When this is reenabled, keep the EnforcedHashRocketStyle and EnforcedColonStyle configuration
Enabled: false
# End temporarily disabled cops
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/IndentationStyle:
EnforcedStyle: spaces
Style/RedundantReturn:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/MutableConstant:
Enabled: false
Style/Documentation:
Enabled: false
Style/GuardClause:
Enabled: false
Style/DocumentDynamicEvalDefinition:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false
Style/ClassVars:
Enabled: false
Style/GlobalVars:
Enabled: false
Style/FormatStringToken:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/NumericLiterals:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
Naming/BlockParameterName:
Enabled: false
Naming/VariableNumber:
Enabled: false
Naming/ClassAndModuleCamelCase:
Naming/HeredocDelimiterNaming:
Enabled: false
Metrics/MethodLength:
Enabled: false
Layout/LineLength:
IgnoredPatterns: ['description']

771
bin/crew

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
# Colorization for strings
class String
@use_color = STDOUT.isatty
@use_color = $stdout.isatty
class << self
attr_accessor :use_color

View File

@@ -5,111 +5,111 @@ CREW_VERSION = '1.25.3'
ARCH_ACTUAL = `uname -m`.chomp
# This helps with virtualized builds on aarch64 machines
# which report armv8l when linux32 is run.
ARCH = ( ARCH_ACTUAL == 'armv8l' ) ? 'armv7l' : ARCH_ACTUAL
ARCH = ARCH_ACTUAL == 'armv8l' ? 'armv7l' : ARCH_ACTUAL
# Allow for edge case of i686 install on a x86_64 host before linux32 is
# downloaded, e.g. in a docker container.
ARCH_LIB = ( ARCH == 'x86_64' and Dir.exist?('/lib64') ) ? 'lib64' : 'lib'
ARCH_LIB = (ARCH == 'x86_64') && Dir.exist?('/lib64') ? 'lib64' : 'lib'
# Glibc version can be found from the output of libc.so.6
LIBC_VERSION = %x[/#{ARCH_LIB}/libc.so.6][/Gentoo ([^-]+)/, 1]
LIBC_VERSION = `/#{ARCH_LIB}/libc.so.6`[/Gentoo ([^-]+)/, 1]
unless ENV['CREW_PREFIX'].to_s.empty? or ENV['CREW_PREFIX'] == '/usr/local'
CREW_BUILD_FROM_SOURCE = 1
CREW_PREFIX = ENV['CREW_PREFIX']
HOME = CREW_PREFIX + ENV['HOME']
else
CREW_BUILD_FROM_SOURCE = ENV['CREW_BUILD_FROM_SOURCE']
if ENV['CREW_PREFIX'].to_s.empty? || (ENV['CREW_PREFIX'] == '/usr/local')
CREW_BUILD_FROM_SOURCE = ENV.fetch('CREW_BUILD_FROM_SOURCE', nil)
CREW_PREFIX = '/usr/local'
HOME = ENV['HOME']
HOME = Dir.home
else
CREW_BUILD_FROM_SOURCE = 1
CREW_PREFIX = ENV.fetch('CREW_PREFIX', nil)
HOME = CREW_PREFIX + Dir.home
end
CREW_LIB_PREFIX = CREW_PREFIX + '/' + ARCH_LIB
CREW_MAN_PREFIX = CREW_PREFIX + '/share/man'
CREW_LIB_PATH = CREW_PREFIX + '/lib/crew/'
CREW_PACKAGES_PATH = CREW_LIB_PATH + 'packages/'
CREW_CONFIG_PATH = CREW_PREFIX + '/etc/crew/'
CREW_META_PATH = CREW_CONFIG_PATH + 'meta/'
CREW_BREW_DIR = CREW_PREFIX + '/tmp/crew/'
CREW_DEST_DIR = CREW_BREW_DIR + 'dest'
CREW_LIB_PREFIX = "#{CREW_PREFIX}/#{ARCH_LIB}"
CREW_MAN_PREFIX = "#{CREW_PREFIX}/share/man"
CREW_LIB_PATH = "#{CREW_PREFIX}/lib/crew/"
CREW_PACKAGES_PATH = "#{CREW_LIB_PATH}packages/"
CREW_CONFIG_PATH = "#{CREW_PREFIX}/etc/crew/"
CREW_META_PATH = "#{CREW_CONFIG_PATH}meta/"
CREW_BREW_DIR = "#{CREW_PREFIX}/tmp/crew/"
CREW_DEST_DIR = "#{CREW_BREW_DIR}dest"
CREW_DEST_PREFIX = CREW_DEST_DIR + CREW_PREFIX
CREW_DEST_LIB_PREFIX = CREW_DEST_DIR + CREW_LIB_PREFIX
CREW_DEST_MAN_PREFIX = CREW_DEST_DIR + CREW_MAN_PREFIX
# Put musl build dir under CREW_PREFIX/share/musl to avoid FHS incompatibility
CREW_MUSL_PREFIX = CREW_PREFIX + '/share/musl'
CREW_MUSL_PREFIX = "#{CREW_PREFIX}/share/musl"
CREW_DEST_MUSL_PREFIX = CREW_DEST_DIR + CREW_MUSL_PREFIX
MUSL_LIBC_VERSION = %x[#{CREW_MUSL_PREFIX}/lib/libc.so 2>&1 >/dev/null][/\bVersion\s+\K\S+/] || nil
MUSL_LIBC_VERSION = `#{CREW_MUSL_PREFIX}/lib/libc.so 2>&1 >/dev/null`[/\bVersion\s+\K\S+/] || nil
CREW_DEST_HOME = CREW_DEST_DIR + HOME
# File.join ensures a trailing slash if one does not exist.
if ENV['CREW_CACHE_DIR'].to_s.empty?
CREW_CACHE_DIR = File.join(HOME + '/.cache/crewcache', '')
else
CREW_CACHE_DIR = File.join(ENV['CREW_CACHE_DIR'], '')
end
CREW_CACHE_DIR = if ENV['CREW_CACHE_DIR'].to_s.empty?
File.join("#{HOME}/.cache/crewcache", '')
else
File.join(ENV.fetch('CREW_CACHE_DIR', nil), '')
end
FileUtils.mkdir_p CREW_CACHE_DIR unless Dir.exist?(CREW_CACHE_DIR)
FileUtils.mkdir_p CREW_CACHE_DIR
# Set CREW_NPROC from environment variable or `nproc`
CREW_NPROC = ( ENV['CREW_NPROC'].to_s.empty? ) ? `nproc`.chomp : ENV['CREW_NPROC']
CREW_NPROC = ENV['CREW_NPROC'].to_s.empty? ? `nproc`.chomp : ENV.fetch('CREW_NPROC', nil)
# Set following as boolean if environment variables exist.
CREW_CACHE_ENABLED = !( ENV['CREW_CACHE_ENABLED'].to_s.empty? )
CREW_CONFLICTS_ONLY_ADVISORY = !( ENV['CREW_CONFLICTS_ONLY_ADVISORY'].to_s.empty? ) # or use conflicts_ok
CREW_DISABLE_ENV_OPTIONS = !( ENV['CREW_DISABLE_ENV_OPTIONS'].to_s.empty? ) # or use no_env_options
CREW_FHS_NONCOMPLIANCE_ONLY_ADVISORY = !( ENV['CREW_FHS_NONCOMPLIANCE_ONLY_ADVISORY'].to_s.empty? ) # or use no_fhs
CREW_LA_RENAME_ENABLED = !( ENV['CREW_LA_RENAME_ENABLED'].to_s.empty? )
CREW_NOT_COMPRESS = !( ENV['CREW_NOT_COMPRESS'].to_s.empty? )
CREW_NOT_STRIP = !( ENV['CREW_NOT_STRIP'].to_s.empty? )
CREW_NOT_SHRINK_ARCHIVE = !( ENV['CREW_NOT_SHRINK_ARCHIVE'].to_s.empty? )
CREW_CACHE_ENABLED = !ENV['CREW_CACHE_ENABLED'].to_s.empty?
CREW_CONFLICTS_ONLY_ADVISORY = !ENV['CREW_CONFLICTS_ONLY_ADVISORY'].to_s.empty? # or use conflicts_ok
CREW_DISABLE_ENV_OPTIONS = !ENV['CREW_DISABLE_ENV_OPTIONS'].to_s.empty? # or use no_env_options
CREW_FHS_NONCOMPLIANCE_ONLY_ADVISORY = !ENV['CREW_FHS_NONCOMPLIANCE_ONLY_ADVISORY'].to_s.empty? # or use no_fhs
CREW_LA_RENAME_ENABLED = !ENV['CREW_LA_RENAME_ENABLED'].to_s.empty?
CREW_NOT_COMPRESS = !ENV['CREW_NOT_COMPRESS'].to_s.empty?
CREW_NOT_STRIP = !ENV['CREW_NOT_STRIP'].to_s.empty?
CREW_NOT_SHRINK_ARCHIVE = !ENV['CREW_NOT_SHRINK_ARCHIVE'].to_s.empty?
# Set testing constants from environment variables
CREW_TESTING_BRANCH = ENV['CREW_TESTING_BRANCH']
CREW_TESTING_REPO = ENV['CREW_TESTING_REPO']
CREW_TESTING_BRANCH = ENV.fetch('CREW_TESTING_BRANCH', nil)
CREW_TESTING_REPO = ENV.fetch('CREW_TESTING_REPO', nil)
CREW_TESTING = ( CREW_TESTING_BRANCH.to_s.empty? or CREW_TESTING_REPO.to_s.empty? ) ? '0' : ENV['CREW_TESTING']
CREW_TESTING = CREW_TESTING_BRANCH.to_s.empty? || CREW_TESTING_REPO.to_s.empty? ? '0' : ENV.fetch('CREW_TESTING', nil)
USER = `whoami`.chomp
CHROMEOS_RELEASE = if File.exist?('/etc/lsb-release')
File.read('/etc/lsb-release')[/CHROMEOS_RELEASE_CHROME_MILESTONE=(.+)/, 1]
else
# newer version of Chrome OS exports info to env by default
ENV['CHROMEOS_RELEASE_CHROME_MILESTONE']
end
File.read('/etc/lsb-release')[/CHROMEOS_RELEASE_CHROME_MILESTONE=(.+)/, 1]
else
# newer version of Chrome OS exports info to env by default
ENV.fetch('CHROMEOS_RELEASE_CHROME_MILESTONE', nil)
end
# If CREW_USE_CURL environment variable exists use curl in lieu of net/http.
CREW_USE_CURL = ENV['CREW_USE_CURL'].eql?('1')
# Use an external downloader instead of net/http if CREW_DOWNLOADER is set, see lib/downloader.rb for more info
# About the format of the CREW_DOWNLOADER variable, see line 130-133 in lib/downloader.rb
CREW_DOWNLOADER = ( ENV['CREW_DOWNLOADER'].to_s.empty? ) ? nil : ENV['CREW_DOWNLOADER']
CREW_DOWNLOADER = ENV['CREW_DOWNLOADER'].to_s.empty? ? nil : ENV.fetch('CREW_DOWNLOADER', nil)
# Downloader maximum retry count
CREW_DOWNLOADER_RETRY = ( ENV['CREW_DOWNLOADER_RETRY'].to_s.empty? ) ? 3 : ENV['CREW_DOWNLOADER_RETRY'].to_i
CREW_DOWNLOADER_RETRY = ENV['CREW_DOWNLOADER_RETRY'].to_s.empty? ? 3 : ENV['CREW_DOWNLOADER_RETRY'].to_i
# show download progress bar or not (only applied when using the default ruby downloader)
CREW_HIDE_PROGBAR = ENV['CREW_HIDE_PROGBAR'].eql?('1')
# set certificate file location for lib/downloader.rb
SSL_CERT_FILE = if ENV['SSL_CERT_FILE'].to_s.empty? || !File.exist?(ENV['SSL_CERT_FILE'])
SSL_CERT_FILE = if ENV['SSL_CERT_FILE'].to_s.empty? || !File.exist?(ENV.fetch('SSL_CERT_FILE', nil))
if File.exist?("#{CREW_PREFIX}/etc/ssl/certs/ca-certificates.crt")
"#{CREW_PREFIX}/etc/ssl/certs/ca-certificates.crt"
else
'/etc/ssl/certs/ca-certificates.crt'
end
else
ENV['SSL_CERT_FILE']
ENV.fetch('SSL_CERT_FILE', nil)
end
SSL_CERT_DIR = if ENV['SSL_CERT_DIR'].to_s.empty? || !Dir.exist?(ENV['SSL_CERT_DIR'])
SSL_CERT_DIR = if ENV['SSL_CERT_DIR'].to_s.empty? || !Dir.exist?(ENV.fetch('SSL_CERT_DIR', nil))
if Dir.exist?("#{CREW_PREFIX}/etc/ssl/certs")
"#{CREW_PREFIX}/etc/ssl/certs"
else
'/etc/ssl/certs'
end
else
ENV['SSL_CERT_DIR']
ENV.fetch('SSL_CERT_DIR', nil)
end
case ARCH
@@ -124,32 +124,32 @@ when 'x86_64'
CREW_BUILD = 'x86_64-cros-linux-gnu'
end
if ENV['CREW_LINKER'].to_s.empty?
CREW_LINKER = 'mold'
else
CREW_LINKER = ENV['CREW_LINKER']
end
CREW_LINKER_FLAGS = ENV['CREW_LINKER_FLAGS']
CREW_LINKER = if ENV['CREW_LINKER'].to_s.empty?
'mold'
else
ENV.fetch('CREW_LINKER', nil)
end
CREW_LINKER_FLAGS = ENV.fetch('CREW_LINKER_FLAGS', nil)
CREW_CORE_FLAGS= "-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=#{CREW_LINKER} #{CREW_LINKER_FLAGS}"
CREW_CORE_FLAGS = "-O2 -pipe -ffat-lto-objects -fPIC -fuse-ld=#{CREW_LINKER} #{CREW_LINKER_FLAGS}"
CREW_COMMON_FLAGS = "#{CREW_CORE_FLAGS} -flto"
CREW_COMMON_FNO_LTO_FLAGS = "#{CREW_CORE_FLAGS} -fno-lto"
CREW_LDFLAGS = "-flto #{CREW_LINKER_FLAGS}"
CREW_FNO_LTO_LDFLAGS = '-fno-lto'
unless CREW_DISABLE_ENV_OPTIONS
CREW_ENV_OPTIONS_HASH = {
'CFLAGS' => CREW_COMMON_FLAGS,
'CXXFLAGS' => CREW_COMMON_FLAGS,
'FCFLAGS' => CREW_COMMON_FLAGS,
'FFLAGS' => CREW_COMMON_FLAGS,
'LDFLAGS' => CREW_LDFLAGS
}
else
CREW_ENV_OPTIONS_HASH = { "CREW_DISABLE_ENV_OPTIONS" => '1' }
end
CREW_ENV_OPTIONS_HASH = if CREW_DISABLE_ENV_OPTIONS
{ 'CREW_DISABLE_ENV_OPTIONS' => '1' }
else
{
'CFLAGS' => CREW_COMMON_FLAGS,
'CXXFLAGS' => CREW_COMMON_FLAGS,
'FCFLAGS' => CREW_COMMON_FLAGS,
'FFLAGS' => CREW_COMMON_FLAGS,
'LDFLAGS' => CREW_LDFLAGS
}
end
# parse from hash to shell readable string
CREW_ENV_OPTIONS = CREW_ENV_OPTIONS_HASH.map {|k, v| "#{k}=\"#{v}\"" } .join(' ')
CREW_ENV_OPTIONS = CREW_ENV_OPTIONS_HASH.map { |k, v| "#{k}=\"#{v}\"" }.join(' ')
CREW_ENV_FNO_LTO_OPTIONS_HASH = {
'CFLAGS' => CREW_COMMON_FNO_LTO_FLAGS,
@@ -159,7 +159,7 @@ CREW_ENV_FNO_LTO_OPTIONS_HASH = {
'LDFLAGS' => CREW_FNO_LTO_LDFLAGS
}
# parse from hash to shell readable string
CREW_ENV_FNO_LTO_OPTIONS = CREW_ENV_FNO_LTO_OPTIONS_HASH.map {|k, v| "#{k}=\"#{v}\"" } .join(' ')
CREW_ENV_FNO_LTO_OPTIONS = CREW_ENV_FNO_LTO_OPTIONS_HASH.map { |k, v| "#{k}=\"#{v}\"" }.join(' ')
CREW_OPTIONS = <<~OPT.chomp
--prefix=#{CREW_PREFIX} \
@@ -197,11 +197,11 @@ CREW_MESON_FNO_LTO_OPTIONS = <<~OPT.chomp
OPT
# Use ninja or samurai
if ENV['CREW_NINJA'].to_s.downcase == 'ninja'
CREW_NINJA = 'ninja'
else
CREW_NINJA = 'samu'
end
CREW_NINJA = if ENV['CREW_NINJA'].to_s.downcase == 'ninja'
'ninja'
else
'samu'
end
# Cmake sometimes wants to use LIB_SUFFIX to install libs in LIB64, so specify such for x86_64
# This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640
@@ -231,14 +231,14 @@ CREW_CMAKE_FNO_LTO_OPTIONS = <<~OPT.chomp
-DCMAKE_BUILD_TYPE=Release
OPT
CREW_LIB_SUFFIX = ( ARCH == 'x86_64' ) ? '64' : ''
CREW_LIB_SUFFIX = ARCH == 'x86_64' ? '64' : ''
CREW_CMAKE_LIBSUFFIX_OPTIONS = "#{CREW_CMAKE_OPTIONS} -DLIB_SUFFIX=#{CREW_LIB_SUFFIX}"
PY3_SETUP_BUILD_OPTIONS = "--executable=#{CREW_PREFIX}/bin/python3"
PY2_SETUP_BUILD_OPTIONS = "--executable=#{CREW_PREFIX}/bin/python2"
PY_SETUP_INSTALL_OPTIONS_NO_SVEM = "--root=#{CREW_DEST_DIR} --prefix=#{CREW_PREFIX} -O2 --compile"
PY_SETUP_INSTALL_OPTIONS = "#{PY_SETUP_INSTALL_OPTIONS_NO_SVEM} --single-version-externally-managed"
PY3_BUILD_OPTIONS = "--wheel --no-isolation"
PY3_BUILD_OPTIONS = '--wheel --no-isolation'
PY3_INSTALLER_OPTIONS = "--destdir=#{CREW_DEST_DIR} --compile-bytecode 2 dist/*.whl"
CREW_ESSENTIAL_FILES = `LD_TRACE_LOADED_OBJECTS=1 #{CREW_PREFIX}/bin/ruby`.scan(/\t([^ ]+)/).flatten +

View File

@@ -1,4 +1,4 @@
def human_size (bytes)
def human_size(bytes)
kilobyte = 1024.0
megabyte = kilobyte * kilobyte
gigabyte = megabyte * kilobyte
@@ -6,11 +6,11 @@ def human_size (bytes)
units = 'B'
size = bytes
end
if bytes >= kilobyte and bytes < megabyte
if (bytes >= kilobyte) && (bytes < megabyte)
units = 'KB'
size = bytes / kilobyte
end
if bytes >= megabyte and bytes < gigabyte
if (bytes >= megabyte) && (bytes < gigabyte)
units = 'MB'
size = bytes / megabyte
end
@@ -18,5 +18,5 @@ def human_size (bytes)
units = 'GB'
size = bytes / gigabyte
end
return sprintf('%.2f %s', size, units)
return format('%.2f %s', size, units)
end

View File

@@ -19,12 +19,12 @@ module DebUtils
abort 'Malformed archive :/'.lightred unless signature == "!<arch>\n"
# process each file in archive
while (line = src_fileIO.gets) do
if line.chomp.empty? and file_size == src_fileIO.tell
while (line = src_fileIO.gets)
if line.chomp.empty? && (file_size == src_fileIO.tell)
# early return if trailing newline is detected
break
elsif line.chomp.empty?
STDERR.puts "Unexpected newline in offset #{src_fileIO.tell}, ignoring...".yellow
warn "Unexpected newline in offset #{src_fileIO.tell}, ignoring...".yellow
next
end
@@ -34,7 +34,7 @@ module DebUtils
# remove slash suffix from filename (if any)
# (a `.deb` ar archive does not support any directories, so we can confirm that all entries are normal files)
name&.sub!(/\/$/, '')
name&.sub!(%r{/$}, '')
# check ending byte
abort 'Malformed archive :/'.lightred unless end_char == '`'
@@ -43,11 +43,11 @@ module DebUtils
fileContent = src_fileIO.read(size.to_i)
# filter filename if a target file is specified
if target.is_a?(String) and name == target
if target.is_a?(String) && (name == target)
# if target is passed as string, write matched file to filesyetem and exit function
# write to filesystem
return File.binwrite(name, fileContent, perm: mode.to_i(8))
elsif target.is_a?(Regexp) and name =~ target
elsif target.is_a?(Regexp) && name =~ (target)
# if target is passed as regex, write matched file to filesyetem and continue
# searching for another matched file until EOF
# write to filesystem

View File

@@ -20,7 +20,7 @@ end
require 'uri'
def downloader (url, sha256sum, filename = File.basename(url), verbose = false)
def downloader(url, sha256sum, filename = File.basename(url), verbose = false)
# downloader: wrapper for all Chromebrew downloaders (`net/http`,`curl`...)
# Usage: downloader <url>, <sha256sum>, <filename::optional>, <verbose::optional>
#
@@ -31,7 +31,10 @@ def downloader (url, sha256sum, filename = File.basename(url), verbose = false)
#
uri = URI(url)
unless CREW_USE_CURL or !ENV['CREW_DOWNLOADER'].to_s.empty?
if CREW_USE_CURL || !ENV['CREW_DOWNLOADER'].to_s.empty?
# force using external downloader if either CREW_USE_CURL or ENV['CREW_DOWNLOADER'] is set
external_downloader(uri, filename, verbose)
else
case uri.scheme
when 'http', 'https'
# use net/http if the url protocol is http(s)://
@@ -47,15 +50,12 @@ def downloader (url, sha256sum, filename = File.basename(url), verbose = false)
# use external downloader (curl by default) if the url protocol is not http(s):// or file://
external_downloader(uri, filename, verbose)
end
else
# force using external downloader if either CREW_USE_CURL or ENV['CREW_DOWNLOADER'] is set
external_downloader(uri, filename, verbose)
end
# verify with given checksum
calc_sha256sum = Digest::SHA256.hexdigest( File.read(filename) )
calc_sha256sum = Digest::SHA256.hexdigest(File.read(filename))
unless sha256sum =~ /^SKIP$/i or calc_sha256sum == sha256sum
unless sha256sum =~ (/^SKIP$/i) || (calc_sha256sum == sha256sum)
FileUtils.rm_f filename
warn 'Checksum mismatch :/ Try again?'.lightred, <<~EOT
@@ -69,17 +69,17 @@ def downloader (url, sha256sum, filename = File.basename(url), verbose = false)
end
end
def http_downloader (uri, filename = File.basename(url), verbose = false)
def http_downloader(uri, filename = File.basename(url), verbose = false)
# http_downloader: Downloader based on net/http library
# open http connection
Net::HTTP.start(uri.host, uri.port, {
max_retries: CREW_DOWNLOADER_RETRY,
max_retries: CREW_DOWNLOADER_RETRY,
use_ssl: uri.scheme.eql?('https'),
ca_file: SSL_CERT_FILE,
ca_path: SSL_CERT_DIR
}) do |http|
http.request( Net::HTTP::Get.new(uri) ) do |response|
http.request(Net::HTTP::Get.new(uri)) do |response|
case
when response.is_a?(Net::HTTPSuccess)
when response.is_a?(Net::HTTPRedirection) # follow HTTP redirection
@@ -114,7 +114,7 @@ def http_downloader (uri, filename = File.basename(url), verbose = false)
EOT
# parse response's header to readable format
response.to_hash.each_pair {|k, v| warn "> #{k}: #{v}" }
response.to_hash.each_pair { |k, v| warn "> #{k}: #{v}" }
warn "\n"
end
@@ -138,7 +138,7 @@ def http_downloader (uri, filename = File.basename(url), verbose = false)
end
end
def external_downloader (uri, filename = File.basename(url), verbose = false)
def external_downloader(uri, filename = File.basename(url), verbose = false)
# external_downloader: wrapper for external downloaders in CREW_DOWNLOADER (curl by default)
# default curl cmdline, CREW_DOWNLOADER should be in this format also
@@ -153,12 +153,11 @@ def external_downloader (uri, filename = File.basename(url), verbose = false)
return system(
format(downloader_cmdline,
{
verbose: verbose ? '--verbose' : '',
retry: CREW_DOWNLOADER_RETRY,
url: uri.to_s,
output: filename
}
), exception: true
{
verbose: verbose ? '--verbose' : '',
retry: CREW_DOWNLOADER_RETRY,
url: uri.to_s,
output: filename
}), exception: true
)
end

View File

@@ -18,15 +18,15 @@ end
MUSL_CFLAGS = "-isysroot=#{CREW_MUSL_PREFIX} -B#{CREW_MUSL_PREFIX}/include -flto -pipe -O2 -ffat-lto-objects -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans #{MUSL_ARCH_C_FLAGS} #{MUSL_ARCH_SSP_CFLAGS} -fcommon -fPIC -ffunction-sections -fdata-sections"
MUSL_CXXFLAGS = "-isysroot=#{CREW_MUSL_PREFIX} -B#{CREW_MUSL_PREFIX}/include -flto -pipe -O2 -ffat-lto-objects -fipa-pta -fno-semantic-interposition -fdevirtualize-at-ltrans #{MUSL_ARCH_CXX_FLAGS} #{MUSL_ARCH_SSP_CFLAGS} -fcommon -fPIC -ffunction-sections -fdata-sections"
# Setting -static & -flto in CMAKE LDFLAGS breaks builds
MUSL_CMAKE_LDFLAGS = "-flto"
unless @pkg.is_static?
MUSL_LDFLAGS = "-L#{CREW_MUSL_PREFIX}/lib -Wl,-rpath=#{CREW_MUSL_PREFIX}/lib -Wl,--enable-new-dtags -Wl,--dynamic-linker,#{CREW_MUSL_PREFIX}/lib/libc.so -Wl,--gc-sections -flto -isysroot=#{CREW_MUSL_PREFIX} "
MUSL_PKG_CONFIG = 'pkg-config'
else
MUSL_CMAKE_LDFLAGS = '-flto'
if @pkg.is_static?
MUSL_LDFLAGS = "-L#{CREW_MUSL_PREFIX}/lib -Wl,-rpath=#{CREW_MUSL_PREFIX}/lib -Wl,--enable-new-dtags -Wl,--gc-sections -flto -isysroot=#{CREW_MUSL_PREFIX} -static --static"
MUSL_PKG_CONFIG = 'pkg-config --static'
else
MUSL_LDFLAGS = "-L#{CREW_MUSL_PREFIX}/lib -Wl,-rpath=#{CREW_MUSL_PREFIX}/lib -Wl,--enable-new-dtags -Wl,--dynamic-linker,#{CREW_MUSL_PREFIX}/lib/libc.so -Wl,--gc-sections -flto -isysroot=#{CREW_MUSL_PREFIX} "
MUSL_PKG_CONFIG = 'pkg-config'
end
MUSL_ENV_OPTIONS = "PATH=#{CREW_MUSL_PREFIX}/bin:#{ENV['PATH']} \
MUSL_ENV_OPTIONS = "PATH=#{CREW_MUSL_PREFIX}/bin:#{ENV.fetch('PATH', nil)} \
CC='#{CREW_MUSL_PREFIX}/bin/#{ARCH}-linux-musl#{MUSL_ABI}-gcc' \
CXX='#{CREW_MUSL_PREFIX}/bin/#{ARCH}-linux-musl#{MUSL_ABI}-g++' \
LD='#{CREW_MUSL_PREFIX}/bin/#{ARCH}-linux-musl#{MUSL_ABI}-ld.gold -L#{CREW_MUSL_PREFIX}/lib' \
@@ -38,7 +38,7 @@ MUSL_ENV_OPTIONS = "PATH=#{CREW_MUSL_PREFIX}/bin:#{ENV['PATH']} \
CXXFLAGS='#{MUSL_CXXFLAGS}' \
CPPFLAGS='-I#{CREW_MUSL_PREFIX}/include -fcommon -idirafter#{CREW_PREFIX}/include' \
LDFLAGS='#{MUSL_LDFLAGS}'"
MUSL_CMAKE_OPTIONS = "PATH=#{CREW_MUSL_PREFIX}/bin:#{CREW_MUSL_PREFIX}/#{ARCH}-linux-musl#{MUSL_ABI}/bin:#{ENV['PATH']} \
MUSL_CMAKE_OPTIONS = "PATH=#{CREW_MUSL_PREFIX}/bin:#{CREW_MUSL_PREFIX}/#{ARCH}-linux-musl#{MUSL_ABI}/bin:#{ENV.fetch('PATH', nil)} \
CC='#{CREW_MUSL_PREFIX}/bin/#{ARCH}-linux-musl#{MUSL_ABI}-gcc' \
CXX='#{CREW_MUSL_PREFIX}/bin/#{ARCH}-linux-musl#{MUSL_ABI}-g++' \
LD=#{CREW_MUSL_PREFIX}/bin/#{ARCH}-linux-musl#{MUSL_ABI}-ld.gold \

View File

@@ -1,3 +1,4 @@
require 'English'
require_relative 'package_helpers'
class Package
@@ -25,7 +26,7 @@ class Package
attr_accessor :name, :is_dep, :in_build, :build_from_source, :in_upgrade
end
def self.load_package ( pkgFile, pkgName = File.basename(pkgFile, '.rb') )
def self.load_package(pkgFile, pkgName = File.basename(pkgFile, '.rb'))
# self.load_package: load a package under 'Package' class scope
#
className = pkgName.capitalize
@@ -43,11 +44,11 @@ class Package
# We need instance variable in derived class, so not define it here,
# base class. Instead of define it, we initialize it in a function
# called from derived classees.
@dependencies ||= Hash.new
@dependencies ||= {}
end
def self.get_deps_list (pkgName = self.name, hash: false, include_build_deps: 'auto', include_self: false,
pkgTags: [], highlight_build_deps: true, exclude_buildessential: false, top_level: true)
def self.get_deps_list(pkgName = name, hash: false, include_build_deps: 'auto', include_self: false,
pkgTags: [], highlight_build_deps: true, exclude_buildessential: false, top_level: true)
# get_deps_list: get dependencies list of pkgName (current package by default)
#
# pkgName: package to check dependencies, current package by default
@@ -65,7 +66,7 @@ class Package
# (dependencies that might be a sub-dependency of a dependency that checked before),
# always set to false if this function is called in recursive loop (see `expandedDeps` below)
#
@checked_list ||= Hash.new # create @checked_list placeholder if not exist
@checked_list ||= {} # create @checked_list placeholder if not exist
# add current package to @checked_list for preventing extra checks
@checked_list.merge!({ pkgName => pkgTags })
@@ -75,63 +76,61 @@ class Package
deps = pkgObj.dependencies
# append buildessential to deps if building from source is needed/specified
if ( include_build_deps == true or (include_build_deps == 'auto' and is_source) ) and \
!pkgObj.no_compile_needed? and \
!exclude_buildessential and \
if ((include_build_deps == true) || ((include_build_deps == 'auto') && is_source)) && \
!pkgObj.no_compile_needed? && \
!exclude_buildessential && \
!@checked_list.keys.include?('buildessential')
deps = ({ 'buildessential' => [ :build ] }).merge(deps)
deps = { 'buildessential' => [:build] }.merge(deps)
end
# parse dependencies recursively
expandedDeps = deps.uniq.map do |dep, depTags|
# check build dependencies only if building from source is needed/specified
if include_build_deps == true or \
(include_build_deps == 'auto' and is_source) or \
!depTags.include?(:build)
# check build dependencies only if building from source is needed/specified
next unless (include_build_deps == true) || \
((include_build_deps == 'auto') && is_source) || \
!depTags.include?(:build)
# overwrite tags if parent dependency is a build dependency
# (for build dependencies highlighting)
tags = (pkgTags.include?(:build)) ? pkgTags : depTags
# overwrite tags if parent dependency is a build dependency
# (for build dependencies highlighting)
tags = pkgTags.include?(:build) ? pkgTags : depTags
if @checked_list.keys.none?(dep)
# check dependency by calling this function recursively
next send(__method__, dep,
hash: hash,
pkgTags: tags,
include_build_deps: include_build_deps,
highlight_build_deps: highlight_build_deps,
exclude_buildessential: exclude_buildessential,
include_self: true,
top_level: false
)
if @checked_list.keys.none?(dep)
# check dependency by calling this function recursively
next send(__method__, dep,
hash: hash,
pkgTags: tags,
include_build_deps: include_build_deps,
highlight_build_deps: highlight_build_deps,
exclude_buildessential: exclude_buildessential,
include_self: true,
top_level: false)
elsif hash and top_level
# will be dropped here if current dependency is already checked and #{top_level} is set to true
#
# the '+' symbol tell `print_deps_tree` (`bin/crew`) to color this package as "satisfied dependency"
# the '*' symbol tell `print_deps_tree` (`bin/crew`) to color this package as "build dependency"
if highlight_build_deps and tags.include?(:build)
next { "+*#{dep}*+" => [] }
elsif highlight_build_deps
next { "+#{dep}+" => [] }
else
next { dep => [] }
end
end
end
end.reject(&:nil?)
elsif hash && top_level
# will be dropped here if current dependency is already checked and #{top_level} is set to true
#
# the '+' symbol tell `print_deps_tree` (`bin/crew`) to color this package as "satisfied dependency"
# the '*' symbol tell `print_deps_tree` (`bin/crew`) to color this package as "build dependency"
if highlight_build_deps && tags.include?(:build)
next { "+*#{dep}*+" => [] }
elsif highlight_build_deps
next { "+#{dep}+" => [] }
else
next { dep => [] }
end
end
end.compact
if hash
# the '*' symbol tell `print_deps_tree` (`bin/crew`) to color this package as "build dependency"
if highlight_build_deps and pkgTags.include?(:build)
if highlight_build_deps && pkgTags.include?(:build)
return { "*#{pkgName}*" => expandedDeps }
else
return { pkgName => expandedDeps }
end
elsif include_self
# return pkgName itself if this function is called as a recursive loop (see `expandedDeps`)
return [ expandedDeps, pkgName ].flatten
return [expandedDeps, pkgName].flatten
else
# if this function is called outside of this function, return parsed dependencies only
return expandedDeps.flatten
@@ -139,7 +138,7 @@ class Package
end
boolean_property.each do |prop|
self.class.__send__(:attr_reader, "#{prop}")
self.class.__send__(:attr_reader, prop.to_s)
class_eval <<~EOT, __FILE__, __LINE__ + 1
def self.#{prop} (#{prop} = nil)
@#{prop} = true if #{prop}
@@ -153,13 +152,13 @@ class Package
EOY
# Adds the symbol? method
define_singleton_method("#{prop}?") do
@prop = instance_variable_get("@" + prop.to_s)
@prop = instance_variable_get("@#{prop}")
!!@prop
end
end
def self.depends_on (dependency = nil)
@dependencies ||= Hash.new
def self.depends_on(dependency = nil)
@dependencies ||= {}
if dependency
# add element in "[ name, [ tag1, tag2, ... ] ]" format
if dependency.is_a?(Hash)
@@ -178,52 +177,48 @@ class Package
@dependencies
end
def self.get_url (architecture)
if !@build_from_source and @binary_url and @binary_url.has_key?(architecture)
def self.get_url(architecture)
if !@build_from_source && @binary_url && @binary_url.key?(architecture)
return @binary_url[architecture]
elsif @source_url.respond_to?(:has_key?)
return @source_url.key?(architecture) ? @source_url[architecture] : nil
else
if @source_url.respond_to?(:has_key?)
return @source_url.has_key?(architecture) ? @source_url[architecture] : nil
else
return @source_url
end
return @source_url
end
end
def self.get_binary_url (architecture)
return @binary_url.has_key?(architecture) ? @binary_url[architecture] : nil
def self.get_binary_url(architecture)
return @binary_url.key?(architecture) ? @binary_url[architecture] : nil
end
def self.get_source_url (architecture)
return @source_url.has_key?(architecture) ? @source_url[architecture] : nil
def self.get_source_url(architecture)
return @source_url.key?(architecture) ? @source_url[architecture] : nil
end
def self.get_sha256 (architecture)
if !@build_from_source and @binary_sha256 and @binary_sha256.has_key?(architecture)
def self.get_sha256(architecture)
if !@build_from_source && @binary_sha256 && @binary_sha256.key?(architecture)
return @binary_sha256[architecture]
elsif @source_sha256.respond_to?(:has_key?)
return @source_sha256.key?(architecture) ? @source_sha256[architecture] : nil
else
if @source_sha256.respond_to?(:has_key?)
return @source_sha256.has_key?(architecture) ? @source_sha256[architecture] : nil
else
return @source_sha256
end
return @source_sha256
end
end
def self.get_extract_dir
name + '.' + Time.now.utc.strftime("%Y%m%d%H%M%S") + '.dir'
"#{name}.#{Time.now.utc.strftime('%Y%m%d%H%M%S')}.dir"
end
def self.is_binary? (architecture)
if !@build_from_source and @binary_url and @binary_url.has_key?(architecture)
def self.is_binary?(architecture)
if !@build_from_source && @binary_url && @binary_url.key?(architecture)
return true
else
return false
end
end
def self.is_source? (architecture)
if is_binary?(architecture) or is_fake?
def self.is_source?(architecture)
if is_binary?(architecture) || is_fake?
return false
else
return true
@@ -231,12 +226,11 @@ class Package
end
def self.system(*args, **opt_args)
if no_env_options?
@crew_env_options_hash = { "CREW_DISABLE_ENV_OPTIONS" => '1' }
else
@crew_env_options_hash = CREW_ENV_OPTIONS_HASH
end
@crew_env_options_hash = if no_env_options?
{ 'CREW_DISABLE_ENV_OPTIONS' => '1' }
else
CREW_ENV_OPTIONS_HASH
end
# add "-j#" argument to "make" at compile-time, if necessary
@@ -247,7 +241,7 @@ class Package
# See lib/const.rb for more details
# add exception option to opt_args
opt_args.merge!(exception: true) unless opt_args.has_key?(:exception)
opt_args.merge!(exception: true) unless opt_args.key?(:exception)
# extract env hash
if args[0].is_a?(Hash)
@@ -270,10 +264,10 @@ class Package
begin
Kernel.system(env, *cmd_args, **opt_args)
rescue => e
rescue StandardError => e
# print failed line number and error message
puts "#{e.backtrace[1]}: #{e.message}".orange
raise InstallError, "`#{env.map { |k, v| "#{k}=\"#{v}\"" }.join(' ')} #{cmd_args.join(' ')}` exited with #{$?.exitstatus}".lightred
raise InstallError, "`#{env.map { |k, v| "#{k}=\"#{v}\"" }.join(' ')} #{cmd_args.join(' ')}` exited with #{$CHILD_STATUS.exitstatus}".lightred
end
end
end

View File

@@ -7,7 +7,7 @@ class ProgressBar
attr_accessor :progress_bar_showing
def initialize (total_size)
def initialize(total_size)
# character used to fill the progress bar, one of the box-drawing character in unicode
@bar_char = "\u2501"
@@ -28,16 +28,16 @@ class ProgressBar
trap('WINCH') do
# reset width settings after terminal resized
# get terminal size, calculate the width of progress bar based on it
@terminal_h, @terminal_w = IO.console&.winsize || [ 25, 80 ]
@terminal_h, @terminal_w = IO.console&.winsize || [25, 80]
@bar_width = @terminal_w -
@info_before_bar.merge(@info_after_bar).values.sum - # space that all info blocks takes
( @info_before_bar.merge(@info_after_bar).length * 2 ) # space for separator (whitespaces) between each info
(@info_before_bar.merge(@info_after_bar).length * 2) # space for separator (whitespaces) between each info
end
Process.kill('WINCH', 0) # trigger the trap above
end
def set_downloaded_size (downloaded_size, invalid_size_error: true)
def set_downloaded_size(downloaded_size, invalid_size_error: true)
if downloaded_size > @total_size
# when the given downloaded size/total size is invalid (given downloaded size > given total size),
# set all info to unknown (except downloaded size)
@@ -69,7 +69,7 @@ class ProgressBar
@elapsed_time_in_str = Time.at(@elapsed_time).utc.strftime('%H:%M:%S')
# calculate progress percentage, round to nearest 0.1
@percentage = ( ( downloaded_size / @total_size ) * 100 ).round(1)
@percentage = ((downloaded_size / @total_size) * 100).round(1)
@percentage_in_str = "#{@percentage.to_i}%"
# {downloaded size}/{total size}
@@ -85,20 +85,20 @@ class ProgressBar
while @progress_bar_showing
sleep 0.15 # update progress bar after each 0.15 seconds
completed_length = ( @bar_width * (@percentage / 100) ).to_i
completed_length = (@bar_width * (@percentage / 100)).to_i
uncompleted_length = @bar_width - completed_length
# print info and progress bar
@info_before_bar.each_pair do |varName, width|
printf "%*.*s ", width, width, instance_variable_get("@#{varName}")
printf '%*.*s ', width, width, instance_variable_get("@#{varName}")
end
# print progress bar with color code
print ( @bar_char * completed_length ).send(@bar_front_color),
( @bar_char * uncompleted_length ).send(@bar_bg_color)
print ( @bar_char * completed_length).send(@bar_front_color),
(@bar_char * uncompleted_length).send(@bar_bg_color)
@info_after_bar.each_pair do |varName, width|
printf " %*.*s", width, width, instance_variable_get("@#{varName}")
printf ' %*.*s', width, width, instance_variable_get("@#{varName}")
end
# stop when 100%

View File

@@ -1,29 +1,29 @@
require "matrix"
require 'matrix'
class MutableMatrix < Matrix
public :"[]="
public :'[]='
end
# Returns the edit distance between strings a and b
# https://en.wikipedia.org/wiki/Edit_distance
def edit_distance (a, b)
def edit_distance(a, b)
# memo is the matrix for dynamic programming
# memo[i, j] = the edit distance between the
# prefixes of a and b of size i and j.
memo = MutableMatrix.zero(a.size + 1, b.size + 1)
a.size.times {|i| memo[i + 1, 0] = i + 1}
b.size.times {|j| memo[0, j + 1] = j + 1}
a.size.times { |i| memo[i + 1, 0] = i + 1 }
b.size.times { |j| memo[0, j + 1] = j + 1 }
a.size.times do |i|
b.size.times do |j|
if a[i] == b[j] then
memo[i + 1, j + 1] = memo[i, j]
else
memo[i + 1, j + 1] = [
memo[i + 1, j],
memo[i, j + 1],
memo[i, j]
].min + 1
end
memo[i + 1, j + 1] = if a[i] == b[j]
memo[i, j]
else
[
memo[i + 1, j],
memo[i, j + 1],
memo[i, j]
].min + 1
end
end
end

View File

@@ -9,17 +9,17 @@ class A2png < Package
source_url 'https://sourceforge.net/projects/a2png/files/a2png/0.1.5/a2png-0.1.5.tar.bz2'
source_sha256 'd3ae1c771f5180d93f35cded76d9bb4c4cc2023dbe65613e78add3eeb43f736b'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2png/0.1.5-1_armv7l/a2png-0.1.5-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2png/0.1.5-1_armv7l/a2png-0.1.5-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2png/0.1.5-1_i686/a2png-0.1.5-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2png/0.1.5-1_x86_64/a2png-0.1.5-1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2png/0.1.5-1_x86_64/a2png-0.1.5-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '72ebf874dee9871949df56eecd9b24e8586b84c1efed1bdf988f9ea9f28e012b',
armv7l: '72ebf874dee9871949df56eecd9b24e8586b84c1efed1bdf988f9ea9f28e012b',
i686: '76223ed1859aa31f3d93afb5e3705dfff7a8023de08672b4f2216a8fe55e46b5',
x86_64: 'b468b226e28cf717c3f38435849bf737067a8b9ec3c1928c01fed5488bb31464',
x86_64: 'b468b226e28cf717c3f38435849bf737067a8b9ec3c1928c01fed5488bb31464'
})
depends_on 'cairo'
@@ -36,6 +36,6 @@ class A2png < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,17 +9,17 @@ class A2ps < Package
source_url 'https://ftpmirror.gnu.org/a2ps/a2ps-4.14.tar.gz'
source_sha256 'f3ae8d3d4564a41b6e2a21f237d2f2b104f48108591e8b83497500182a3ab3a4'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2ps/4.14-1_armv7l/a2ps-4.14-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2ps/4.14-1_armv7l/a2ps-4.14-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2ps/4.14-1_i686/a2ps-4.14-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2ps/4.14-1_x86_64/a2ps-4.14-1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/a2ps/4.14-1_x86_64/a2ps-4.14-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'c6c9c237e5d9e51b8d19fb74522b7a60dabe74c958061a080f1f338b289ba254',
armv7l: 'c6c9c237e5d9e51b8d19fb74522b7a60dabe74c958061a080f1f338b289ba254',
i686: '9a877e68120feb3f8ec9c50c36b9d378186fb00bc2883670bdc42089411e4607',
x86_64: '28b5f46158587be75ff873d64805f480af0a3bbfa2f764abf815117d0b907f48',
x86_64: '28b5f46158587be75ff873d64805f480af0a3bbfa2f764abf815117d0b907f48'
})
depends_on 'gperf'
@@ -30,10 +30,10 @@ class A2ps < Package
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX} \
--localstatedir=#{CREW_PREFIX}/tmp"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,17 +9,17 @@ class Aalib < Package
source_url 'https://downloads.sourceforge.net/project/aa-project/aa-lib/1.4rc5/aalib-1.4rc5.tar.gz'
source_sha256 'fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aalib/1.4rc5-1_armv7l/aalib-1.4rc5-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aalib/1.4rc5-1_armv7l/aalib-1.4rc5-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aalib/1.4rc5-1_i686/aalib-1.4rc5-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aalib/1.4rc5-1_x86_64/aalib-1.4rc5-1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aalib/1.4rc5-1_x86_64/aalib-1.4rc5-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '755e06e37eb67e35e25001426a69b6549160aae9262411afbac6435dcd2bc3fb',
armv7l: '755e06e37eb67e35e25001426a69b6549160aae9262411afbac6435dcd2bc3fb',
i686: '5c63962cd96ef7a0ac7c364fa58634719857959191548e3853ab2c7bc51aabc9',
x86_64: '51442b518e9d817078e7bd677667847d363bcf7bc47616331e76b2150ccf28f9',
x86_64: '51442b518e9d817078e7bd677667847d363bcf7bc47616331e76b2150ccf28f9'
})
depends_on 'libx11'
@@ -30,11 +30,11 @@ class Aalib < Package
--with-x \
--with-x11-driver \
--with-slang-driver"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.mv "#{CREW_DEST_PREFIX}/info/", "#{CREW_DEST_PREFIX}/share/"
end
end

View File

@@ -9,17 +9,17 @@ class Abcde < Package
source_url 'https://abcde.einval.com/download/abcde-2.9.3.tar.gz'
source_sha256 '046cd0bba78dd4bbdcbcf82fe625865c60df35a005482de13a6699c5a3b83124'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/abcde/2.9.3_armv7l/abcde-2.9.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/abcde/2.9.3_armv7l/abcde-2.9.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/abcde/2.9.3_i686/abcde-2.9.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/abcde/2.9.3_x86_64/abcde-2.9.3-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/abcde/2.9.3_x86_64/abcde-2.9.3-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'dde5336b912d62d86b8fc15394305fe9c3971d94067c156bccd7325d1c50cc85',
armv7l: 'dde5336b912d62d86b8fc15394305fe9c3971d94067c156bccd7325d1c50cc85',
i686: 'd6a704ec69f3b1bd4e1308bfa81f9756d838971556ee76fff6717692b16cc63a',
x86_64: '5fd40b457b1f1474e52d133a134b845e4460e62f51457400b91e4134c8f9da18',
x86_64: '5fd40b457b1f1474e52d133a134b845e4460e62f51457400b91e4134c8f9da18'
})
def self.build
@@ -28,6 +28,6 @@ class Abcde < Package
end
def self.install
system "make install"
system 'make install'
end
end

View File

@@ -13,9 +13,7 @@ class Acli < Package
def self.preflight
major = `php -v 2> /dev/null | head -1 | cut -d' ' -f2 | cut -d'.' -f1`
minor = `php -v 2> /dev/null | head -1 | cut -d' ' -f2 | cut -d'.' -f2`
unless major.empty? or minor.empty? or (major.to_i >= 8 and minor.to_i >= 0)
abort "acli requires php >= 8.0. php #{major.chomp}.#{minor.chomp} does not meet the minimum requirement.".lightred
end
abort "acli requires php >= 8.0. php #{major.chomp}.#{minor.chomp} does not meet the minimum requirement.".lightred unless major.empty? || minor.empty? || ((major.to_i >= 8) && (minor.to_i >= 0))
end
def self.install

View File

@@ -9,17 +9,17 @@ class Acpi < Package
source_url 'https://downloads.sourceforge.net/project/acpiclient/acpiclient/1.7/acpi-1.7.tar.gz'
source_sha256 'd7a504b61c716ae5b7e81a0c67a50a51f06c7326f197b66a4b823de076a35005'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpi/1.7_armv7l/acpi-1.7-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpi/1.7_armv7l/acpi-1.7-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpi/1.7_i686/acpi-1.7-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpi/1.7_x86_64/acpi-1.7-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpi/1.7_x86_64/acpi-1.7-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '86f608f45ef9c7d423f26f4b1a268e7b995061e1ecb613bf3fbca2d9c7bf5665',
armv7l: '86f608f45ef9c7d423f26f4b1a268e7b995061e1ecb613bf3fbca2d9c7bf5665',
i686: 'bbb6d7c0db9e4777aaca3b38e08affc74f16af661274b2d962ef8189a5338d2f',
x86_64: 'db69280f951b024431221a7f28af55b9f103baa82a981619a3da01c161c2d485',
x86_64: 'db69280f951b024431221a7f28af55b9f103baa82a981619a3da01c161c2d485'
})
def self.build

View File

@@ -9,17 +9,17 @@ class Acpica < Package
source_url 'https://acpica.org/sites/acpica/files/acpica-unix-20200925.tar.gz'
source_sha256 'd44388e21e3d2e47c6d39e9c897935d3f775f04fec76271dcba072c74f834589'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpica/20200925_armv7l/acpica-20200925-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpica/20200925_armv7l/acpica-20200925-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpica/20200925_i686/acpica-20200925-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpica/20200925_x86_64/acpica-20200925-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/acpica/20200925_x86_64/acpica-20200925-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '4fab7ff907309a9ded50cc5054d3796e6cf852c057e9eaa7f447d6d4b31dff90',
armv7l: '4fab7ff907309a9ded50cc5054d3796e6cf852c057e9eaa7f447d6d4b31dff90',
i686: '24ec4f3d3223ec9e43c80b3bc864d1ff2385014624c172e04051921b395e8ffc',
x86_64: '346a75c16f86dde073cb0f22e00fc688c74b3404af8ae10726cd485c97d4f92c',
x86_64: '346a75c16f86dde073cb0f22e00fc688c74b3404af8ae10726cd485c97d4f92c'
})
def self.build

View File

@@ -13,13 +13,13 @@ class Adwaita_icon_theme < Package
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/adwaita_icon_theme/42.0_armv7l/adwaita_icon_theme-42.0-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/adwaita_icon_theme/42.0_armv7l/adwaita_icon_theme-42.0-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/adwaita_icon_theme/42.0_i686/adwaita_icon_theme-42.0-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/adwaita_icon_theme/42.0_x86_64/adwaita_icon_theme-42.0-chromeos-x86_64.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/adwaita_icon_theme/42.0_x86_64/adwaita_icon_theme-42.0-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: 'c6dd539659f98a4f83247943715aef136002aa590c4e6e558c89762c60fafefc',
armv7l: 'c6dd539659f98a4f83247943715aef136002aa590c4e6e558c89762c60fafefc',
i686: 'f13d05ff2696a2fd7488a7dc4e4e78ad98fe8d7bcf1d63c314e533610a071b6d',
x86_64: '862aa3d398d4891c8f6923d6c9c2283ebfa9438647a1a25e9172532433db52fb',
x86_64: '862aa3d398d4891c8f6923d6c9c2283ebfa9438647a1a25e9172532433db52fb'
})
gnome

View File

@@ -9,36 +9,35 @@ class Ag < Package
source_url 'https://github.com/ggreer/the_silver_searcher/archive/2.2.0.tar.gz'
source_sha256 '6a0a19ca5e73b2bef9481c29a508d2413ca1a0a9a5a6b1bd9bbd695a7626cbf9'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ag/2.2.0_armv7l/ag-2.2.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ag/2.2.0_armv7l/ag-2.2.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ag/2.2.0_i686/ag-2.2.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ag/2.2.0_x86_64/ag-2.2.0-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ag/2.2.0_x86_64/ag-2.2.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '0e6e5a193921c38638a3eeacff917a75cc8651335c783c392053bb825743edcd',
armv7l: '0e6e5a193921c38638a3eeacff917a75cc8651335c783c392053bb825743edcd',
i686: 'ea2bb1b33661b58d78ef874a7045f798cb61c54aa2b484987c02822a5f7a8bcf',
x86_64: 'fb1a37ce5867546e9082763bfa002a180405f2a21b3a51e99899d1c313fe13ad',
x86_64: 'fb1a37ce5867546e9082763bfa002a180405f2a21b3a51e99899d1c313fe13ad'
})
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkgconfig" => :build
depends_on "pcre"
depends_on "xzutils"
depends_on "zlibpkg"
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on 'pkgconfig' => :build
depends_on 'pcre'
depends_on 'xzutils'
depends_on 'zlibpkg'
def self.build
system "autoreconf", "-fiv"
system 'autoreconf', '-fiv'
system "./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX}"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # the steps required to install the package
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' # the steps required to install the package
end
end

View File

@@ -9,17 +9,17 @@ class Aha < Package
source_url 'https://github.com/theZiz/aha/archive/0.5.1.tar.gz'
source_sha256 '6aea13487f6b5c3e453a447a67345f8095282f5acd97344466816b05ebd0b3b1'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aha/0.5.1_armv7l/aha-0.5.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aha/0.5.1_armv7l/aha-0.5.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aha/0.5.1_i686/aha-0.5.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aha/0.5.1_x86_64/aha-0.5.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aha/0.5.1_x86_64/aha-0.5.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'ccb183b558d74f534a4b5afdf1f28e74507349443fbf1238d053a24140fff02c',
armv7l: 'ccb183b558d74f534a4b5afdf1f28e74507349443fbf1238d053a24140fff02c',
i686: '010ea772bd1963315e7b18908148482bec0d8fc0bc2cc640f192243044251f75',
x86_64: 'b410c3c570c934576e161e077b5092cf231ce7d9a67e3b697435a64cc40158aa',
x86_64: 'b410c3c570c934576e161e077b5092cf231ce7d9a67e3b697435a64cc40158aa'
})
def self.patch
@@ -28,10 +28,10 @@ class Aha < Package
end
def self.build
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,17 +9,17 @@ class Aide < Package
source_url 'http://downloads.sourceforge.net/project/aide/aide/0.15.1/aide-0.15.1.tar.gz'
source_sha256 '303e5c186257df8c86e418193199f4ea2183fc37d3d4a9098a614f61346059ef'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aide/0.15.1_armv7l/aide-0.15.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aide/0.15.1_armv7l/aide-0.15.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aide/0.15.1_i686/aide-0.15.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aide/0.15.1_x86_64/aide-0.15.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aide/0.15.1_x86_64/aide-0.15.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '805f42e0824ab40aa56a0b304636b7eac9da43832a2b20760e49a348a35f0a26',
armv7l: '805f42e0824ab40aa56a0b304636b7eac9da43832a2b20760e49a348a35f0a26',
i686: '90ffe18ff6970dd02e3625943ff68ccf4f3a53b795d781a4e1a0b6d449172401',
x86_64: '74b87dbc5ca9a9bfa16420b136afba5fa513da3c75b13993bb11051d14c2a5f6',
x86_64: '74b87dbc5ca9a9bfa16420b136afba5fa513da3c75b13993bb11051d14c2a5f6'
})
depends_on 'libgcrypt'
@@ -31,17 +31,17 @@ class Aide < Package
'--disable-static',
'--with-gcrypt',
'--without-zlib'
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "sed -i '22d' doc/aide.conf"
system "sed -i '24d' doc/aide.conf"
system "sed -i '24i@@define TOPDIR #{CREW_PREFIX}/etc' doc/aide.conf"
system "install -Dm644 doc/aide.conf #{CREW_DEST_PREFIX}/etc/aide.conf"
system "install -Dm644 doc/aide.conf.5 #{CREW_DEST_PREFIX}/man/man5/aide.conf.5"
system "touch aide.db"
system 'touch aide.db'
system "install -Dm644 aide.db #{CREW_DEST_PREFIX}/etc/doc/aide.db"
end
@@ -49,11 +49,11 @@ class Aide < Package
puts
puts "The configuration file is located at #{CREW_PREFIX}/etc/aide.conf".lightblue
puts
puts "To initialize the database, execute the following:".lightblue
puts 'To initialize the database, execute the following:'.lightblue
puts "mkdir #{CREW_PREFIX}/etc/src".lightblue
puts "cd #{CREW_PREFIX}/etc/doc".lightblue
puts "aide -i".lightblue
puts "mv aide.db.new aide.db".lightblue
puts 'aide -i'.lightblue
puts 'mv aide.db.new aide.db'.lightblue
puts
end
end

View File

@@ -10,17 +10,17 @@ class Alien < Package
source_url 'https://downloads.sourceforge.net/project/alien-pkg-convert/release/alien_8.95.tar.xz'
source_sha256 '37a22587c33810feab323474bdadbf969fda2eb4e720b2ca01b40d82d6f71a17'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alien/8.95-1_armv7l/alien-8.95-1-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alien/8.95-1_armv7l/alien-8.95-1-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alien/8.95-1_i686/alien-8.95-1-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alien/8.95-1_x86_64/alien-8.95-1-chromeos-x86_64.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alien/8.95-1_x86_64/alien-8.95-1-chromeos-x86_64.tar.zst'
})
binary_sha256 ({
binary_sha256({
aarch64: 'af014a083846b49d3641fb1a9a43ab3eaba1db736a1d4351897674205a88bdfa',
armv7l: 'af014a083846b49d3641fb1a9a43ab3eaba1db736a1d4351897674205a88bdfa',
i686: 'cb24420a1a15f2ebd445261ce7b53cb026e7e25d5a3e6036dacf5572b5f233cf',
x86_64: '973b6adae5aa32b46acfa23541ac336e050b5a09919aa167194b3ce04b666362',
x86_64: '973b6adae5aa32b46acfa23541ac336e050b5a09919aa167194b3ce04b666362'
})
def self.build

View File

@@ -9,17 +9,17 @@ class Alive < Package
source_url 'https://ftpmirror.gnu.org/alive/alive-2.0.3.tar.xz'
source_sha256 '8bf41150ade07b86a806ce40ce99509713e2abcc92c4182a8d961aa3cf757014'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alive/2.0.3_armv7l/alive-2.0.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alive/2.0.3_armv7l/alive-2.0.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alive/2.0.3_i686/alive-2.0.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alive/2.0.3_x86_64/alive-2.0.3-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alive/2.0.3_x86_64/alive-2.0.3-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '71b2d2e62c4858eecc2a7d11cc1b767b48587597714de6e6b89b2890c743e026',
armv7l: '71b2d2e62c4858eecc2a7d11cc1b767b48587597714de6e6b89b2890c743e026',
i686: '9a06f4e646d7e9c1a0ce43c596c0b32e46024013c0867b7aa5b64c3a431261ea',
x86_64: 'a123e91cd331380092a1b598e87c4252fa38c71094d17263432c3329c543c904',
x86_64: 'a123e91cd331380092a1b598e87c4252fa38c71094d17263432c3329c543c904'
})
depends_on 'guile'

View File

@@ -9,17 +9,17 @@ class Alsa_lib < Package
source_url "https://github.com/alsa-project/alsa-lib/archive/v#{version}.tar.gz"
source_sha256 '0c6ab052d7ea980a01d0208da5e5e10849bd16c4c9961bbd5d2665083b74a6c0'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_lib/1.2.4_armv7l/alsa_lib-1.2.4-chromeos-armv7l.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_lib/1.2.4_armv7l/alsa_lib-1.2.4-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_lib/1.2.4_armv7l/alsa_lib-1.2.4-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_lib/1.2.4_i686/alsa_lib-1.2.4-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_lib/1.2.4_x86_64/alsa_lib-1.2.4-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_lib/1.2.4_x86_64/alsa_lib-1.2.4-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '07cb624cc829dc5f17dcc5d6a9f0a7ea67798bdbc4c27a7a4e075149be91143f',
binary_sha256({
aarch64: '07cb624cc829dc5f17dcc5d6a9f0a7ea67798bdbc4c27a7a4e075149be91143f',
armv7l: '07cb624cc829dc5f17dcc5d6a9f0a7ea67798bdbc4c27a7a4e075149be91143f',
i686: '3baa9db99ab259ba52b8769fd5720da076620a30981133b4143b9e5907698227',
x86_64: '20132936d9c3ba6fa0126aad6926996f47886ace79548be152cb8aa6975c626d',
x86_64: '20132936d9c3ba6fa0126aad6926996f47886ace79548be152cb8aa6975c626d'
})
depends_on 'python3'

View File

@@ -9,17 +9,17 @@ class Alsa_plugins < Package
source_url 'ftp://ftp.alsa-project.org/pub/plugins/alsa-plugins-1.2.2.tar.bz2'
source_sha256 '1c0f06450c928d711719686c9dbece2d480184f36fab11b8f0534cb7b41e337d'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_plugins/1.2.2_armv7l/alsa_plugins-1.2.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_plugins/1.2.2_armv7l/alsa_plugins-1.2.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_plugins/1.2.2_i686/alsa_plugins-1.2.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_plugins/1.2.2_x86_64/alsa_plugins-1.2.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_plugins/1.2.2_x86_64/alsa_plugins-1.2.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '6dfe0afc4137d689eda0c4693aac4016e66e9da74ccaf540ebd12cb2fd704103',
armv7l: '6dfe0afc4137d689eda0c4693aac4016e66e9da74ccaf540ebd12cb2fd704103',
i686: '2e363fbae56a4dc05af716316f6465b36655663a5953437af4c996e22eece8bc',
x86_64: '2c0108843697c8711160defebbf6db421a2b6fe1aa582b9567e8cbb9b124bf02',
x86_64: '2c0108843697c8711160defebbf6db421a2b6fe1aa582b9567e8cbb9b124bf02'
})
depends_on 'alsa_lib' # R

View File

@@ -9,17 +9,17 @@ class Alsa_tools < Package
source_url 'https://github.com/alsa-project/alsa-tools/archive/v1.2.2.tar.gz'
source_sha256 '7242cfb3493461b2a28c9c3a6a69dbc2e9ee236a5dc46400cbb0d1d87c27b453'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_tools/1.2.2_armv7l/alsa_tools-1.2.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_tools/1.2.2_armv7l/alsa_tools-1.2.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_tools/1.2.2_i686/alsa_tools-1.2.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_tools/1.2.2_x86_64/alsa_tools-1.2.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_tools/1.2.2_x86_64/alsa_tools-1.2.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '13e8a8e05816e7b33369a3dfa62805d74a31899aac172f2d895e181c002e163c',
armv7l: '13e8a8e05816e7b33369a3dfa62805d74a31899aac172f2d895e181c002e163c',
i686: '1ca6fa11e786e0d277ff15532de6b58f9a1bba5198163fc7d773ecddbabe4574',
x86_64: '9078e54a91c60bb12d5f8087239cf21b24b033f04991e095f22502d663a5d77c',
x86_64: '9078e54a91c60bb12d5f8087239cf21b24b033f04991e095f22502d663a5d77c'
})
depends_on 'alsa_lib'

View File

@@ -9,20 +9,19 @@ class Alsa_utils < Package
source_url "https://github.com/alsa-project/alsa-utils/archive/v#{version}.tar.gz"
source_sha256 '4fdd1745d6ad339be596ba66c12c0ee513aab19050bd48439f91edafbd8688b0'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_utils/1.2.4_armv7l/alsa_utils-1.2.4-chromeos-armv7l.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_utils/1.2.4_armv7l/alsa_utils-1.2.4-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_utils/1.2.4_armv7l/alsa_utils-1.2.4-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_utils/1.2.4_i686/alsa_utils-1.2.4-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_utils/1.2.4_x86_64/alsa_utils-1.2.4-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/alsa_utils/1.2.4_x86_64/alsa_utils-1.2.4-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '40412aaf27fd4e38efe2613a8ee92d6a6f91dcf33b58e3c39a4bd65f1c12cf34',
binary_sha256({
aarch64: '40412aaf27fd4e38efe2613a8ee92d6a6f91dcf33b58e3c39a4bd65f1c12cf34',
armv7l: '40412aaf27fd4e38efe2613a8ee92d6a6f91dcf33b58e3c39a4bd65f1c12cf34',
i686: 'c1e9ac9a17508f1d5f314d556ceadaf29449de67cd139fc64bba42f9666a921f',
x86_64: '081f05bf5548ea9e01743e79c9d379d128b2db43cf3007c8c945bb8c1b346d0c',
x86_64: '081f05bf5548ea9e01743e79c9d379d128b2db43cf3007c8c945bb8c1b346d0c'
})
depends_on 'alsa_lib'
depends_on 'cras'
@@ -36,7 +35,7 @@ class Alsa_utils < Package
def self.check
# This takes several hours to run!
#system 'make', 'check'
# system 'make', 'check'
end
def self.install

View File

@@ -9,17 +9,17 @@ class Amtk < Package
source_url 'https://github.com/GNOME/amtk/archive/33ec171156ebc49d6dad568e6ba39470edb272e1.zip'
source_sha256 'fc9bad18bbd5421da52e0548f9e91eda180539bb568d1e7116ca65f4f73f4b67'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/amtk/5.2.0-33ec-1_armv7l/amtk-5.2.0-33ec-1-chromeos-armv7l.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/amtk/5.2.0-33ec-1_armv7l/amtk-5.2.0-33ec-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/amtk/5.2.0-33ec-1_armv7l/amtk-5.2.0-33ec-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/amtk/5.2.0-33ec-1_i686/amtk-5.2.0-33ec-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/amtk/5.2.0-33ec-1_x86_64/amtk-5.2.0-33ec-1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/amtk/5.2.0-33ec-1_x86_64/amtk-5.2.0-33ec-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '6d3c8ac190895b8065f94c54baa32c3407c474204a58ded15aa850a5a177a176',
binary_sha256({
aarch64: '6d3c8ac190895b8065f94c54baa32c3407c474204a58ded15aa850a5a177a176',
armv7l: '6d3c8ac190895b8065f94c54baa32c3407c474204a58ded15aa850a5a177a176',
i686: '9df2871f1075f7129a7c6260ff7eae9b45b3fb5312fb2e5a56e3ec4269ac0e00',
x86_64: '6528fb4e8fc817d21ae245563631eec51954a1b3f75cc5513accca67732452d1',
x86_64: '6528fb4e8fc817d21ae245563631eec51954a1b3f75cc5513accca67732452d1'
})
depends_on 'gtk3'
@@ -27,13 +27,12 @@ class Amtk < Package
depends_on 'gtk_doc' => :build
depends_on 'llvm' => :build
def self.build
system "meson #{CREW_MESON_FNO_LTO_OPTIONS} \
-Dc_args='-fuse-ld=lld' \
builddir"
system "meson configure builddir"
system "ninja -C builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install

View File

@@ -9,17 +9,17 @@ class Anagram < Package
source_url 'http://www.fourmilab.ch/anagram/anagram-1.4.tar.gz'
source_sha256 'd046fd5accd3c62267c0ef81b56cd05c59ec92b37cdb73f69d031879dba308bd'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/anagram/1.4_armv7l/anagram-1.4-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/anagram/1.4_armv7l/anagram-1.4-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/anagram/1.4_i686/anagram-1.4-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/anagram/1.4_x86_64/anagram-1.4-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/anagram/1.4_x86_64/anagram-1.4-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '5d5e2fa0868d99ed24623a1fd98bf9a00a07c50e5a8c931cf2d43ab3dfbf1a42',
armv7l: '5d5e2fa0868d99ed24623a1fd98bf9a00a07c50e5a8c931cf2d43ab3dfbf1a42',
i686: '33dbe4fd1116e429e1b927f63de8361b3ba888f24712ae692bee0ac152bc41b7',
x86_64: '2d162c9d06d59ee1dab520deccfed04e3c27f7a5584346dfdc2e267bc46d310c',
x86_64: '2d162c9d06d59ee1dab520deccfed04e3c27f7a5584346dfdc2e267bc46d310c'
})
def self.build
@@ -33,7 +33,7 @@ class Anagram < Package
end
def self.install
system "gzip -9 anagram.1"
system 'gzip -9 anagram.1'
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
system "mkdir -p #{CREW_DEST_PREFIX}/share/anagram/bin"
system "mkdir -p #{CREW_DEST_PREFIX}/share/man/man1"

View File

@@ -12,9 +12,9 @@ class Android_sdk_tools < Package
depends_on 'jdk11'
def self.install
FileUtils.mkdir_p CREW_DEST_PREFIX + '/bin'
FileUtils.mkdir_p CREW_DEST_PREFIX + '/share/android-sdk-tools'
FileUtils.mv Dir['*'], CREW_DEST_PREFIX + '/share/android-sdk-tools'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/android-sdk-tools"
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/android-sdk-tools"
Dir["#{CREW_DEST_PREFIX}/share/android-sdk-tools/bin/*"].each do |filename|
binary = File.basename(filename)
FileUtils.ln_s "../share/android-sdk-tools/bin/#{binary}", "#{CREW_DEST_PREFIX}/bin/#{binary}"

View File

@@ -19,13 +19,13 @@ class Android_studio < Package
end
def self.install
FileUtils.mkdir_p CREW_DEST_PREFIX + '/bin'
FileUtils.mkdir_p CREW_DEST_PREFIX + '/share/android-studio'
FileUtils.mv 'bin', CREW_DEST_PREFIX + '/share/android-studio'
FileUtils.mv 'lib', CREW_DEST_PREFIX + '/share/android-studio'
FileUtils.mv 'plugins', CREW_DEST_PREFIX + '/share/android-studio'
FileUtils.cd CREW_DEST_PREFIX + '/bin' do
FileUtils.ln_s CREW_PREFIX + '/share/android-studio/bin/studio.sh', 'studio'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/android-studio"
FileUtils.mv 'bin', "#{CREW_DEST_PREFIX}/share/android-studio"
FileUtils.mv 'lib', "#{CREW_DEST_PREFIX}/share/android-studio"
FileUtils.mv 'plugins', "#{CREW_DEST_PREFIX}/share/android-studio"
FileUtils.cd "#{CREW_DEST_PREFIX}/bin" do
FileUtils.ln_s "#{CREW_PREFIX}/share/android-studio/bin/studio.sh", 'studio'
end
end
@@ -36,19 +36,19 @@ class Android_studio < Package
end
def self.remove
print "Would you like to remove the config directories? [y/N] "
response = STDIN.getc
print 'Would you like to remove the config directories? [y/N] '
response = $stdin.getc
config_dirs = ["#{HOME}/.android", "#{HOME}/Android"]
config_dirs.each { |config_dir|
if Dir.exist? config_dir
case response
when "y", "Y"
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightred
else
puts "#{config_dir} saved.".lightgreen
end
config_dirs.each do |config_dir|
next unless Dir.exist? config_dir
case response
when 'y', 'Y'
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightred
else
puts "#{config_dir} saved.".lightgreen
end
}
end
end
end

View File

@@ -9,17 +9,17 @@ class Ansifilter < Package
source_url 'http://www.andre-simon.de/zip/ansifilter-2.10.tar.bz2'
source_sha256 '23d2cf439d4ed4fbec8050b2826d61c244694ce06aaf8ca7d0ec1016afebee3f'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ansifilter/2.10_armv7l/ansifilter-2.10-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ansifilter/2.10_armv7l/ansifilter-2.10-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ansifilter/2.10_i686/ansifilter-2.10-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ansifilter/2.10_x86_64/ansifilter-2.10-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ansifilter/2.10_x86_64/ansifilter-2.10-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'd5a8d33520c76aeb3f13067f169300d4b959a78ef352331b14a1b70db9f44f5f',
armv7l: 'd5a8d33520c76aeb3f13067f169300d4b959a78ef352331b14a1b70db9f44f5f',
i686: 'b312b46ae42dfb60620e6f62caa5aae83bfe259e01094d84f2dd949a137eedf2',
x86_64: 'af4c1a4f1b9fddd1efa5dabded1664880bd25fc17b52290af956d4d5d7dedf5c',
x86_64: 'af4c1a4f1b9fddd1efa5dabded1664880bd25fc17b52290af956d4d5d7dedf5c'
})
def self.build

View File

@@ -44,6 +44,6 @@ class Ant < Package
export JAVA_HOME=#{CREW_PREFIX}/share/jdk8
export ANT_HOME=\$JAVA_HOME
ANTEOF
IO.write("#{CREW_DEST_PREFIX}/etc/env.d/ant", @antenv)
File.write("#{CREW_DEST_PREFIX}/etc/env.d/ant", @antenv)
end
end

View File

@@ -9,17 +9,17 @@ class Antiword < Package
source_url 'http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz'
source_sha256 '8e2c000fcbc6d641b0e6ff95e13c846da3ff31097801e86702124a206888f5ac'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/antiword/0.37-2_armv7l/antiword-0.37-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/antiword/0.37-2_armv7l/antiword-0.37-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/antiword/0.37-2_i686/antiword-0.37-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/antiword/0.37-2_x86_64/antiword-0.37-2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/antiword/0.37-2_x86_64/antiword-0.37-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '758ead9af6bdc9493b525d9e009e1f5edb3fa51ca1663d66dd8f43b89b821225',
armv7l: '758ead9af6bdc9493b525d9e009e1f5edb3fa51ca1663d66dd8f43b89b821225',
i686: '54276a60100d021bc6d619f175d3ca592f872a151eed6557fd09d87a6b2a6ea9',
x86_64: '5486ee47684aaf249f0f75f9c903aa8c79b41466ae94aa0dbbd660090af438d0',
x86_64: '5486ee47684aaf249f0f75f9c903aa8c79b41466ae94aa0dbbd660090af438d0'
})
def self.build
@@ -27,7 +27,7 @@ class Antiword < Package
system "sed -i 's,/share/,/,g' antiword.h"
system "sed -i 's,/usr/antiword,#{CREW_PREFIX}/share/antiword,g' antiword.h"
system "sed -i 's,/usr/share/antiword,#{CREW_PREFIX}/share/antiword,' Docs/antiword.1"
system "make"
system 'make'
end
def self.install

View File

@@ -26,9 +26,7 @@ class Antlr4 < Package
def self.install
system 'curl -#LO https://www.antlr.org/download/antlr-4.7.1-complete.jar'
unless Digest::SHA256.hexdigest(File.read('antlr-4.7.1-complete.jar')) == 'f41dce7441d523baf9769cb7756a00f27a4b67e55aacab44525541f62d7f6688'
abort 'Checksum mismatch. :/ Try again.'.lightred
end
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest(File.read('antlr-4.7.1-complete.jar')) == 'f41dce7441d523baf9769cb7756a00f27a4b67e55aacab44525541f62d7f6688'
system "install -Dm644 antlr-4.7.1-complete.jar #{CREW_DEST_LIB_PREFIX}/antlr-4.7.1-complete.jar"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d/"
@@ -38,6 +36,6 @@ class Antlr4 < Package
alias antlr4=\"java -jar #{CREW_LIB_PREFIX}/antlr-4.7.1-complete.jar\"
alias grun=\"java org.antlr.v4.gui.TestRig\"
ANTLR_EOF
IO.write("#{CREW_DEST_PREFIX}/etc/env.d/antlr4", @antlrenv)
File.write("#{CREW_DEST_PREFIX}/etc/env.d/antlr4", @antlrenv)
end
end

View File

@@ -6,27 +6,27 @@ class Apg < Package
version '2.2.3.dfsg.1'
license 'BSD-3'
compatibility 'all'
source_url "https://httpredir.debian.org/debian/pool/main/a/apg/apg_2.2.3.dfsg.1.orig.tar.gz"
source_url 'https://httpredir.debian.org/debian/pool/main/a/apg/apg_2.2.3.dfsg.1.orig.tar.gz'
source_sha256 'c7e3c556426e2d5d2f599873a71100c5f6d14fa8784e0b1d879916784de801df'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apg/2.2.3.dfsg.1_armv7l/apg-2.2.3.dfsg.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apg/2.2.3.dfsg.1_armv7l/apg-2.2.3.dfsg.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apg/2.2.3.dfsg.1_i686/apg-2.2.3.dfsg.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apg/2.2.3.dfsg.1_x86_64/apg-2.2.3.dfsg.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apg/2.2.3.dfsg.1_x86_64/apg-2.2.3.dfsg.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '1e4391fe1edf715853f97bd551f1f9e8a35f562bfd12f3f1838256640e75068f',
armv7l: '1e4391fe1edf715853f97bd551f1f9e8a35f562bfd12f3f1838256640e75068f',
i686: '6a299f28d79d33db6a2b1794e7fbfd27cbc48f4c7bb18a683dcf18c019c28628',
x86_64: '7ddeb08e8633166b18c147a8c85558badad8626a1e97ff6d6383c6056c0199d2',
x86_64: '7ddeb08e8633166b18c147a8c85558badad8626a1e97ff6d6383c6056c0199d2'
})
def self.patch
system "curl -#LO https://httpredir.debian.org/debian/pool/main/a/apg/apg_2.2.3.dfsg.1-5.debian.tar.xz"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("apg_2.2.3.dfsg.1-5.debian.tar.xz") ) == '8305fdb424d934f4d217b7910e0b971cff205b28857b9dc9df95e38bd1aaa9a0'
system "tar xf apg_2.2.3.dfsg.1-5.debian.tar.xz"
FileUtils.rm "debian/patches/series"
system 'curl -#LO https://httpredir.debian.org/debian/pool/main/a/apg/apg_2.2.3.dfsg.1-5.debian.tar.xz'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest(File.read('apg_2.2.3.dfsg.1-5.debian.tar.xz')) == '8305fdb424d934f4d217b7910e0b971cff205b28857b9dc9df95e38bd1aaa9a0'
system 'tar xf apg_2.2.3.dfsg.1-5.debian.tar.xz'
FileUtils.rm 'debian/patches/series'
system "sed -i '10,16d' debian/patches/Makefile"
system "for i in debian/patches/*; do patch -Np1 -i \"\${i}\"; done"
system "sed -i 's:INSTALL_PREFIX = /usr/local:INSTALL_PREFIX = #{CREW_DEST_PREFIX}:' Makefile"
@@ -35,7 +35,7 @@ class Apg < Package
end
def self.build
system "make"
system 'make'
end
def self.install

View File

@@ -10,17 +10,17 @@ class Apng2gif < Package
source_url "https://sourceforge.net/projects/apng2gif/files/#{@_ver}/apng2gif-#{@_ver}-src.zip"
source_sha256 '9a07e386017dc696573cd7bc7b46b2575c06da0bc68c3c4f1c24a4b39cdedd4d'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apng2gif/1.8_armv7l/apng2gif-1.8-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apng2gif/1.8_armv7l/apng2gif-1.8-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apng2gif/1.8_i686/apng2gif-1.8-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apng2gif/1.8_x86_64/apng2gif-1.8-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apng2gif/1.8_x86_64/apng2gif-1.8-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'f0d57f404b10ce2dc14a3ce61baa7be9d7bbefc8e0bb77e6b943bf7c07191578',
armv7l: 'f0d57f404b10ce2dc14a3ce61baa7be9d7bbefc8e0bb77e6b943bf7c07191578',
i686: '851c65719e952dc8b00c74457002f0f905f75b6bbc64e18a23e2b25b55e0d881',
x86_64: '921598e9de5c2ac2d22de713bdc4bdeb9d2cd436b4e166f69773c561a2ff53da',
x86_64: '921598e9de5c2ac2d22de713bdc4bdeb9d2cd436b4e166f69773c561a2ff53da'
})
depends_on 'libpng'
@@ -38,7 +38,7 @@ class Apng2gif < Package
def self.build
system 'make'
system "help2man -s 1 -N -h '' \
-n '#{self.description.downcase.delete! '.'}' \
-n '#{description.downcase.delete! '.'}' \
--version-string='#{@_ver}' \
./apng2gif -o apng2gif.1"
end
@@ -46,7 +46,7 @@ class Apng2gif < Package
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin/"
FileUtils.mkdir_p "#{CREW_DEST_MAN_PREFIX}/man1/"
FileUtils.install 'apng2gif', "#{CREW_DEST_PREFIX}/bin/apng2gif", mode: 0755
FileUtils.install 'apng2gif.1', "#{CREW_DEST_MAN_PREFIX}/man1/apng2gif.1", mode: 0644
FileUtils.install 'apng2gif', "#{CREW_DEST_PREFIX}/bin/apng2gif", mode: 0o755
FileUtils.install 'apng2gif.1', "#{CREW_DEST_MAN_PREFIX}/man1/apng2gif.1", mode: 0o644
end
end

View File

@@ -9,17 +9,17 @@ class Appres < Package
source_url 'https://x.org/archive/individual/app/appres-1.0.5.tar.bz2'
source_sha256 'ffad893712c81943b919e3cbfe46fc65259cc0d9eb96d5e658670e3fbb265928'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/appres/1.0.5_armv7l/appres-1.0.5-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/appres/1.0.5_armv7l/appres-1.0.5-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/appres/1.0.5_i686/appres-1.0.5-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/appres/1.0.5_x86_64/appres-1.0.5-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/appres/1.0.5_x86_64/appres-1.0.5-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'e470f6c5a1c9d2ef2f89efe68b1243952d6697f8cd265b1baca52353933b9908',
armv7l: 'e470f6c5a1c9d2ef2f89efe68b1243952d6697f8cd265b1baca52353933b9908',
i686: 'ecfbf924a5003f2de92a65c559f0422547fe336d704d2e1d99b16bc8cbcda424',
x86_64: 'be67999ef4b05b90136fd8c0551473c3605046154127e62292bdfa0bd5c194af',
x86_64: 'be67999ef4b05b90136fd8c0551473c3605046154127e62292bdfa0bd5c194af'
})
def self.build

View File

@@ -9,17 +9,17 @@ class Apr < Package
source_url 'https://apache.claz.org/apr/apr-1.7.0.tar.bz2'
source_sha256 'e2e148f0b2e99b8e5c6caa09f6d4fb4dd3e83f744aa72a952f94f5a14436f7ea'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apr/1.7.0-1_armv7l/apr-1.7.0-1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apr/1.7.0-1_armv7l/apr-1.7.0-1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apr/1.7.0-1_i686/apr-1.7.0-1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apr/1.7.0-1_x86_64/apr-1.7.0-1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apr/1.7.0-1_x86_64/apr-1.7.0-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'a57bb1fa211ba38061bb9d6498fd567559d80362591845687945318e9f657f4d',
armv7l: 'a57bb1fa211ba38061bb9d6498fd567559d80362591845687945318e9f657f4d',
i686: '0c69672d2390520bb3e1259da5842a86abb8d0fef7ffa111f2c8b8ed7500b61c',
x86_64: '074000aa69a400375f08d9c947bff250995a4b59a28e48952738d19efe97f9e6',
x86_64: '074000aa69a400375f08d9c947bff250995a4b59a28e48952738d19efe97f9e6'
})
def self.build
@@ -27,11 +27,11 @@ class Apr < Package
--disable-maintainer-mode \
--with-devrandom \
--without-sendfile"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.rm_rf "#{CREW_DEST_PREFIX}/build-1" # Seems residual from build and isn't needed
end
end

View File

@@ -9,17 +9,17 @@ class Apriconv < Package
source_url 'https://apache.claz.org/apr/apr-iconv-1.2.2.tar.bz2'
source_sha256 '7d454e0fe32f2385f671000e3b755839d16aabd7291e3947c973c90377c35313'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apriconv/1.2.2_armv7l/apriconv-1.2.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apriconv/1.2.2_armv7l/apriconv-1.2.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apriconv/1.2.2_i686/apriconv-1.2.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apriconv/1.2.2_x86_64/apriconv-1.2.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/apriconv/1.2.2_x86_64/apriconv-1.2.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '6ec314d1d6143a855e59d5a3b76db311e3ba60b980b98be3d639c39e74949fed',
armv7l: '6ec314d1d6143a855e59d5a3b76db311e3ba60b980b98be3d639c39e74949fed',
i686: 'ef8a4e543d11b010edae76ec4ea4d06be68b41a3d4e31bc8764969f2d216d8e5',
x86_64: 'd3abcd64112eb46aef6bb090409471c9fbaf675cd258aff0220d696fed9b6771',
x86_64: 'd3abcd64112eb46aef6bb090409471c9fbaf675cd258aff0220d696fed9b6771'
})
depends_on 'apr'
@@ -33,11 +33,11 @@ class Apriconv < Package
system "sed -i 's,/usr/local/lib,#{CREW_LIB_PREFIX},g' Makefile"
system "sed -i 's,/usr/local/lib,#{CREW_LIB_PREFIX},g' ccs/Makefile"
system "sed -i 's,/usr/local/lib,#{CREW_LIB_PREFIX},g' ces/Makefile"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "libtool --mode=finish #{CREW_DEST_LIB_PREFIX}/iconv"
end
end

View File

@@ -9,17 +9,17 @@ class Aprutil < Package
source_url 'https://apache.claz.org/apr/apr-util-1.6.1.tar.bz2'
source_sha256 'd3e12f7b6ad12687572a3a39475545a072608f4ba03a6ce8a3778f607dd0035b'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aprutil/1.6.1_armv7l/aprutil-1.6.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aprutil/1.6.1_armv7l/aprutil-1.6.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aprutil/1.6.1_i686/aprutil-1.6.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aprutil/1.6.1_x86_64/aprutil-1.6.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aprutil/1.6.1_x86_64/aprutil-1.6.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'e9fc87b307ffd4b0ebf0f8edb198813eff40c78652ca128b870401e0b95e8da5',
armv7l: 'e9fc87b307ffd4b0ebf0f8edb198813eff40c78652ca128b870401e0b95e8da5',
i686: '487fce828c6a4e0bae45b4675240fa06bd7a59bde1007009db3722dce065397f',
x86_64: 'e5abe47026a3bf51748e2d3aaaa1e5dc5d46c66180145502e989a28cdae49b30',
x86_64: 'e5abe47026a3bf51748e2d3aaaa1e5dc5d46c66180145502e989a28cdae49b30'
})
depends_on 'apr'
@@ -31,10 +31,10 @@ class Aprutil < Package
"--libdir=#{CREW_LIB_PREFIX}",
"--with-apr=#{CREW_PREFIX}",
'--disable-maintainer-mode'
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,15 +9,15 @@ class Aqemu < Package
source_url 'https://downloads.sourceforge.net/project/aqemu/aqemu/0.9.2/aqemu-0.9.2.tar.gz'
source_sha256 'e3d54de00ebdce3754f97f7e0e7cce8cebb588e8ce6bc249401cc909281b08de'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aqemu/0.9.2_armv7l/aqemu-0.9.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aqemu/0.9.2_armv7l/aqemu-0.9.2-chromeos-armv7l.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aqemu/0.9.2_x86_64/aqemu-0.9.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aqemu/0.9.2_x86_64/aqemu-0.9.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '9b660d4e0ed420f0a74c5df33e7221042fc87764d9f8e70856a1aa31d14ea71c',
armv7l: '9b660d4e0ed420f0a74c5df33e7221042fc87764d9f8e70856a1aa31d14ea71c',
x86_64: '99544f65ac97a48e5f7e4c25eb26113db8301b25a5bbdd41d2fbfe52a5bdcd26',
x86_64: '99544f65ac97a48e5f7e4c25eb26113db8301b25a5bbdd41d2fbfe52a5bdcd26'
})
depends_on 'libvncserver'
@@ -31,8 +31,8 @@ class Aqemu < Package
Dir.chdir 'build' do
system 'cmake',
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}",
"-DCMAKE_BUILD_TYPE=Release",
"-DMAN_PAGE_COMPRESSOR=gzip",
'-DCMAKE_BUILD_TYPE=Release',
'-DMAN_PAGE_COMPRESSOR=gzip',
'..'
system 'make'
end
@@ -48,9 +48,9 @@ class Aqemu < Package
puts
puts "Type 'aqemu' to execute.".lightblue
puts
puts "To completely uninstall, execute the following:".lightblue
puts "crew remove aqemu".lightblue
puts "rm -rf ~/.aqemu".lightblue
puts 'To completely uninstall, execute the following:'.lightblue
puts 'crew remove aqemu'.lightblue
puts 'rm -rf ~/.aqemu'.lightblue
puts
end
end

View File

@@ -11,17 +11,17 @@ class Arduino_ide < Package
no_compile_needed
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arduino_ide/1.8.10_armv7l/arduino_ide-1.8.10-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arduino_ide/1.8.10_armv7l/arduino_ide-1.8.10-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arduino_ide/1.8.10_i686/arduino_ide-1.8.10-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arduino_ide/1.8.10_x86_64/arduino_ide-1.8.10-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arduino_ide/1.8.10_x86_64/arduino_ide-1.8.10-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'cf323df5db4b7b3d225199539f185cdd66bb7d86705b8eec5125d1538508bf9b',
armv7l: 'cf323df5db4b7b3d225199539f185cdd66bb7d86705b8eec5125d1538508bf9b',
i686: '9755e405993c3608fa7ff631eab47b0ab25af9b043f369ebf96d512e4a0b0375',
x86_64: 'f3a6d2ae75065565c1891d09b4e5556647be4dd6e5a04d8345b5a3b0d1183792',
x86_64: 'f3a6d2ae75065565c1891d09b4e5556647be4dd6e5a04d8345b5a3b0d1183792'
})
depends_on 'xzutils'
@@ -39,7 +39,7 @@ class Arduino_ide < Package
end
def self.build
Dir.chdir("build") do
Dir.chdir('build') do
system 'env',
"JAVA_HOME=#{CREW_PREFIX}/share/jdk8",
'ant',
@@ -49,7 +49,7 @@ class Arduino_ide < Package
'clean',
'dist'
system "echo '#!/bin/bash' > arduino"
system "echo >> arduino"
system 'echo >> arduino'
system "echo 'echo \"Enabling Arduino write access...\"' >> arduino"
system "echo 'sudo chmod o+rw /dev/ttyACM*' >> arduino"
system "echo '#{CREW_PREFIX}/share/arduino-#{version}/arduino \"$@\"' >> arduino"
@@ -59,7 +59,7 @@ class Arduino_ide < Package
end
def self.install
Dir.chdir("build") do
Dir.chdir('build') do
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share"
system "tar xpf linux/arduino-#{version}-#{@platform}.tar.xz -C #{CREW_DEST_PREFIX}/share/"
system "install -Dm755 arduino #{CREW_DEST_PREFIX}/bin/arduino"

View File

@@ -9,17 +9,17 @@ class Argon2 < Package
source_url 'https://github.com/P-H-C/phc-winner-argon2/archive/20190702.tar.gz'
source_sha256 'daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/argon2/20190702_armv7l/argon2-20190702-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/argon2/20190702_armv7l/argon2-20190702-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/argon2/20190702_i686/argon2-20190702-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/argon2/20190702_x86_64/argon2-20190702-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/argon2/20190702_x86_64/argon2-20190702-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '62fb0dbf5a2840752a4715da92c0ac97bac285e9d36f37c1a9ee37e92bb78756',
armv7l: '62fb0dbf5a2840752a4715da92c0ac97bac285e9d36f37c1a9ee37e92bb78756',
i686: 'f2774c5515e86d5dc959fc4479d33ff4a9d58a5b779a5fbab8c219d5d5fa5fe9',
x86_64: 'dfe3a1d783c9b219c3905efc52ba26d7b7d6e9efc57b86ba1898792a0c8dffa2',
x86_64: 'dfe3a1d783c9b219c3905efc52ba26d7b7d6e9efc57b86ba1898792a0c8dffa2'
})
def self.build

View File

@@ -10,17 +10,17 @@ class Aribb24 < Package
source_url 'https://github.com/nkoriyama/aribb24.git'
git_hashtag "v#{@_ver}"
binary_url ({
aarch64: 'file:///usr/local/tmp/packages/aribb24-1.0.3-chromeos-armv7l.tpxz',
binary_url({
aarch64: 'file:///usr/local/tmp/packages/aribb24-1.0.3-chromeos-armv7l.tpxz',
armv7l: 'file:///usr/local/tmp/packages/aribb24-1.0.3-chromeos-armv7l.tpxz',
i686: 'file:///usr/local/tmp/packages/aribb24-1.0.3-chromeos-i686.tpxz',
x86_64: 'file:///usr/local/tmp/packages/aribb24-1.0.3-chromeos-x86_64.tpxz',
x86_64: 'file:///usr/local/tmp/packages/aribb24-1.0.3-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: 'c1a2d6f4596e1d1e1e622c28b5224e114d68ba85272a1506f5e420aa703932a6',
binary_sha256({
aarch64: 'c1a2d6f4596e1d1e1e622c28b5224e114d68ba85272a1506f5e420aa703932a6',
armv7l: 'c1a2d6f4596e1d1e1e622c28b5224e114d68ba85272a1506f5e420aa703932a6',
i686: '3d35337928479ab6f9085deea67ac7dd788c07ebdb9ed0e00c0731b569931ed4',
x86_64: '44d684b99a0c067691d16c715daea8afe40bc4c6611da33b87d31084eab8e55e',
x86_64: '44d684b99a0c067691d16c715daea8afe40bc4c6611da33b87d31084eab8e55e'
})
depends_on 'libpng'

View File

@@ -10,17 +10,17 @@ class Aribb25 < Package
source_url 'https://code.videolan.org/videolan/aribb25.git'
git_hashtag @_ver
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aribb25/0.2.7_armv7l/aribb25-0.2.7-chromeos-armv7l.tpxz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aribb25/0.2.7_armv7l/aribb25-0.2.7-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aribb25/0.2.7_armv7l/aribb25-0.2.7-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aribb25/0.2.7_i686/aribb25-0.2.7-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aribb25/0.2.7_x86_64/aribb25-0.2.7-chromeos-x86_64.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aribb25/0.2.7_x86_64/aribb25-0.2.7-chromeos-x86_64.tpxz'
})
binary_sha256 ({
aarch64: '21290fa231ac801bbafbcf7c6f16e588257d241560e81999df3014e48c15715e',
binary_sha256({
aarch64: '21290fa231ac801bbafbcf7c6f16e588257d241560e81999df3014e48c15715e',
armv7l: '21290fa231ac801bbafbcf7c6f16e588257d241560e81999df3014e48c15715e',
i686: 'c69200d277d2d2f7bcd24a3133c9c0e99d288c15e36231550f91f22b38f1e928',
x86_64: '8efc2a4ebaf94e5f556882b80b86dd5cecdecc7e3029b7e14b2a6fb9fd914b12',
x86_64: '8efc2a4ebaf94e5f556882b80b86dd5cecdecc7e3029b7e14b2a6fb9fd914b12'
})
depends_on 'pcsc_lite'

View File

@@ -9,17 +9,17 @@ class Armadillo < Package
source_url 'https://downloads.sourceforge.net/project/arma/armadillo-9.600.5.tar.xz'
source_sha256 'dd9cd664282f2c3483af194ceedc2fba8559e0d20f8782c640fd6f3ac7cac2bf'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/armadillo/9.600.5_armv7l/armadillo-9.600.5-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/armadillo/9.600.5_armv7l/armadillo-9.600.5-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/armadillo/9.600.5_i686/armadillo-9.600.5-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/armadillo/9.600.5_x86_64/armadillo-9.600.5-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/armadillo/9.600.5_x86_64/armadillo-9.600.5-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'cabc00c9184da1185c0fcbe834c1447e0e31a9ff34b9c2ede39f7419b95768cc',
armv7l: 'cabc00c9184da1185c0fcbe834c1447e0e31a9ff34b9c2ede39f7419b95768cc',
i686: 'cead7ef29533291a9070b8b1cddf6d909c224463e0e984a4d5bf49a208f17590',
x86_64: '313502ef0f2c9c701c4e5c59d456a6105c8aba4c63bc0a77a829649ffa2e9e78',
x86_64: '313502ef0f2c9c701c4e5c59d456a6105c8aba4c63bc0a77a829649ffa2e9e78'
})
depends_on 'arpack_ng'

View File

@@ -9,17 +9,17 @@ class Arpack_ng < Package
source_url 'https://github.com/opencollab/arpack-ng/archive/3.7.0.tar.gz'
source_sha256 '972e3fc3cd0b9d6b5a737c9bf6fd07515c0d6549319d4ffb06970e64fa3cc2d6'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arpack_ng/3.7.0_armv7l/arpack_ng-3.7.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arpack_ng/3.7.0_armv7l/arpack_ng-3.7.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arpack_ng/3.7.0_i686/arpack_ng-3.7.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arpack_ng/3.7.0_x86_64/arpack_ng-3.7.0-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arpack_ng/3.7.0_x86_64/arpack_ng-3.7.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '8ac867cd31ef8c507039105de1e6467807c30a75f1752ab43650d82348b558d0',
armv7l: '8ac867cd31ef8c507039105de1e6467807c30a75f1752ab43650d82348b558d0',
i686: '8c2096851e7868c456220480b315d8ba84b5c188d8bf193cf8ce8abea6b20eb4',
x86_64: '83b1d11cbc66d977dc2287f8273a39527bd33c302b81baaa84172c110b6aeed1',
x86_64: '83b1d11cbc66d977dc2287f8273a39527bd33c302b81baaa84172c110b6aeed1'
})
depends_on 'lapack'
@@ -56,7 +56,7 @@ class Arpack_ng < Package
'-DMPI=ON',
'..'
system 'make'
system 'ld_default', "#{old_ld}"
system 'ld_default', old_ld.to_s
end
end

View File

@@ -9,17 +9,17 @@ class Arping < Package
source_url 'https://github.com/ThomasHabets/arping/archive/arping-2.21.tar.gz'
source_sha256 '7bf550571aa1d4a2b00878bb2f6fb857a09d30bf65411c90d62afcd86755bd81'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arping/2.21_armv7l/arping-2.21-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arping/2.21_armv7l/arping-2.21-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arping/2.21_i686/arping-2.21-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arping/2.21_x86_64/arping-2.21-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/arping/2.21_x86_64/arping-2.21-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'e85f871e84dce5360c1b50eccaa3ae5a1beaea9f89120cf0da19ffcabcf19fa1',
armv7l: 'e85f871e84dce5360c1b50eccaa3ae5a1beaea9f89120cf0da19ffcabcf19fa1',
i686: 'b808583d44c865ac023986b02e4c1ad8d9fbdbd12540775f620953b01a810e50',
x86_64: '46c5c7e174bb800bb317e09df6f77448040c7aeda137a23e2b8ed85ecb852fcb',
x86_64: '46c5c7e174bb800bb317e09df6f77448040c7aeda137a23e2b8ed85ecb852fcb'
})
depends_on 'libpcap'

View File

@@ -9,17 +9,17 @@ class Ascii < Package
source_url 'http://www.catb.org/~esr/ascii/ascii-3.18.tar.gz'
source_sha256 '728422d5f4da61a37a17b4364d06708e543297de0a5f70305243236d80df072d'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_armv7l/ascii-3.18-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_armv7l/ascii-3.18-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_i686/ascii-3.18-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_x86_64/ascii-3.18-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_x86_64/ascii-3.18-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '63c6f3c239267c0b815e21f4dd697e2aff4eea42b7612f0e6ef2355bec4af25a',
armv7l: '63c6f3c239267c0b815e21f4dd697e2aff4eea42b7612f0e6ef2355bec4af25a',
i686: '842cdd491d6d8e7cfaafc2787cee021bbcf76bd70c70dd76397bff6391c9e3ef',
x86_64: '4107a21b427fd0a090d73a89d06ace01d28d68ae84d56d3c3f159633304f1b22',
x86_64: '4107a21b427fd0a090d73a89d06ace01d28d68ae84d56d3c3f159633304f1b22'
})
def self.build
@@ -27,7 +27,7 @@ class Ascii < Package
end
def self.install
system "gzip -9 ascii.1"
system 'gzip -9 ascii.1'
system "install -Dm755 ascii #{CREW_DEST_PREFIX}/bin/ascii"
system "install -Dm644 ascii.1.gz #{CREW_DEST_PREFIX}/man/man1/ascii.1.gz"
end

View File

@@ -9,25 +9,25 @@ class Aspell < Package
source_url 'https://ftpmirror.gnu.org/aspell/aspell-0.60.8.tar.gz'
source_sha256 'f9b77e515334a751b2e60daab5db23499e26c9209f5e7b7443b05235ad0226f2'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_armv7l/aspell-0.60.8-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_armv7l/aspell-0.60.8-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_i686/aspell-0.60.8-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_x86_64/aspell-0.60.8-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell/0.60.8_x86_64/aspell-0.60.8-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'ec931f1b5a7f23a2eef005a698b2fcda44bcbfe6c9d7c7e3fcc3df91bb284f62',
armv7l: 'ec931f1b5a7f23a2eef005a698b2fcda44bcbfe6c9d7c7e3fcc3df91bb284f62',
i686: '9ab3ed9b17c48be746b1d6d594126259ce38f13b162642b49fd37e73e3462f65',
x86_64: '43dfba23530b07ab4e59c3fe554904d4316646914a77a802009cfef55a01ff34',
x86_64: '43dfba23530b07ab4e59c3fe554904d4316646914a77a802009cfef55a01ff34'
})
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,17 +9,17 @@ class Aspell_es < Package
source_url 'ftp://ftp.gnu.org/gnu/aspell/dict/es/aspell6-es-1.11-2.tar.bz2'
source_sha256 'ad367fa1e7069c72eb7ae37e4d39c30a44d32a6aa73cedccbd0d06a69018afcc'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_es/1.11-2_armv7l/aspell_es-1.11-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_es/1.11-2_armv7l/aspell_es-1.11-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_es/1.11-2_i686/aspell_es-1.11-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_es/1.11-2_x86_64/aspell_es-1.11-2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_es/1.11-2_x86_64/aspell_es-1.11-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '6672aed4511fc5297e905cfdb10c8491d4e077f53cd0d6eb7500d380f6f7e28d',
armv7l: '6672aed4511fc5297e905cfdb10c8491d4e077f53cd0d6eb7500d380f6f7e28d',
i686: 'e6cc8bf92d0f592d98d82f3dd65459e5daee9d032114a902965ba7992909151b',
x86_64: '378beb1b7c53816d15dffccdfdbc876d56ee4ef37397da065aa2a4275defc991',
x86_64: '378beb1b7c53816d15dffccdfdbc876d56ee4ef37397da065aa2a4275defc991'
})
depends_on 'aspell'
@@ -30,6 +30,6 @@ class Aspell_es < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,17 +9,17 @@ class Aspell_fr < Package
source_url 'https://ftpmirror.gnu.org/aspell/dict/fr/aspell-fr-0.50-3.tar.bz2'
source_sha256 'f9421047519d2af9a7a466e4336f6e6ea55206b356cd33c8bd18cb626bf2ce91'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_fr/0.50-3_armv7l/aspell_fr-0.50-3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_fr/0.50-3_armv7l/aspell_fr-0.50-3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_fr/0.50-3_i686/aspell_fr-0.50-3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_fr/0.50-3_x86_64/aspell_fr-0.50-3-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aspell_fr/0.50-3_x86_64/aspell_fr-0.50-3-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'c109f726e0a3a7e708a6c8fb4cb1cd7f84d0486fa352c141ce5f70817651efc7',
armv7l: 'c109f726e0a3a7e708a6c8fb4cb1cd7f84d0486fa352c141ce5f70817651efc7',
i686: '3a466ebca6ea8267b2ba5e5bcda9b1e15869f11d144b2c282dc5ff40a37d7364',
x86_64: '8ffcc409bf5c6e4a142b68d027498942788535f8025927de23efa477e1a7d2c1',
x86_64: '8ffcc409bf5c6e4a142b68d027498942788535f8025927de23efa477e1a7d2c1'
})
depends_on 'aspell'
@@ -30,6 +30,6 @@ class Aspell_fr < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,17 +9,17 @@ class At_spi2_atk < Package
source_url 'https://github.com/GNOME/at-spi2-atk/archive/AT_SPI2_ATK_2_38_0.tar.gz'
source_sha256 '95f10c80834d3811938153199da671967ee3c8f378883ed3f6ddeee1d316d3e4'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/at_spi2_atk/2.38.0_armv7l/at_spi2_atk-2.38.0-chromeos-armv7l.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/at_spi2_atk/2.38.0_armv7l/at_spi2_atk-2.38.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/at_spi2_atk/2.38.0_armv7l/at_spi2_atk-2.38.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/at_spi2_atk/2.38.0_i686/at_spi2_atk-2.38.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/at_spi2_atk/2.38.0_x86_64/at_spi2_atk-2.38.0-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/at_spi2_atk/2.38.0_x86_64/at_spi2_atk-2.38.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '097744ccba6da2013771b9da22a887e64cd6fd0df0b39bc1576e9131e1ff30a9',
binary_sha256({
aarch64: '097744ccba6da2013771b9da22a887e64cd6fd0df0b39bc1576e9131e1ff30a9',
armv7l: '097744ccba6da2013771b9da22a887e64cd6fd0df0b39bc1576e9131e1ff30a9',
i686: '12aba0b16a694f3e79e7fa562bfd7510c27d8d4864a5b57f9caed48e7801a890',
x86_64: 'ce793ff57e4c0ba75b76e8f12934741f6cb26b4d02cc9080e647c28170b1f627',
x86_64: 'ce793ff57e4c0ba75b76e8f12934741f6cb26b4d02cc9080e647c28170b1f627'
})
depends_on 'automake' => :build
@@ -28,8 +28,8 @@ class At_spi2_atk < Package
def self.build
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson configure builddir"
system "ninja -C builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install

View File

@@ -9,17 +9,17 @@ class Atk < Package
source_url 'https://download.gnome.org/sources/atk/2.36/atk-2.36.0.tar.xz'
source_sha256 'fb76247e369402be23f1f5c65d38a9639c1164d934e40f6a9cf3c9e96b652788'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atk/2.36_armv7l/atk-2.36-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atk/2.36_armv7l/atk-2.36-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atk/2.36_i686/atk-2.36-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atk/2.36_x86_64/atk-2.36-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atk/2.36_x86_64/atk-2.36-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '59b8ccc0c669036ac52af1ce1ae2935f003b373c8fad8ce6825ded95bc1b2a29',
armv7l: '59b8ccc0c669036ac52af1ce1ae2935f003b373c8fad8ce6825ded95bc1b2a29',
i686: 'e96cb35a8e5855e32a7ab39f7edf67f7dc19eed74c0a3a63abf4d2ffb4b3db67',
x86_64: '6e8cf2d268ac84d9cccb189167449882aa19489093dacedf6697165049d3fa58',
x86_64: '6e8cf2d268ac84d9cccb189167449882aa19489093dacedf6697165049d3fa58'
})
depends_on 'gobject_introspection'

View File

@@ -9,17 +9,17 @@ class Atkmm < Package
source_url 'https://ftp.gnome.org/pub/gnome/sources/atkmm/2.28/atkmm-2.28.1.tar.xz'
source_sha256 '116876604770641a450e39c1f50302884848ce9cc48d43c5dc8e8efc31f31bad'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atkmm/2.28.1_armv7l/atkmm-2.28.1-chromeos-armv7l.tar.xz',
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atkmm/2.28.1_armv7l/atkmm-2.28.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atkmm/2.28.1_armv7l/atkmm-2.28.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atkmm/2.28.1_i686/atkmm-2.28.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atkmm/2.28.1_x86_64/atkmm-2.28.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atkmm/2.28.1_x86_64/atkmm-2.28.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '0f959c7e95bee71b46cb1b90902d0e7556d0914e56e1a4e7654c95166307dd8d',
binary_sha256({
aarch64: '0f959c7e95bee71b46cb1b90902d0e7556d0914e56e1a4e7654c95166307dd8d',
armv7l: '0f959c7e95bee71b46cb1b90902d0e7556d0914e56e1a4e7654c95166307dd8d',
i686: '1b400ecf33d5dcbceaffee8608a06c155fcd57d118262569136552c1f11c96bc',
x86_64: '2aee40b687e3c021894d9d98719655de5bc703f5d397b4ee2f452accc45915cd',
x86_64: '2aee40b687e3c021894d9d98719655de5bc703f5d397b4ee2f452accc45915cd'
})
depends_on 'atk'
@@ -32,8 +32,8 @@ class Atkmm < Package
-Dbuild-demos=false \
-Dbuild-tests=false \
builddir"
system "meson configure builddir"
system "ninja -C builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install

View File

@@ -9,17 +9,17 @@ class Atomicparsley < Package
source_url 'https://bitbucket.org/wez/atomicparsley/get/0.9.6.tar.gz'
source_sha256 '8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atomicparsley/0.9.6_armv7l/atomicparsley-0.9.6-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atomicparsley/0.9.6_armv7l/atomicparsley-0.9.6-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atomicparsley/0.9.6_i686/atomicparsley-0.9.6-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atomicparsley/0.9.6_x86_64/atomicparsley-0.9.6-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atomicparsley/0.9.6_x86_64/atomicparsley-0.9.6-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '55d6f7bf30bd0e178dd9d117c08b6b5c6f6965808f2e483256ab100a0823b4ae',
armv7l: '55d6f7bf30bd0e178dd9d117c08b6b5c6f6965808f2e483256ab100a0823b4ae',
i686: '26281255b16153c6fa663cd6f7bea0dc56e11e06bbf5e44396677932937c226c',
x86_64: '9dc15a38e01fd81e25e515ff69ac7a89fb07ff9771ff85e54e4da29adc523ba8',
x86_64: '9dc15a38e01fd81e25e515ff69ac7a89fb07ff9771ff85e54e4da29adc523ba8'
})
depends_on 'autoconf'
@@ -27,12 +27,12 @@ class Atomicparsley < Package
depends_on 'zlibpkg'
def self.build
system "./autogen.sh"
system "./configure"
system "make"
system './autogen.sh'
system './configure'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,28 +9,27 @@ class Atool < Package
source_url 'http://download.savannah.gnu.org/releases/atool/atool-0.39.0.tar.gz'
source_sha256 'aaf60095884abb872e25f8e919a8a63d0dabaeca46faeba87d12812d6efc703b'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atool/0.39_armv7l/atool-0.39-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atool/0.39_armv7l/atool-0.39-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atool/0.39_i686/atool-0.39-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atool/0.39_x86_64/atool-0.39-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/atool/0.39_x86_64/atool-0.39-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '10d316dddae76dbb595c8ab0f5cf1486d40f18f6c20c151b46c614313a6fc822',
armv7l: '10d316dddae76dbb595c8ab0f5cf1486d40f18f6c20c151b46c614313a6fc822',
i686: '690926e3c631340d2e3f0a91390d4a0c4c8ab1dd9001dc0aaf8eff019eaeb3d7',
x86_64: 'e8e9a3db6efd80ad3b5b18725c4c5c4816e56fc101ca273de072af489f8c0d1e',
x86_64: 'e8e9a3db6efd80ad3b5b18725c4c5c4816e56fc101ca273de072af489f8c0d1e'
})
depends_on 'perl'
def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # the steps required to install the package
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' # the steps required to install the package
end
end

View File

@@ -9,17 +9,17 @@ class Audacious < Package
source_url 'https://distfiles.audacious-media-player.org/audacious-3.10.1.tar.bz2'
source_sha256 '8366e840bb3c9448c2cf0cf9a0800155b0bd7cc212a28ba44990c3d2289c6b93'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious/3.10.1_armv7l/audacious-3.10.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious/3.10.1_armv7l/audacious-3.10.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious/3.10.1_i686/audacious-3.10.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious/3.10.1_x86_64/audacious-3.10.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious/3.10.1_x86_64/audacious-3.10.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '6597ca2c03a630bc4da5ff6f0543e2dc5a4d7621b9bcdb2828fe49fc3889df9d',
armv7l: '6597ca2c03a630bc4da5ff6f0543e2dc5a4d7621b9bcdb2828fe49fc3889df9d',
i686: '7176161f5e71887d35338b7e18bc5524b907d9c334454ea6409e043eb5527806',
x86_64: '5660d4bbee7230c4b2698973b2a82a45e20461dba246fb22fcdbf91be74b9793',
x86_64: '5660d4bbee7230c4b2698973b2a82a45e20461dba246fb22fcdbf91be74b9793'
})
depends_on 'audacious_plugins' => :runtime
@@ -40,12 +40,12 @@ class Audacious < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.postinstall
puts
puts "To configure, execute the following:".lightblue
puts 'To configure, execute the following:'.lightblue
puts "Type 'audacious' to launch the music player.".lightblue
puts "From the menu, select 'Output' > 'Audio Settings'.".lightblue
puts "Select 'ALSA Output' for the 'Output plugin'.".lightblue
@@ -53,9 +53,9 @@ class Audacious < Package
puts "Select 'sysdefault - Default control device' for 'Mixer device'.".lightblue
puts "Click 'Close' and 'Close' again to save.".lightblue
puts
puts "To completely remove, execute the following:".lightblue
puts "crew remove audacious audacious_plugins".lightblue
puts "rm -rf ~/.config/audacious".lightblue
puts 'To completely remove, execute the following:'.lightblue
puts 'crew remove audacious audacious_plugins'.lightblue
puts 'rm -rf ~/.config/audacious'.lightblue
puts
end
end

View File

@@ -9,17 +9,17 @@ class Audacious_plugins < Package
source_url 'https://distfiles.audacious-media-player.org/audacious-plugins-3.10.1.tar.bz2'
source_sha256 'eec3177631f99729bf0e94223b627406cc648c70e6646e35613c7b55040a2642'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious_plugins/3.10.1_armv7l/audacious_plugins-3.10.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious_plugins/3.10.1_armv7l/audacious_plugins-3.10.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious_plugins/3.10.1_i686/audacious_plugins-3.10.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious_plugins/3.10.1_x86_64/audacious_plugins-3.10.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/audacious_plugins/3.10.1_x86_64/audacious_plugins-3.10.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '200f784576d153da7d23ee308f32587957faf8e9108b197991c841d3cac46f18',
armv7l: '200f784576d153da7d23ee308f32587957faf8e9108b197991c841d3cac46f18',
i686: '271778d167bccc497751f7bbcb34cacbf2ab600f3acafe04b7290e9fdf64c08b',
x86_64: '5a9c46fceaa2c6307fd4791b4bb68133d412a27ba013105345ab64f0964f6e0b',
x86_64: '5a9c46fceaa2c6307fd4791b4bb68133d412a27ba013105345ab64f0964f6e0b'
})
depends_on 'audacious'

View File

@@ -9,23 +9,23 @@ class Augeas < Package
source_url 'http://download.augeas.net/augeas-1.12.0.tar.gz'
source_sha256 '321942c9cc32185e2e9cb72d0a70eea106635b50269075aca6714e3ec282cb87'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/augeas/1.12.0_armv7l/augeas-1.12.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/augeas/1.12.0_armv7l/augeas-1.12.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/augeas/1.12.0_i686/augeas-1.12.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/augeas/1.12.0_x86_64/augeas-1.12.0-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/augeas/1.12.0_x86_64/augeas-1.12.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '8c77e2c9e36dff045129f4e196b72051e7e085c612d43fe0f3f3f8d825c9d3ad',
armv7l: '8c77e2c9e36dff045129f4e196b72051e7e085c612d43fe0f3f3f8d825c9d3ad',
i686: 'ef2cc58fb25c5273ba50adfbbf6c577b2c13b79ecb325da15367965847dfba0d',
x86_64: 'fb85f457590f5b10d786e80b1a177f0942628438de38f64f7ae15856ee753b2c',
x86_64: 'fb85f457590f5b10d786e80b1a177f0942628438de38f64f7ae15856ee753b2c'
})
def self.build
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}"
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}"
system 'make'
end

View File

@@ -9,17 +9,17 @@ class Autoconf < Package
source_url 'https://ftpmirror.gnu.org/autoconf/autoconf-2.71.tar.xz'
source_sha256 'f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf/2.71_armv7l/autoconf-2.71-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf/2.71_armv7l/autoconf-2.71-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf/2.71_i686/autoconf-2.71-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf/2.71_x86_64/autoconf-2.71-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf/2.71_x86_64/autoconf-2.71-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'cf2d3888909044d6dd3109b83d856a7face1d6bded14af644dd09985b5c92272',
armv7l: 'cf2d3888909044d6dd3109b83d856a7face1d6bded14af644dd09985b5c92272',
i686: '281f27740a18dcf251a36ee1b3067624b98da669e62d4cbd41e6631acba4805a',
x86_64: 'bd98d4a7920f4c4e02587d56a11b893436c81d0ce10e6b136532376bf78c8d2d',
x86_64: 'bd98d4a7920f4c4e02587d56a11b893436c81d0ce10e6b136532376bf78c8d2d'
})
depends_on 'perl'
@@ -27,10 +27,10 @@ class Autoconf < Package
def self.build
system "#{CREW_ENV_OPTIONS} ./configure #{CREW_OPTIONS}"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,17 +9,17 @@ class Autoconf_archive < Package
source_url 'https://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-2021.02.19.tar.xz'
source_sha256 'e8a6eb9d28ddcba8ffef3fa211653239e9bf239aba6a01a6b7cfc7ceaec69cbd'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf_archive/2021.02.19_armv7l/autoconf_archive-2021.02.19-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf_archive/2021.02.19_armv7l/autoconf_archive-2021.02.19-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf_archive/2021.02.19_i686/autoconf_archive-2021.02.19-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf_archive/2021.02.19_x86_64/autoconf_archive-2021.02.19-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autoconf_archive/2021.02.19_x86_64/autoconf_archive-2021.02.19-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '306967db6e2a7bb47bf513c1acb3406da095e570e3d9fdcbd997492c25a889d9',
armv7l: '306967db6e2a7bb47bf513c1acb3406da095e570e3d9fdcbd997492c25a889d9',
i686: '93a87a40b2a0ca21fa42214f2ae5d4692881d5097c4a88f08b07959e0ddc67f8',
x86_64: 'd6882d83a90b87e744610ab4d069770fadea35cf82670ef07862c55c35fa3ee5',
x86_64: 'd6882d83a90b87e744610ab4d069770fadea35cf82670ef07862c55c35fa3ee5'
})
def self.build

View File

@@ -9,17 +9,17 @@ class Automake < Package
source_url 'https://ftpmirror.gnu.org/gnu/automake/automake-1.16.5.tar.xz'
source_sha256 'f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/automake/1.16.5_armv7l/automake-1.16.5-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/automake/1.16.5_armv7l/automake-1.16.5-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/automake/1.16.5_i686/automake-1.16.5-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/automake/1.16.5_x86_64/automake-1.16.5-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/automake/1.16.5_x86_64/automake-1.16.5-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'b991366b2b59e1c6bdbce17789552240019d7e4d175661dacf3533a66e584037',
armv7l: 'b991366b2b59e1c6bdbce17789552240019d7e4d175661dacf3533a66e584037',
i686: '08227a2c5b0151e3b854577c292647472b3c961659b66a5ba7652c2cdffd8be2',
x86_64: '110762775901383e1f8eee7cd7cd621afdf0c1a417a903ca01f27db6274d01ff',
x86_64: '110762775901383e1f8eee7cd7cd621afdf0c1a417a903ca01f27db6274d01ff'
})
depends_on 'autoconf'

View File

@@ -9,9 +9,9 @@ class Autosetup < Package
source_url 'https://github.com/msteveb/autosetup/archive/v0.7.0.tar.gz'
source_sha256 '473123b3921acc7b623d2d4a6175a058bf685c0ae3676850fb867026d67244cb'
binary_url ({
binary_url({
})
binary_sha256 ({
binary_sha256({
})
depends_on 'tcl'

View File

@@ -9,17 +9,17 @@ class Autossh < Package
source_url 'https://www.harding.motd.ca/autossh/autossh-1.4g.tgz'
source_sha256 '5fc3cee3361ca1615af862364c480593171d0c54ec156de79fc421e31ae21277'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autossh/1.4g_armv7l/autossh-1.4g-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autossh/1.4g_armv7l/autossh-1.4g-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autossh/1.4g_i686/autossh-1.4g-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autossh/1.4g_x86_64/autossh-1.4g-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/autossh/1.4g_x86_64/autossh-1.4g-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '6cb94ea21f975411bd5dd4b00bf237f0018f2c6cad16a0cb0676a61a026626e3',
armv7l: '6cb94ea21f975411bd5dd4b00bf237f0018f2c6cad16a0cb0676a61a026626e3',
i686: '964229e816b5b085b87b4e0823e7dd625704cd5f2a977c1cdf7ad2c40039cf50',
x86_64: '776bf56c0dc88d5628026a20c25f346fc63f07334bbd16995feb628f055624fc',
x86_64: '776bf56c0dc88d5628026a20c25f346fc63f07334bbd16995feb628f055624fc'
})
depends_on 'openssh'
@@ -27,7 +27,7 @@ class Autossh < Package
def self.build
system "./configure #{CREW_OPTIONS} \
--with-ssh=$(which ssh)"
system "make"
system 'make'
end
def self.install

View File

@@ -9,17 +9,17 @@ class Aview < Package
source_url 'https://downloads.sourceforge.net/project/aa-project/aview/1.3.0rc1/aview-1.3.0rc1.tar.gz'
source_sha256 '42d61c4194e8b9b69a881fdde698c83cb27d7eda59e08b300e73aaa34474ec99'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aview/1.3.0rc1_armv7l/aview-1.3.0rc1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aview/1.3.0rc1_armv7l/aview-1.3.0rc1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aview/1.3.0rc1_i686/aview-1.3.0rc1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aview/1.3.0rc1_x86_64/aview-1.3.0rc1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aview/1.3.0rc1_x86_64/aview-1.3.0rc1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'b7dac7b7bb1df20b2f3c5f4b3072d7c687d00187a7f65e25e7d754b658215bcd',
armv7l: 'b7dac7b7bb1df20b2f3c5f4b3072d7c687d00187a7f65e25e7d754b658215bcd',
i686: '4646662cc91ca8049a577bb0a0ceb2545645250c6bc05a124fd2c8c2eb536c05',
x86_64: '70d29a20c0ade541d6f0aba440412d844a4815f8c0317a00d7c13005e1232395',
x86_64: '70d29a20c0ade541d6f0aba440412d844a4815f8c0317a00d7c13005e1232395'
})
depends_on 'aalib'
@@ -29,10 +29,10 @@ class Aview < Package
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--without-x'
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -10,5 +10,4 @@ class Avocado < Package
is_fake
depends_on 'avocado_framework'
end

View File

@@ -12,13 +12,13 @@ class Aws < Package
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_armv7l/aws-1.19.53-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_armv7l/aws-1.19.53-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_i686/aws-1.19.53-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_x86_64/aws-1.19.53-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws/1.19.53_x86_64/aws-1.19.53-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'b5c350d0e754a9d710c8fe5caff4c9b4c6f2a5327930984a71c490c4e8c29e32',
armv7l: 'b5c350d0e754a9d710c8fe5caff4c9b4c6f2a5327930984a71c490c4e8c29e32',
i686: '29bf3490a8df4b2e69e59c3896f34e94a062cc87be66228beedee1746ddcdcfd',
x86_64: 'c77ef8bb2f994afa6f5eceac354ee3d18a4365bf31f26e6db0b27c8c410e66bf',
x86_64: 'c77ef8bb2f994afa6f5eceac354ee3d18a4365bf31f26e6db0b27c8c410e66bf'
})
depends_on 'groff'
@@ -33,12 +33,12 @@ class Aws < Package
# Amazon Web Services CLI bash completion
source #{CREW_PREFIX}/bin/aws_bash_completer
AWSBASHRCEOF
IO.write("#{CREW_DEST_PREFIX}/etc/bash.d/aws", @awsbashrc)
File.write("#{CREW_DEST_PREFIX}/etc/bash.d/aws", @awsbashrc)
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/zsh.d"
@awszshrc = <<~AWSZSHRCEOF
# Amazon Web Services CLI zsh completion
source #{CREW_PREFIX}/bin/aws_zsh_completer.sh
AWSZSHRCEOF
IO.write("#{CREW_DEST_PREFIX}/etc/zsh.d/aws", @awszshrc)
File.write("#{CREW_DEST_PREFIX}/etc/zsh.d/aws", @awszshrc)
end
end

View File

@@ -3,8 +3,8 @@ require 'package'
class Aws2 < Package
description 'This package makes it easy to start, stop and save AWS spot instances; and to manage EC2 resources.'
homepage 'https://github.com/simonm3/aws2'
@_ver='0.2.7'
version @_ver + '-1'
@_ver = '0.2.7'
version "#{@_ver}-1"
license 'GPL-3'
compatibility 'all'
source_url 'SKIP'

View File

@@ -9,17 +9,17 @@ class Aws_shell < Package
source_url 'https://github.com/awslabs/aws-shell/archive/0.2.1.tar.gz'
source_sha256 '84262f0ccba6757a318ce415d8a77026b43db958cfac9ef615e75c3515d78f78'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws_shell/0.2.1_armv7l/aws_shell-0.2.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws_shell/0.2.1_armv7l/aws_shell-0.2.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws_shell/0.2.1_i686/aws_shell-0.2.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws_shell/0.2.1_x86_64/aws_shell-0.2.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/aws_shell/0.2.1_x86_64/aws_shell-0.2.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '7b973100dd69dc756fd4578fd8776670279f8dcbe086e9c3874997aa0f2425bb',
armv7l: '7b973100dd69dc756fd4578fd8776670279f8dcbe086e9c3874997aa0f2425bb',
i686: '69f956d76dd2c0acc500f2253310bb719c4b08573f72922d98fd9c0ebf1239e4',
x86_64: '41ad9b4fbe0104c4e7d48fb7b5c2469f89562f46c1184b985114da37bf0ed479',
x86_64: '41ad9b4fbe0104c4e7d48fb7b5c2469f89562f46c1184b985114da37bf0ed479'
})
depends_on 'py3_setuptools' => :build

View File

@@ -9,17 +9,17 @@ class Axel < Package
source_url 'https://github.com/axel-download-accelerator/axel/releases/download/v2.17.6/axel-2.17.6.tar.xz'
source_sha256 '24ab549021bdfca01ad5e8e95b706869dd30fe9ab1043da4cbb9dff89edc267d'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/axel/2.17.6_armv7l/axel-2.17.6-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/axel/2.17.6_armv7l/axel-2.17.6-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/axel/2.17.6_i686/axel-2.17.6-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/axel/2.17.6_x86_64/axel-2.17.6-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/axel/2.17.6_x86_64/axel-2.17.6-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '31800a542f21b117b5bb78b8c7c62fdc38d2afac61d306ddac01d71569909f4a',
armv7l: '31800a542f21b117b5bb78b8c7c62fdc38d2afac61d306ddac01d71569909f4a',
i686: '804815af38ee5ba38ac407831e8e3e40adcc0cdca91fe770c76a47f02fd3cdc8',
x86_64: '731b9413dee20493cfdeee3d8ed8b9379981aec08522677fdea16503e4ee90f0',
x86_64: '731b9413dee20493cfdeee3d8ed8b9379981aec08522677fdea16503e4ee90f0'
})
def self.build

View File

@@ -10,11 +10,11 @@ class Azure_cli < Package
source_sha256 'bbe4a1f85418d239444717f2c9706a87f81fd2515bb0bb4b4e48548fd3e08caa'
binary_url({
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/azure_cli/2.21.0_i686/azure_cli-2.21.0-chromeos-i686.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/azure_cli/2.21.0_i686/azure_cli-2.21.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/azure_cli/2.21.0_x86_64/azure_cli-2.21.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
i686: '222e74caa74df6ab129f33f90aea86e65d000ebc4f5d78cb7f3ec2f98421ed3c',
i686: '222e74caa74df6ab129f33f90aea86e65d000ebc4f5d78cb7f3ec2f98421ed3c',
x86_64: '073b64f7104e298205afe623588c95f2e0cb17e664e53ff46042c9bd4076d2c8'
})
@@ -27,6 +27,6 @@ class Azure_cli < Package
# Microsoft Azure CLI bash completion
source #{CREW_PREFIX}/share/azure-cli/az.completion
AZUREEOF
IO.write("#{CREW_DEST_PREFIX}/etc/bash.d/az", @azureenv)
File.write("#{CREW_DEST_PREFIX}/etc/bash.d/az", @azureenv)
end
end

View File

@@ -9,17 +9,17 @@ class B2 < Package
source_url 'https://github.com/boostorg/build/archive/refs/tags/4.4.1.tar.gz'
source_sha256 '31a243b1eb26638500977a8386e56d44f86c18db70cf0a5dcdd2d7391afc1a61'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/b2/4.4.1_armv7l/b2-4.4.1-chromeos-armv7l.tpxz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/b2/4.4.1_armv7l/b2-4.4.1-chromeos-armv7l.tpxz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/b2/4.4.1_i686/b2-4.4.1-chromeos-i686.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/b2/4.4.1_x86_64/b2-4.4.1-chromeos-x86_64.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/b2/4.4.1_x86_64/b2-4.4.1-chromeos-x86_64.tpxz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'e569052575f2ea9cca33f7fc6b1bfd95a8fb3a6366da44142f51c99a71b377ed',
armv7l: 'e569052575f2ea9cca33f7fc6b1bfd95a8fb3a6366da44142f51c99a71b377ed',
i686: '108b05f8acd6c4f5b0b9748fe274a7d439dfd2bf52ea1a37bee8eca936a542c5',
x86_64: '545ab9a0d26e0abe5296a7913ea7d0ded9caea6592f1cf7cd623d290e7f96343',
x86_64: '545ab9a0d26e0abe5296a7913ea7d0ded9caea6592f1cf7cd623d290e7f96343'
})
def self.build

View File

@@ -9,26 +9,26 @@ class Bacon < Package
source_url 'https://basic-converter.org/stable/bacon-3.9.3.tar.gz'
source_sha256 '7f907f4ede68704eefd076733f617438c4baba98e9a1e8676ea1a00c4f8476ae'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacon/3.9.3_armv7l/bacon-3.9.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacon/3.9.3_armv7l/bacon-3.9.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacon/3.9.3_i686/bacon-3.9.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacon/3.9.3_x86_64/bacon-3.9.3-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacon/3.9.3_x86_64/bacon-3.9.3-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'e3688910dbee42cea250706e85b73dc6970aceabb25b855f0d7729ee07421f66',
armv7l: 'e3688910dbee42cea250706e85b73dc6970aceabb25b855f0d7729ee07421f66',
i686: 'ed8ac51c3a7f75e27cca79c1fe050f65aa6a188a2b58898961df43a7855d60db',
x86_64: '4a5ac4797556651820de1081d7be92726d1c01be68f4945f4bc2e78790a1f599',
x86_64: '4a5ac4797556651820de1081d7be92726d1c01be68f4945f4bc2e78790a1f599'
})
def self.build
system 'sed -i "s,/usr/share,\$\(DATADIR\)," Makefile.in'
system './configure',
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--disable-gui-fltk',
'--disable-gui-gtk'
"--prefix=#{CREW_PREFIX}",
"--libdir=#{CREW_LIB_PREFIX}",
'--disable-gui-fltk',
'--disable-gui-gtk'
system 'make', '-j1' # parallel builds don't work with bacon
end

View File

@@ -9,17 +9,17 @@ class Bacula < Package
source_url 'https://www.bacula.org/download/7471/bacula-9.4.2.tar.gz'
source_sha256 'a40d04d2c48135972cecb6578405e835c4b9d798c0950017de0fad40ca94e8a0'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacula/9.4.2_armv7l/bacula-9.4.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacula/9.4.2_armv7l/bacula-9.4.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacula/9.4.2_i686/bacula-9.4.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacula/9.4.2_x86_64/bacula-9.4.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bacula/9.4.2_x86_64/bacula-9.4.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '1a0a0c032e40a648e9e9492aa428e9c674b1baa7ee76f5254f070f385be31263',
armv7l: '1a0a0c032e40a648e9e9492aa428e9c674b1baa7ee76f5254f070f385be31263',
i686: 'adf9481e8804d07ae4dfa80dab24bd6646feda2465dbf773fd21fa30a75d46bb',
x86_64: '1fccff1952a812660fa134102e8afe8b3faae7d61aa12f587dca9d00d14a4b53',
x86_64: '1fccff1952a812660fa134102e8afe8b3faae7d61aa12f587dca9d00d14a4b53'
})
depends_on 'lzo'
@@ -55,6 +55,6 @@ class Bacula < Package
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -8,12 +8,12 @@ class Balena_etcher < Package
license 'Apache-2.0'
compatibility 'x86_64, i686'
source_url ({
source_url({
x86_64: "https://github.com/balena-io/etcher/releases/download/v#{@_ver}/balenaEtcher-#{@_ver}-x64.AppImage",
i686: "https://github.com/balena-io/etcher/releases/download/v#{@_ver}/balenaEtcher-#{@_ver}-ia32.AppImage"
})
source_sha256 ({
source_sha256({
x86_64: 'b2432729ad79e6aa1d6292465db065b078b627c5ec6ddedea8580434088cb74f',
i686: 'c9a2c976f0edff0521c71b9e4e948dc6f133749cd7e60ffc3796a6743d17e841'
})
@@ -40,13 +40,13 @@ class Balena_etcher < Package
cd #{CREW_PREFIX}/share/balena-etcher
sudo -E LD_LIBRARY_PATH=#{CREW_LIB_PREFIX} ./AppRun "$@"
EOF
IO.write('etcher.sh', etcher)
File.write('etcher.sh', etcher)
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/balena-etcher"
FileUtils.install 'etcher.sh', "#{CREW_DEST_PREFIX}/bin/etcher", mode: 0755
FileUtils.install 'etcher.sh', "#{CREW_DEST_PREFIX}/bin/etcher", mode: 0o755
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/balena-etcher"
end

View File

@@ -9,17 +9,17 @@ class Banner < Package
source_url 'http://shh.thathost.com/pub-unix/files/banner-1.3.2.tar.gz'
source_sha256 '0dc0ac0667b2e884a7f5ad3e467af68cd0fd5917f8c9aa19188e6452aa1fc6d5'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/banner/1.3.2_armv7l/banner-1.3.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/banner/1.3.2_armv7l/banner-1.3.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/banner/1.3.2_i686/banner-1.3.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/banner/1.3.2_x86_64/banner-1.3.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/banner/1.3.2_x86_64/banner-1.3.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'f92922550b0c8f695e68f66373ce70a874d2cfde353cf1718ef78e5ecbb364ef',
armv7l: 'f92922550b0c8f695e68f66373ce70a874d2cfde353cf1718ef78e5ecbb364ef',
i686: '6e3e4d1f74402045c7d1dc2e8ef5696ce67d06155fbd156bb548ba9f7eaf4bdf',
x86_64: 'a7491d42ecb79b479b9bc49ff45860e5bcf50c2b763e6524c711ec90d5829c31',
x86_64: 'a7491d42ecb79b479b9bc49ff45860e5bcf50c2b763e6524c711ec90d5829c31'
})
depends_on 'shhmsg'

View File

@@ -66,6 +66,6 @@ class Bash < Package
exec #{CREW_PREFIX}/bin/bash
fi
BASHEOF
IO.write("#{CREW_DEST_PREFIX}/etc/bash.d/bash", @bashenv)
File.write("#{CREW_DEST_PREFIX}/etc/bash.d/bash", @bashenv)
end
end

View File

@@ -36,6 +36,6 @@ class Bash_completion < Package
# Bash completion configuration
source #{CREW_PREFIX}/share/bash-completion/bash_completion
BASHCOMPLETIONEOF
IO.write("#{CREW_DEST_PREFIX}/etc/bash.d/bash_completion", @bashcompletionenv)
File.write("#{CREW_DEST_PREFIX}/etc/bash.d/bash_completion", @bashcompletionenv)
end
end

View File

@@ -9,17 +9,17 @@ class Bats < Package
source_url 'https://github.com/sstephenson/bats/archive/v0.4.0.tar.gz'
source_sha256 '480d8d64f1681eee78d1002527f3f06e1ac01e173b761bc73d0cf33f4dc1d8d7'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bats/0.4.0_armv7l/bats-0.4.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bats/0.4.0_armv7l/bats-0.4.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bats/0.4.0_i686/bats-0.4.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bats/0.4.0_x86_64/bats-0.4.0-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bats/0.4.0_x86_64/bats-0.4.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'd551d8924ac131c93d5f7ae97b67536e3d898f6737d9accd71b979805162fa75',
armv7l: 'd551d8924ac131c93d5f7ae97b67536e3d898f6737d9accd71b979805162fa75',
i686: 'eabf41741fc22656b88807325d0345d7001b993aec01e38ffa263181c6b29efa',
x86_64: '8170fb0e171d68a1277c96f400845a42abfedd2d7b8edf761cd99b4088e7e56b',
x86_64: '8170fb0e171d68a1277c96f400845a42abfedd2d7b8edf761cd99b4088e7e56b'
})
def self.install

View File

@@ -9,17 +9,17 @@ class Bc < Package
source_url 'https://ftp.gnu.org/gnu/bc/bc-1.07.1.tar.gz'
source_sha256 '62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bc/1.07.1_armv7l/bc-1.07.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bc/1.07.1_armv7l/bc-1.07.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bc/1.07.1_i686/bc-1.07.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bc/1.07.1_x86_64/bc-1.07.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bc/1.07.1_x86_64/bc-1.07.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '23cb493a118d4ff377dc78b4e5ea2b0c35b06e1f54b3b14c0280e6f672ee2706',
armv7l: '23cb493a118d4ff377dc78b4e5ea2b0c35b06e1f54b3b14c0280e6f672ee2706',
i686: 'f5786594f7ff0a60cc30af18dffd2bff4a92218c2957ab30bdf9fb39afd97616',
x86_64: 'd50ced1d0e56bb389e57bf431bbc8a18632d42dfd483b6416de9310cc782b125',
x86_64: 'd50ced1d0e56bb389e57bf431bbc8a18632d42dfd483b6416de9310cc782b125'
})
depends_on 'readline'
@@ -28,11 +28,11 @@ class Bc < Package
depends_on 'texinfo' => :build
def self.build
system "./configure", "--with-readline"
system "make"
system './configure', '--with-readline'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,24 +9,24 @@ class Bcif < Package
source_url 'http://www.researchandtechnology.net/bcif/downloads/bcif_sources_1_0_beta.zip'
source_sha256 'fe1dde329fa60160d9ac8a0b9e4b9360a9377bc26177eab1a31e07479839d812'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bcif/1.0-beta_armv7l/bcif-1.0-beta-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bcif/1.0-beta_armv7l/bcif-1.0-beta-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bcif/1.0-beta_i686/bcif-1.0-beta-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bcif/1.0-beta_x86_64/bcif-1.0-beta-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bcif/1.0-beta_x86_64/bcif-1.0-beta-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'b22852369924b599c2c372dc4e1e699cca535284ac1f52747bc6cc0ecefa5bf3',
armv7l: 'b22852369924b599c2c372dc4e1e699cca535284ac1f52747bc6cc0ecefa5bf3',
i686: '60e2fe10178bfda42bb081baa271b102d198dd2dad40f6fd8ceff95528f59b8a',
x86_64: '48f1371c1ef59c68b0abc5eaf9312f396b9f5887daf4332ac423c46d516f8cc0',
x86_64: '48f1371c1ef59c68b0abc5eaf9312f396b9f5887daf4332ac423c46d516f8cc0'
})
depends_on 'unzip'
def self.build
FileUtils.cd('Cpp') do
system "bash make.sh"
system 'bash make.sh'
end
end

View File

@@ -9,26 +9,27 @@ class Bdftopcf < Package
source_url 'https://www.x.org/releases/individual/app/bdftopcf-1.1.tar.bz2'
source_sha256 '4b4df05fc53f1e98993638d6f7e178d95b31745c4568cee407e167491fd311a2'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdftopcf/1.1_armv7l/bdftopcf-1.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdftopcf/1.1_armv7l/bdftopcf-1.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdftopcf/1.1_i686/bdftopcf-1.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdftopcf/1.1_x86_64/bdftopcf-1.1-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdftopcf/1.1_x86_64/bdftopcf-1.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'cb194dc01e182cdb430c3672d2ac0c7dc83f6091cf2b29e7765ad5b75511074a',
armv7l: 'cb194dc01e182cdb430c3672d2ac0c7dc83f6091cf2b29e7765ad5b75511074a',
i686: '25b92f357e56380778d12cc2dcf25585ad99f01c8bedd1fc7b2d81ef089e70ee',
x86_64: 'b01c0ae817a810ddc1523a2b9fe97c0efcc45b6301aa84c1cf3618020cbdb80b',
x86_64: 'b01c0ae817a810ddc1523a2b9fe97c0efcc45b6301aa84c1cf3618020cbdb80b'
})
depends_on 'libxfont'
def self.build
system "./configure #{CREW_OPTIONS} "
system "make -j#{CREW_NPROC}"
system "./configure #{CREW_OPTIONS} "
system "make -j#{CREW_NPROC}"
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
system "make install DESTDIR=#{CREW_DEST_DIR}"
end
end

View File

@@ -9,17 +9,17 @@ class Bdwgc < Package
source_url 'https://github.com/ivmai/bdwgc/releases/download/v8.0.4/gc-8.0.4.tar.gz'
source_sha256 '436a0ddc67b1ac0b0405b61a9675bca9e075c8156f4debd1d06f3a56c7cd289d'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdwgc/8.0.4_armv7l/bdwgc-8.0.4-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdwgc/8.0.4_armv7l/bdwgc-8.0.4-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdwgc/8.0.4_i686/bdwgc-8.0.4-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdwgc/8.0.4_x86_64/bdwgc-8.0.4-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bdwgc/8.0.4_x86_64/bdwgc-8.0.4-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '876731fcfc8923fb084dceaed37bb98c6a74db13b526b38a3b3b6fa8dd5393c9',
armv7l: '876731fcfc8923fb084dceaed37bb98c6a74db13b526b38a3b3b6fa8dd5393c9',
i686: 'be933d4e732ba200b3c3c0bea9c163552cabe118d157d02b713e21dbc896eac2',
x86_64: '3195a44840152f6e67ca5f8f27118186af4422d7ab145e0276aa0af4dfd84378',
x86_64: '3195a44840152f6e67ca5f8f27118186af4422d7ab145e0276aa0af4dfd84378'
})
depends_on 'libatomic_ops'

View File

@@ -24,9 +24,7 @@ class Beav < Package
def self.patch
system 'curl -#L https://httpredir.debian.org/debian/pool/main/b/beav/beav_1.40-18.diff.gz | gunzip >> beav_1.40-18.diff'
unless Digest::SHA256.hexdigest(File.read('beav_1.40-18.diff')) == '5139aa0bdc9424b7ad8197070e1902d8225ee78e2091d02a493422cd91fe5973'
abort 'Checksum mismatch. :/ Try again.'.lightred
end
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest(File.read('beav_1.40-18.diff')) == '5139aa0bdc9424b7ad8197070e1902d8225ee78e2091d02a493422cd91fe5973'
system 'patch -Np1 -i beav_1.40-18.diff'
system "sed -i 's:-lncurses:-ltinfow:g' Makefile"
system "sed -i '12d' basic.c"

View File

@@ -9,17 +9,17 @@ class Benchmark < Package
source_url 'https://github.com/google/benchmark/archive/v1.5.2.tar.gz'
source_sha256 'dccbdab796baa1043f04982147e67bb6e118fe610da2c65f88912d73987e700c'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/benchmark/1.5.2_armv7l/benchmark-1.5.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/benchmark/1.5.2_armv7l/benchmark-1.5.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/benchmark/1.5.2_i686/benchmark-1.5.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/benchmark/1.5.2_x86_64/benchmark-1.5.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/benchmark/1.5.2_x86_64/benchmark-1.5.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '9aa663f4068a79d821bc556f6dc60b0e6ee2278505cd747e94a0fd7750258711',
armv7l: '9aa663f4068a79d821bc556f6dc60b0e6ee2278505cd747e94a0fd7750258711',
i686: 'e8f37ed6c926979e2c13949f3cf8eaeb9e7e9eedbc751d550ead9680e0a87a5c',
x86_64: '71f73a3dc296d91b2a5ed685396cbad25ad69e0d231cbed59a5d44391e98aa31',
x86_64: '71f73a3dc296d91b2a5ed685396cbad25ad69e0d231cbed59a5d44391e98aa31'
})
def self.patch
@@ -35,24 +35,24 @@ class Benchmark < Package
#include "check.h"
EOF
IO.write("limitsh.patch", @limitsh)
File.write('limitsh.patch', @limitsh)
system 'patch -p 1 -i limitsh.patch'
end
def self.prebuild
system "git clone git://github.com/google/googletest.git -b release-1.10.0 --depth 1" # Required for build, won't interfere with the gtest package
system 'git clone git://github.com/google/googletest.git -b release-1.10.0 --depth 1' # Required for build, won't interfere with the gtest package
end
def self.build
Dir.mkdir "builddir"
Dir.chdir "builddir" do
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "cmake -G 'Ninja' #{CREW_CMAKE_OPTIONS} \
-DBENCHMARK_USE_LIBCXX=OFF \
-DBENCHMARK_ENABLE_ASSEMBLY_TESTS=OFF \
-DBENCHMARK_ENABLE_GTEST_TESTS=ON \
-DBENCHMARK_ENABLE_TESTING=ON \
-DINSTALL_GTEST=OFF .."
system "ninja"
system 'ninja'
end
end
@@ -61,6 +61,6 @@ class Benchmark < Package
end
def self.check
system "ninja -C builddir test"
system 'ninja -C builddir test'
end
end

View File

@@ -9,17 +9,17 @@ class Berry < Package
source_url 'https://github.com/JLErvin/berry/archive/0.1.5.tar.gz'
source_sha256 '3d2fa52aeba6ed05d3cc0e8308604c5a83e94a8623f3e66ed53fd5e0fdabfabf'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/berry/0.1.5_armv7l/berry-0.1.5-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/berry/0.1.5_armv7l/berry-0.1.5-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/berry/0.1.5_i686/berry-0.1.5-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/berry/0.1.5_x86_64/berry-0.1.5-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/berry/0.1.5_x86_64/berry-0.1.5-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'cec62b31daf5040990846378b214c0856b590a9cf84873cb5f44c67a90382bc1',
armv7l: 'cec62b31daf5040990846378b214c0856b590a9cf84873cb5f44c67a90382bc1',
i686: 'ed7257e3a11a68f3e21b2546d55bed20364df8d08522a008b002452e784b5f9d',
x86_64: '68c0aef9dc4654a7abb36c1bbe3a0a9d213840f8f847a21ea40658f7fc56a28e',
x86_64: '68c0aef9dc4654a7abb36c1bbe3a0a9d213840f8f847a21ea40658f7fc56a28e'
})
depends_on 'libx11'
@@ -27,8 +27,8 @@ class Berry < Package
depends_on 'sommelier'
def self.patch
#system "touch ./cross.patch"
puts "Making Patch file".lightred
# system "touch ./cross.patch"
puts 'Making Patch file'.lightred
system "cat << 'EOF' > cross.patch
diff config.mk.orig config.mk -u
--- config.mk.orig 2020-08-17 19:22:12.659998356 -0400
@@ -70,17 +70,20 @@ diff config.mk.orig config.mk -u
+#CC = cc
EOF"
puts "Patching...".red
system "cat ./cross.patch"
system "patch -Np0 < cross.patch"
puts "Patched!".lightblue
puts 'Patching...'.red
system 'cat ./cross.patch'
system 'patch -Np0 < cross.patch'
puts 'Patched!'.lightblue
end
def self.build
system "make"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install PREFIX=#{CREW_PREFIX}"
end
def self.postinstall
puts 'A hoykey system such as sxhkd is needed in order to use berry as a WM'.lightblue
end

View File

@@ -9,17 +9,17 @@ class Biew < Package
source_url 'https://downloads.sourceforge.net/project/beye/biew/6.1.0/biew-610-src.tar.bz2'
source_sha256 '2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/biew/6.1.0_armv7l/biew-6.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/biew/6.1.0_armv7l/biew-6.1.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/biew/6.1.0_i686/biew-6.1.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/biew/6.1.0_x86_64/biew-6.1.0-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/biew/6.1.0_x86_64/biew-6.1.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: 'f5e456e2d4f9336f151a485e37bcbf1287e33b106cb69ec2e775eaa04e20a006',
armv7l: 'f5e456e2d4f9336f151a485e37bcbf1287e33b106cb69ec2e775eaa04e20a006',
i686: '06540fc0a2ec15ae08b8f8cca69e8915ec3e9bdd92dbeecef974a85762d97029',
x86_64: '140bc619e0495b7bbec4b3ca934ddb0e12cb46b793b27197dd677b73d4819ddd',
x86_64: '140bc619e0495b7bbec4b3ca934ddb0e12cb46b793b27197dd677b73d4819ddd'
})
depends_on 'apriconv'
@@ -27,12 +27,12 @@ class Biew < Package
depends_on 'slang'
def self.build
system "cp -r ./biewlib/sysdep/generic ./biewlib/sysdep/arm" # add arm support
system 'cp -r ./biewlib/sysdep/generic ./biewlib/sysdep/arm' # add arm support
system "./configure --prefix=#{CREW_PREFIX}"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end

View File

@@ -9,17 +9,17 @@ class Binclock < Package
source_url 'https://github.com/JohnAnthony/Binary-Clock/archive/3883e8876576a45162b9a128d8317b20f98c5140.tar.gz'
source_sha256 'e8caa26437301c70bf9840901db9e46d32b99c0ec8b442562f96390e28f35408'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/binclock/3883e8_armv7l/binclock-3883e8-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/binclock/3883e8_armv7l/binclock-3883e8-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/binclock/3883e8_i686/binclock-3883e8-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/binclock/3883e8_x86_64/binclock-3883e8-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/binclock/3883e8_x86_64/binclock-3883e8-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '265d4488274d213d0663f7aebb3da8c81b046edd8c6cef4101a70dcce6a39b18',
armv7l: '265d4488274d213d0663f7aebb3da8c81b046edd8c6cef4101a70dcce6a39b18',
i686: 'bb32dd6577ab50e82170e6b63843ef0c46290d6fd04b67482f3f604cff59ae02',
x86_64: 'aae91be20e29e463d85d419c19ba534a0533f3b5b035a93a3060c18bf22f7c3f',
x86_64: 'aae91be20e29e463d85d419c19ba534a0533f3b5b035a93a3060c18bf22f7c3f'
})
depends_on 'ncurses'
@@ -28,7 +28,7 @@ class Binclock < Package
system "sed -i 's,#include <ncurses.h>,#include <#{CREW_PREFIX}/include/ncurses/ncurses.h>,' binclock.c"
system "sed -i 's,/usr/bin,#{CREW_PREFIX}/bin,g' Makefile"
system "sed -i 's,/usr/share,#{CREW_PREFIX}/share,g' Makefile"
system "make"
system 'make'
end
def self.install

View File

@@ -9,17 +9,17 @@ class Bitmap < Package
source_url 'https://x.org/archive/individual/app/bitmap-1.0.9.tar.bz2'
source_sha256 'e0f3afad5272d796f54c33fa1b5bd1fb3f62843a54b28c87196d06a35123e5f5'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitmap/1.0.9_armv7l/bitmap-1.0.9-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitmap/1.0.9_armv7l/bitmap-1.0.9-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitmap/1.0.9_i686/bitmap-1.0.9-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitmap/1.0.9_x86_64/bitmap-1.0.9-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitmap/1.0.9_x86_64/bitmap-1.0.9-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '45218cfba754b357f8e0dac9f73b70200a8e10835317e69d20da17ec5d9ca8d0',
armv7l: '45218cfba754b357f8e0dac9f73b70200a8e10835317e69d20da17ec5d9ca8d0',
i686: '4d534650ef7d4fa093fba30398684611328586f059bb2f6ae422c09205a087ac',
x86_64: 'b83e9bd27893924cbde524bf8fb0da3d7055b7ca94b60f51d6f1af2b0002f59c',
x86_64: 'b83e9bd27893924cbde524bf8fb0da3d7055b7ca94b60f51d6f1af2b0002f59c'
})
def self.build

View File

@@ -9,17 +9,17 @@ class Bitpocket < Package
source_url 'https://github.com/sickill/bitpocket/archive/v0.2.tar.gz'
source_sha256 'f3952374a1139465700f9122d7a929227be5cdeb681679cbe00bb93658adbd1f'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitpocket/0.2_armv7l/bitpocket-0.2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitpocket/0.2_armv7l/bitpocket-0.2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitpocket/0.2_i686/bitpocket-0.2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitpocket/0.2_x86_64/bitpocket-0.2-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bitpocket/0.2_x86_64/bitpocket-0.2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '7b94a65b172e2c93a8a35bd6c6642d61023b0c91ab9f2ba9a8db7f7dca9c150e',
armv7l: '7b94a65b172e2c93a8a35bd6c6642d61023b0c91ab9f2ba9a8db7f7dca9c150e',
i686: '42fcb4adb063c62d0a5907739b420e9a75457d51df44b64aa6b1600d2e81b3bf',
x86_64: '65b995eb9ea17bbce09c47d786cb1c38afac27952f2795fbcc4208b971e9de4a',
x86_64: '65b995eb9ea17bbce09c47d786cb1c38afac27952f2795fbcc4208b971e9de4a'
})
def self.install

View File

@@ -9,17 +9,17 @@ class Bluefish < Package
source_url 'https://www.bennewitz.com/bluefish/stable/source/bluefish-2.2.12.tar.gz'
source_sha256 '948fc2921f0a67a7ce811220093a3b3dfc8021a6e3005f549373cd3402ee0f26'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_armv7l/bluefish-2.2.12-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_armv7l/bluefish-2.2.12-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_i686/bluefish-2.2.12-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_x86_64/bluefish-2.2.12-chromeos-x86_64.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/bluefish/2.2.12_x86_64/bluefish-2.2.12-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
binary_sha256({
aarch64: '6e769339832399c45018d072a2c906c00025b16c1b4a3acd8c5ea58dafa86b3c',
armv7l: '6e769339832399c45018d072a2c906c00025b16c1b4a3acd8c5ea58dafa86b3c',
i686: '7f706a40177c68674b55fe19f25dbe91100fb08525b0fbe69767137e7db247ff',
x86_64: '5ecc4aae82c14977ac46419fedbe4f298ca9e4e979d9ccca3c641dd6b298721c',
x86_64: '5ecc4aae82c14977ac46419fedbe4f298ca9e4e979d9ccca3c641dd6b298721c'
})
depends_on 'enchant'
@@ -36,16 +36,16 @@ class Bluefish < Package
def self.build
system "./configure #{CREW_OPTIONS}"
system "make"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.postinstall
puts
puts "To complete the installation, execute the following:".lightblue
puts 'To complete the installation, execute the following:'.lightblue
puts "update-mime-database #{CREW_PREFIX}/share/mime".lightblue
puts "echo 'alias bluefish=\"WAYLAND_DISPLAY=wayland-0 DISPLAY=\'\' GDK_BACKEND=wayland bluefish\"' >> ~/.bashrc".lightblue
puts

View File

@@ -6,17 +6,17 @@ class Bmon < Package
version '4.0-1'
license 'BSD-2 and MIT'
compatibility 'all'
source_url "https://github.com/tgraf/bmon/releases/download/v4.0/bmon-4.0.tar.gz"
source_url 'https://github.com/tgraf/bmon/releases/download/v4.0/bmon-4.0.tar.gz'
source_sha256 '02fdc312b8ceeb5786b28bf905f54328f414040ff42f45c83007f24b76cc9f7a'
depends_on 'libnl3'
def self.build
system "autoreconf -fiv"
system 'autoreconf -fiv'
system "./configure #{CREW_OPTIONS} \
--without-ncurses \
--with-ncursesw"
system "make"
system 'make'
end
def self.install

View File

@@ -7,20 +7,20 @@ class Boost < Package
version @_ver
license 'Boost-1.0'
compatibility 'all'
source_url "https://boostorg.jfrog.io/artifactory/main/release/#{@_ver}/source/boost_#{@_ver.gsub('.','_')}.tar.bz2"
source_url "https://boostorg.jfrog.io/artifactory/main/release/#{@_ver}/source/boost_#{@_ver.gsub('.', '_')}.tar.bz2"
source_sha256 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41'
binary_url ({
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/boost/1.76.0_armv7l/boost-1.76.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/boost/1.76.0_armv7l/boost-1.76.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/boost/1.76.0_i686/boost-1.76.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/boost/1.76.0_x86_64/boost-1.76.0-chromeos-x86_64.tpxz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/boost/1.76.0_x86_64/boost-1.76.0-chromeos-x86_64.tpxz'
})
binary_sha256 ({
binary_sha256({
aarch64: '3faf1c0322845086c77e4ef173beee27ec5fa6c780727c3e6eef85584ee8bc40',
armv7l: '3faf1c0322845086c77e4ef173beee27ec5fa6c780727c3e6eef85584ee8bc40',
i686: 'f5f924e7ccaead8a1db56fff2963233d36e5466dc34fcbf7d9527ee00c117aeb',
x86_64: 'b64b49911d39f51b9460e3ae4ba76f6239b5b2aec473a8376780330ea68b2277',
x86_64: 'b64b49911d39f51b9460e3ae4ba76f6239b5b2aec473a8376780330ea68b2277'
})
def self.build

View File

@@ -9,13 +9,13 @@ class Brackets < Package
source_url 'https://github.com/adobe/brackets/archive/release-1.14.1.tar.gz'
source_sha256 '9a07fc80a155d2490be4eff77a2622539012325cef18e89305b8bc45c4c3833d'
binary_url ({
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/brackets/1.14.1_i686/brackets-1.14.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/brackets/1.14.1_x86_64/brackets-1.14.1-chromeos-x86_64.tar.xz',
binary_url({
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/brackets/1.14.1_i686/brackets-1.14.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/brackets/1.14.1_x86_64/brackets-1.14.1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
i686: '815c23b388b937fbfeb8bb109297c597dcebe3b031ad3e1a718463f5a38cb67e',
x86_64: 'ddcef49b895b1d132ceef90406044ce7699cc21dfa1d048e059bafa2945399bc',
binary_sha256({
i686: '815c23b388b937fbfeb8bb109297c597dcebe3b031ad3e1a718463f5a38cb67e',
x86_64: 'ddcef49b895b1d132ceef90406044ce7699cc21dfa1d048e059bafa2945399bc'
})
depends_on 'alien' => :build
@@ -35,7 +35,7 @@ class Brackets < Package
end
package = "Brackets.Release.#{version}.#{arch}.deb"
system "curl -#LO https://github.com/adobe/brackets/releases/download/release-#{version}/#{package}"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read(package) ) == sha256
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest(File.read(package)) == sha256
system "alien -tc #{package}"
system "tar xvf brackets-#{version}.tgz"
end
@@ -43,7 +43,7 @@ class Brackets < Package
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_HOME}/.config/Brackets"
FileUtils.mv 'usr/share', "#{CREW_DEST_PREFIX}"
FileUtils.mv 'usr/share', CREW_DEST_PREFIX.to_s
FileUtils.mv 'opt/brackets', "#{CREW_DEST_PREFIX}/share"
FileUtils.ln_s "#{CREW_PREFIX}/share/brackets/Brackets", "#{CREW_DEST_PREFIX}/bin/brackets"
system "touch #{CREW_DEST_HOME}/.config/Brackets/window.ini"

View File

@@ -8,9 +8,9 @@ class Broadway < Package
compatibility 'all'
source_url 'SKIP'
binary_url ({
binary_url({
})
binary_sha256 ({
binary_sha256({
})
depends_on 'gtk3'
@@ -34,7 +34,7 @@ class Broadway < Package
system "echo ' exit 1' >> initbroadway"
system "echo 'fi' >> initbroadway"
system "echo '#!/bin/bash' > stopbroadway"
system "echo >> stopbroadway"
system 'echo >> stopbroadway'
system "echo 'BROADWAYD=\$(pidof broadwayd 2>/dev/null)' >> stopbroadway"
system "echo 'if [ ! -z \"\${BROADWAYD}\" ]; then' >> stopbroadway"
system "echo ' pkill broadwayd' >> stopbroadway"
@@ -57,22 +57,22 @@ class Broadway < Package
def self.postinstall
puts
puts "To complete the installation, execute the following:".lightblue
puts 'To complete the installation, execute the following:'.lightblue
puts "echo '# Broadway environment variables + daemon' >> ~/.bashrc".lightblue
puts "echo '# See https://developer.gnome.org/gtk3/stable/gtk-broadway.html' >> ~/.bashrc".lightblue
puts "echo 'alias startbroadway=\"set -a && source ~/.broadway.env && set +a && initbroadway\"' >> ~/.bashrc".lightblue
puts "echo 'startbroadway' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts 'source ~/.bashrc'.lightblue
puts
puts "To start the broadwayd daemon, run 'startbroadway'".lightblue
puts "To stop the broadwayd daemon, run 'stopbroadway'".lightblue
puts
puts "To adjust environment variables, edit ~/.broadway.env".lightblue
puts 'To adjust environment variables, edit ~/.broadway.env'.lightblue
puts
puts "Navigate your browser to http://127.0.0.1:8085 while the broadwayd".lightblue
puts "daemon is running to run GTK applications in the browser window.".lightblue
puts 'Navigate your browser to http://127.0.0.1:8085 while the broadwayd'.lightblue
puts 'daemon is running to run GTK applications in the browser window.'.lightblue
puts
puts "Please be aware that gtk applications may not work without the broadwayd daemon running.".orange
puts 'Please be aware that gtk applications may not work without the broadwayd daemon running.'.orange
puts
end
end

View File

@@ -13,13 +13,13 @@ class Broot < Package
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/broot/1.11.1_armv7l/broot-1.11.1-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/broot/1.11.1_armv7l/broot-1.11.1-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/broot/1.11.1_i686/broot-1.11.1-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/broot/1.11.1_x86_64/broot-1.11.1-chromeos-x86_64.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/broot/1.11.1_x86_64/broot-1.11.1-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: '8d4aaa0b51e835863c4fe934958b295dcac68439d82b5dcef78f7939421cf131',
armv7l: '8d4aaa0b51e835863c4fe934958b295dcac68439d82b5dcef78f7939421cf131',
i686: 'aa70d49725d6c1010c2655e1065d7681f2f384daab534542d245423d074dfe4f',
x86_64: '5eed408affc3b87e22994370f0b21566bc05988ab43640c7d949e47cfb6567ec',
x86_64: '5eed408affc3b87e22994370f0b21566bc05988ab43640c7d949e47cfb6567ec'
})
depends_on 'rust' => :build

Some files were not shown because too many files have changed in this diff Show More