Commit 084884ec authored by supechicken666's avatar supechicken666 Committed by GitHub

Merge pull request #3 from skycocker/master

update
parents 7d50880e 365ed744
...@@ -108,6 +108,9 @@ class Template < Package # Notice the capitals, EG: 'I3' - would be used for an ...@@ -108,6 +108,9 @@ class Template < Package # Notice the capitals, EG: 'I3' - would be used for an
depends_on '#' => :build # Only required when the package depends_on '#' => :build # Only required when the package
is built from source is built from source
# Notice the newline # Notice the newline
def self.preflight # For preflight checks, not required
system '#' # Replace '#' with a disk space check, for example
end
def self.prebuild # For sed operations, not required def self.prebuild # For sed operations, not required
system '#' # Replace '#' with a sed operation system '#' # Replace '#' with a sed operation
end end
......
...@@ -51,6 +51,9 @@ DOCOPT ...@@ -51,6 +51,9 @@ DOCOPT
# If CREW_XZ_OPT is defined, use it by default. Use `-7e`, otherwise. # If CREW_XZ_OPT is defined, use it by default. Use `-7e`, otherwise.
ENV["XZ_OPT"] = ENV['CREW_XZ_OPT'] || "-7e -T #{CREW_NPROC}" ENV["XZ_OPT"] = ENV['CREW_XZ_OPT'] || "-7e -T #{CREW_NPROC}"
# If CURL environment variable exists use it in lieu of curl.
CURL = ENV['CURL'] || 'curl'
# Parse arguments using docopt # Parse arguments using docopt
require_relative 'lib/docopt' require_relative 'lib/docopt'
begin begin
...@@ -327,6 +330,7 @@ def const (var) ...@@ -327,6 +330,7 @@ def const (var)
'ARCH', 'ARCH',
'ARCH_LIB', 'ARCH_LIB',
'CHROMEOS_RELEASE', 'CHROMEOS_RELEASE',
'CURL',
'CREW_BREW_DIR', 'CREW_BREW_DIR',
'CREW_BUILD', 'CREW_BUILD',
'CREW_CMAKE_LIBSUFFIX_OPTIONS', 'CREW_CMAKE_LIBSUFFIX_OPTIONS',
...@@ -380,7 +384,7 @@ def whatprovides (pkgName) ...@@ -380,7 +384,7 @@ def whatprovides (pkgName)
if packageList[/\.filelist$/] if packageList[/\.filelist$/]
packageName = File.basename packageList, '.filelist' packageName = File.basename packageList, '.filelist'
File.readlines(packageList).each do |line| File.readlines(packageList).each do |line|
found = line[/#{Regexp.new(pkgName)}/] found = line[/#{pkgName}/] if line.ascii_only?
if found if found
fileLine = packageName + ': ' + line fileLine = packageName + ': ' + line
if not fileArray.include? fileLine if not fileArray.include? fileLine
...@@ -529,7 +533,7 @@ def download ...@@ -529,7 +533,7 @@ def download
end end
end end
system "curl --retry 3 -#{@verbose}#LC - --insecure \'#{url}\' --output #{filename}" system "#{CURL} --retry 3 -#{@verbose}#LC - --insecure \'#{url}\' --output #{filename}"
abort 'Checksum mismatch. :/ Try again.'.lightred unless abort 'Checksum mismatch. :/ Try again.'.lightred unless
Digest::SHA256.hexdigest( File.read(filename) ) == sha256sum Digest::SHA256.hexdigest( File.read(filename) ) == sha256sum
...@@ -736,6 +740,7 @@ def expand_dependencies ...@@ -736,6 +740,7 @@ def expand_dependencies
end end
def resolve_dependencies def resolve_dependencies
@pkg.preflight
expand_dependencies expand_dependencies
# leave only not installed packages in dependencies # leave only not installed packages in dependencies
...@@ -836,7 +841,8 @@ def install ...@@ -836,7 +841,8 @@ def install
file.write JSON.pretty_generate(output) file.write JSON.pretty_generate(output)
end end
# Update shared library cache after install is complete. # Update shared library cache after install is complete.
system "#{CREW_PREFIX}/sbin/ldconfig || true" system "echo #{CREW_LIB_PREFIX} > #{CREW_PREFIX}/etc/ld.so.conf"
system "#{CREW_PREFIX}/sbin/ldconfig -f #{CREW_PREFIX}/etc/ld.so.conf -C #{CREW_PREFIX}/etc/ld.so.cache"
end end
def resolve_dependencies_and_build def resolve_dependencies_and_build
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
set -e set -e
#chromebrew directories #chromebrew directories
OWNER="skycocker" OWNER="${OWNER:-skycocker}"
REPO="chromebrew" REPO="${REPO:-chromebrew}"
BRANCH="master" BRANCH="${BRANCH:-master}"
URL="https://raw.githubusercontent.com/${OWNER}/${REPO}/${BRANCH}" URL="https://raw.githubusercontent.com/${OWNER}/${REPO}/${BRANCH}"
CREW_PREFIX="${CREW_PREFIX:-/usr/local}" CREW_PREFIX="${CREW_PREFIX:-/usr/local}"
CREW_LIB_PATH="${CREW_PREFIX}/lib/crew/" CREW_LIB_PATH="${CREW_PREFIX}/lib/crew/"
...@@ -14,6 +14,7 @@ CREW_CONFIG_PATH="${CREW_PREFIX}/etc/crew/" ...@@ -14,6 +14,7 @@ CREW_CONFIG_PATH="${CREW_PREFIX}/etc/crew/"
CREW_BREW_DIR="${CREW_PREFIX}/tmp/crew/" CREW_BREW_DIR="${CREW_PREFIX}/tmp/crew/"
CREW_DEST_DIR="${CREW_BREW_DIR}/dest" CREW_DEST_DIR="${CREW_BREW_DIR}/dest"
CREW_PACKAGES_PATH="${CREW_LIB_PATH}/packages" CREW_PACKAGES_PATH="${CREW_LIB_PATH}/packages"
CURL="${CURL:-curl}"
EARLY_PACKAGES="gcc10 llvm brotli c_ares libcyrussasl libiconv libidn2 \ EARLY_PACKAGES="gcc10 llvm brotli c_ares libcyrussasl libiconv libidn2 \
libmetalink libnghttp2 libpsl libssh2 libtirpc libunistring openldap \ libmetalink libnghttp2 libpsl libssh2 libtirpc libunistring openldap \
...@@ -85,7 +86,7 @@ case "${ARCH}" in ...@@ -85,7 +86,7 @@ case "${ARCH}" in
esac esac
for package in $EARLY_PACKAGES; do for package in $EARLY_PACKAGES; do
pkgfile="$(curl -Lsf "${URL}"/packages/"$package".rb)" pkgfile="$($CURL -Lsf "${URL}"/packages/"$package".rb)"
temp_url="$(echo "$pkgfile" | grep -m 3 "$ARCH": | head -n 1 | cut -d\' -f2 | tr -d \' | tr -d \" | sed 's/,//g')" temp_url="$(echo "$pkgfile" | grep -m 3 "$ARCH": | head -n 1 | cut -d\' -f2 | tr -d \' | tr -d \" | sed 's/,//g')"
temp_sha256="$(echo "$pkgfile" | grep -m 3 "$ARCH": | tail -n 1 | cut -d\' -f2 | tr -d \' | tr -d \" | sed 's/,//g')" temp_sha256="$(echo "$pkgfile" | grep -m 3 "$ARCH": | tail -n 1 | cut -d\' -f2 | tr -d \' | tr -d \" | sed 's/,//g')"
urls[k]="$temp_url" urls[k]="$temp_url"
...@@ -99,7 +100,7 @@ function download_check () { ...@@ -99,7 +100,7 @@ function download_check () {
#download #download
echo -e "${BLUE}Downloading ${1}...${RESET}" echo -e "${BLUE}Downloading ${1}...${RESET}"
curl '-#' -C - -L --ssl "${2}" -o "${3}" $CURL '-#' -C - -L --ssl "${2}" -o "${3}"
#verify #verify
echo -e "${BLUE}Verifying ${1}...${RESET}" echo -e "${BLUE}Verifying ${1}...${RESET}"
......
# Defines common constants used in different parts of crew # Defines common constants used in different parts of crew
CREW_VERSION = '1.7.8' CREW_VERSION = '1.7.11'
ARCH_ACTUAL = `uname -m`.strip ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines # This helps with virtualized builds on aarch64 machines
......
...@@ -69,6 +69,11 @@ class Package ...@@ -69,6 +69,11 @@ class Package
@is_fake @is_fake
end end
# Function to perform pre-flight operations prior to dependency checks.
def self.preflight
end
# Function to perform patch operations prior to build from source. # Function to perform patch operations prior to build from source.
def self.patch def self.patch
......
...@@ -3,18 +3,18 @@ require 'package' ...@@ -3,18 +3,18 @@ require 'package'
class Android_studio < Package class Android_studio < Package
description 'Android Studio is the official IDE for Android development.' description 'Android Studio is the official IDE for Android development.'
homepage 'https://developer.android.com/studio' homepage 'https://developer.android.com/studio'
version '3.5.3.0' version '4.1.2.0'
compatibility 'x86_64' compatibility 'x86_64'
case ARCH case ARCH
when 'x86_64' when 'x86_64'
source_url 'https://dl.google.com/dl/android/studio/ide-zips/3.5.3.0/android-studio-ide-191.6010548-linux.tar.gz' source_url 'https://dl.google.com/dl/android/studio/ide-zips/4.1.2.0/android-studio-ide-201.7042882-linux.tar.gz'
source_sha256 'af630d40f276b0d169c6ac8c7663a989f562b0ac48a1d3f0d720f5b6472355db' source_sha256 '89f7c3a03ed928edeb7bbb1971284bcb72891a77b4f363557a7ad4ed37652bb9'
depends_on 'jdk8' depends_on 'jdk8'
depends_on 'xdg_base' depends_on 'xdg_base'
depends_on 'sommelier' depends_on 'sommelier'
end end
def self.preinstall def self.preflight
free_space = `echo $(($(stat -f --format="%a*%S" .)))`.chomp.to_i free_space = `echo $(($(stat -f --format="%a*%S" .)))`.chomp.to_i
abort 'Not enough free disk space. You need at least 6 GB to install.'.lightred if free_space < 6442450944 abort 'Not enough free disk space. You need at least 6 GB to install.'.lightred if free_space < 6442450944
end end
...@@ -26,11 +26,11 @@ class Android_studio < Package ...@@ -26,11 +26,11 @@ class Android_studio < Package
FileUtils.cd(CREW_DEST_PREFIX + '/bin') do FileUtils.cd(CREW_DEST_PREFIX + '/bin') do
FileUtils.ln_s(CREW_PREFIX + '/share/android-studio/bin/studio.sh', 'studio') FileUtils.ln_s(CREW_PREFIX + '/share/android-studio/bin/studio.sh', 'studio')
end end
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/.AndroidStudio3.5') FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/.AndroidStudio4.1')
FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/Android') FileUtils.mkdir_p(CREW_DEST_PREFIX + '/.config/Android')
FileUtils.mkdir_p(CREW_DEST_HOME) FileUtils.mkdir_p(CREW_DEST_HOME)
FileUtils.cd(CREW_DEST_HOME) do FileUtils.cd(CREW_DEST_HOME) do
FileUtils.ln_sf(CREW_PREFIX + '/.config/.AndroidStudio3.5/', '.AndroidStudio3.5') FileUtils.ln_sf(CREW_PREFIX + '/.config/.AndroidStudio4.1/', '.AndroidStudio4.1')
FileUtils.ln_sf(CREW_PREFIX + '/.config/Android/', 'Android') FileUtils.ln_sf(CREW_PREFIX + '/.config/Android/', 'Android')
end end
end end
...@@ -39,11 +39,22 @@ class Android_studio < Package ...@@ -39,11 +39,22 @@ class Android_studio < Package
puts puts
puts 'To start using Android Studio, type `studio`.'.lightblue puts 'To start using Android Studio, type `studio`.'.lightblue
puts puts
puts 'To completely remove Android Studio, including the'.lightblue end
puts 'settings, SDK and tools, execute the following:'.lightblue
puts 'crew remove android_studio'.lightblue def self.remove
puts "rm -rf #{CREW_PREFIX}/.config/Android".lightblue config_dirs = ["#{CREW_PREFIX}/.config/Android", "#{CREW_PREFIX}/.config/.AndroidStudio4.1"]
puts "rm -rf #{CREW_PREFIX}/.config/.AndroidStudio3.5".lightblue config_dirs.each { |config_dir|
puts if Dir.exists? config_dir
puts
print "Would you like to remove #{config_dir}? [y/N] "
case STDIN.getc
when "y", "Y"
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightred
else
puts "#{config_dir} saved.".lightgreen
end
end
}
end end
end end
...@@ -3,22 +3,22 @@ require 'package' ...@@ -3,22 +3,22 @@ require 'package'
class Avahi < Package class Avahi < Package
description 'Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite.' description 'Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite.'
homepage 'http://www.avahi.org/' homepage 'http://www.avahi.org/'
version '0.8-1' version '0.8-2'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/lathiat/avahi/releases/download/v0.8/avahi-0.8.tar.gz' source_url 'https://github.com/lathiat/avahi/releases/download/v0.8/avahi-0.8.tar.gz'
source_sha256 '060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda' source_sha256 '060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/avahi-0.8-1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/avahi-0.8-2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/avahi-0.8-1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/avahi-0.8-2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/avahi-0.8-1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/avahi-0.8-2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/avahi-0.8-1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/avahi-0.8-2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '63dc17aedb4b78b919cc5f7cd0b6750173ce42fd0c2c5a134fa26d082d214a4f', aarch64: 'f37472d2cacfb5bcb342209d43938ac578dfa37de30662d8b73a74d386a60d83',
armv7l: '63dc17aedb4b78b919cc5f7cd0b6750173ce42fd0c2c5a134fa26d082d214a4f', armv7l: 'f37472d2cacfb5bcb342209d43938ac578dfa37de30662d8b73a74d386a60d83',
i686: '78fba762d54fa7ba3dece48de92b625cbec4b27327a8e3a9c9c73d785cf96a0a', i686: '2e77803a7d2dca48ad76c0ee08544008ea330ec1824db4600766a2f968a3ced5',
x86_64: '69565bde70da558b2b058acf2a4b4e861ba2732176aa7f637ba4e9330722ad00', x86_64: 'de20f11d7e0d269f7940a0b75cd9647e55ccaac1bb49a05b383b16561318a6af'
}) })
depends_on 'gtk3' depends_on 'gtk3'
...@@ -28,12 +28,14 @@ class Avahi < Package ...@@ -28,12 +28,14 @@ class Avahi < Package
depends_on 'qtbase' depends_on 'qtbase'
def self.build def self.build
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' LDFLAGS='-flto=auto' \ system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
./configure \ LDFLAGS='-flto=auto' \
#{CREW_OPTIONS} \ ./configure \
--with-distro=none \ #{CREW_OPTIONS} \
--disable-python \ --with-dbus-sys=#{CREW_PREFIX}/share/dbus-1 \
--disable-xmltoman" --with-distro=none \
--disable-python \
--disable-xmltoman"
system "sed -i '695d' Makefile" system "sed -i '695d' Makefile"
system 'make' system 'make'
end end
......
...@@ -8,6 +8,19 @@ class Benchmark < Package ...@@ -8,6 +8,19 @@ class Benchmark < Package
source_url 'https://github.com/google/benchmark/archive/v1.5.2.tar.gz' source_url 'https://github.com/google/benchmark/archive/v1.5.2.tar.gz'
source_sha256 'dccbdab796baa1043f04982147e67bb6e118fe610da2c65f88912d73987e700c' source_sha256 'dccbdab796baa1043f04982147e67bb6e118fe610da2c65f88912d73987e700c'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/benchmark-1.5.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/benchmark-1.5.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/benchmark-1.5.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/benchmark-1.5.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '9aa663f4068a79d821bc556f6dc60b0e6ee2278505cd747e94a0fd7750258711',
armv7l: '9aa663f4068a79d821bc556f6dc60b0e6ee2278505cd747e94a0fd7750258711',
i686: 'e8f37ed6c926979e2c13949f3cf8eaeb9e7e9eedbc751d550ead9680e0a87a5c',
x86_64: '71f73a3dc296d91b2a5ed685396cbad25ad69e0d231cbed59a5d44391e98aa31',
})
def self.patch def self.patch
@limitsh = <<~EOF @limitsh = <<~EOF
--- a/src/benchmark_register.h --- a/src/benchmark_register.h
......
...@@ -3,42 +3,46 @@ require 'package' ...@@ -3,42 +3,46 @@ require 'package'
class Bind < Package class Bind < Package
description 'BIND is open source software that enables you to publish your Domain Name System (DNS) information on the Internet, and to resolve DNS queries for your users.' description 'BIND is open source software that enables you to publish your Domain Name System (DNS) information on the Internet, and to resolve DNS queries for your users.'
homepage 'https://www.isc.org/downloads/bind/' homepage 'https://www.isc.org/downloads/bind/'
version '9.17.8' @_ver = '9.17.10'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'file:///dev/null' source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/bind-9.17.8-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/bind-9.17.10-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/bind-9.17.8-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/bind-9.17.10-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/bind-9.17.8-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/bind-9.17.10-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/bind-9.17.8-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/bind-9.17.10-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'c757c886c9760396405166ee258b1953935ea3a61e40e6490c44aecbf64a5041', aarch64: '0655729fa11a71e11da25627a813aabb4110a1e8b694d0ac711adcdec7bf19c9',
armv7l: 'c757c886c9760396405166ee258b1953935ea3a61e40e6490c44aecbf64a5041', armv7l: '0655729fa11a71e11da25627a813aabb4110a1e8b694d0ac711adcdec7bf19c9',
i686: '54a28fd25b2602ac2fec3781e148c6ce9222537978b6ab79bc9457a0ab5ce534', i686: '0fc34d77bd997d9b771ef9309f6a62a61cebbd4878889a383790e57f4b8fd0b4',
x86_64: '0d5568f9e16d5b76fd8da2815efce5dbbecb435ee99e8757141c10e8edd9539c', x86_64: '052251db56246ff7701b00ad91e868b602e400bf1cba2001fff96026f2fc493a'
}) })
depends_on 'libcap' depends_on 'libcap'
depends_on 'libseccomp' depends_on 'libseccomp'
depends_on 'libuv' depends_on 'libuv'
depends_on 'libidn2'
def self.build def self.build
system "git config --global advice.detachedHead false" system 'git config --global advice.detachedHead false'
system 'git clone --depth=1 -b v9_17_8 https://gitlab.isc.org/isc-projects/bind9.git' @_ver_ = @_ver.gsub(/[.]/, '_')
system "git clone --depth=1 -b v#{@_ver_} https://gitlab.isc.org/isc-projects/bind9.git"
Dir.chdir 'bind9' do Dir.chdir 'bind9' do
system 'pip3 install ply==3.11' system 'pip3 install ply==3.11'
system 'autoreconf -fi' system 'autoreconf -fi'
system "env CFLAGS='-DDIG_SIGCHASE -flto=auto' ./configure \ system "env CFLAGS='-DDIG_SIGCHASE -flto=auto' \
#{CREW_OPTIONS} \ CXXFLAGS='-pipe -flto=auto' \
--enable-fixed-rrset \ LDFLAGS='-flto=auto' \
--enable-full-report \ ./configure \
--with-openssl \ #{CREW_OPTIONS} \
--with-libidn2 \ --enable-fixed-rrset \
--disable-maintainer-mode" --enable-full-report \
--with-openssl \
--with-libidn2 \
--disable-maintainer-mode"
system 'make' system 'make'
end end
end end
......
...@@ -3,34 +3,33 @@ require 'package' ...@@ -3,34 +3,33 @@ require 'package'
class Binutils < Package class Binutils < Package
description 'The GNU Binutils are a collection of binary tools.' description 'The GNU Binutils are a collection of binary tools.'
homepage 'https://www.gnu.org/software/binutils/' homepage 'https://www.gnu.org/software/binutils/'
@_ver = '2.36' @_ver = '2.36.1'
version @_ver version @_ver
compatibility 'all' compatibility 'all'
source_url "https://ftpmirror.gnu.org/binutils/binutils-#{@_ver}.tar.xz" source_url "https://ftpmirror.gnu.org/binutils/binutils-#{@_ver}.tar.xz"
source_sha256 '5788292cc5bbcca0848545af05986f6b17058b105be59e99ba7d0f9eb5336fb8' source_sha256 'e81d9edf373f193af428a0f256674aea62a9d74dfe93f65192d4eae030b0f3b0'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.36-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.36.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.36-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.36.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.36-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.36.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.36-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.36.1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'fd86f02633b27be6d0eaf1ca5f30c0d1e93b4b6e0c08311972bf9f74892b1dcf', aarch64: '22a88c3eb29672805441c78fa2c37414a4d49bec790252391c1caf45edc20426',
armv7l: 'fd86f02633b27be6d0eaf1ca5f30c0d1e93b4b6e0c08311972bf9f74892b1dcf', armv7l: '22a88c3eb29672805441c78fa2c37414a4d49bec790252391c1caf45edc20426',
i686: '1ce06b9e18bd84abe16156e61a68f67e35c749d88733e8d6d69d8b4a14f1aa70', i686: '7f47210024759db0485292d7695f46532ae0c4c579c03ba0c6450a5174ce9f6f',
x86_64: '10738895b575f9a41a463c8d0a67a18ba0c134bdf71c9388c1a7d6706e5479fd', x86_64: '624fb52ce022d6caea7c99a8c6a08f872e51fe0c8be09bb3c3f72e186ad60d3a'
}) })
depends_on 'filecmd'
depends_on 'texinfo'
def self.build def self.build
system 'filefix' system 'filefix'
Dir.mkdir 'build' Dir.mkdir 'build'
Dir.chdir 'build' do Dir.chdir 'build' do
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \ system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
LDFLAGS='-flto=auto' \
../configure #{CREW_OPTIONS} \ ../configure #{CREW_OPTIONS} \
--with-system-zlib \
--disable-maintainer-mode \ --disable-maintainer-mode \
--enable-shared \ --enable-shared \
--enable-gold \ --enable-gold \
......
# Adapted from Arch Linux cargo-c PKGBUILD at:
# https://github.com/archlinux/svntogit-community/raw/packages/cargo-c/trunk/PKGBUILD
require 'package'
class Cargo_c < Package
description 'A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries'
homepage 'https://github.com/lu-zero/cargo-c/'
version '0.7.3'
compatibility 'all'
source_url 'https://github.com/lu-zero/cargo-c/archive/v0.7.3/cargo-c-0.7.3.tar.gz'
source_sha256 '533c65d555330e86b91415753efc140ffdb900abd59b5b6403352c4264941a99'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/cargo_c-0.7.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/cargo_c-0.7.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/cargo_c-0.7.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/cargo_c-0.7.3-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '9063b96616c64d564f99cd16611ca86f8b8a72a88f5afd03582aaba51941acea',
armv7l: '9063b96616c64d564f99cd16611ca86f8b8a72a88f5afd03582aaba51941acea',
i686: '3618f6dc7d77a526c22ed2dd05ea46af032b812d01c5f93c1f8546192d41acbf',
x86_64: 'de92ff24a09ed7d26f0b8490e174c83ff9941ab33b417a8d20243d0f85d18ef3'
})
depends_on 'rust' => ':build'
def self.build
system "cargo fetch \
--manifest-path Cargo.toml"
system "cargo build \
--release \
--frozen \
--manifest-path Cargo.toml"
end
def self.install
system "cargo install \
--frozen \
--offline \
--no-track \
--path . \
--root #{CREW_DEST_PREFIX}"
end
end
...@@ -21,6 +21,7 @@ class Ccache < Package ...@@ -21,6 +21,7 @@ class Ccache < Package
x86_64: '5c4c9e014f23977f2f031eb9f9b367881a20fa8effeac9e38289cd723aa11e62', x86_64: '5c4c9e014f23977f2f031eb9f9b367881a20fa8effeac9e38289cd723aa11e62',
}) })
depends_on 'xdg_base'
depends_on 'asciidoc' => :build depends_on 'asciidoc' => :build
def self.build def self.build
......
require 'package'
class Cfitsio < Package
description 'A library of C and Fortran subroutines for reading and writing data files in FITS Flexible Image Transport System data format'
homepage 'https://heasarc.gsfc.nasa.gov/fitsio/'
version '3.49'
compatibility 'all'
source_url 'https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-3.49.tar.gz'
source_sha256 '5b65a20d5c53494ec8f638267fca4a629836b7ac8dd0ef0266834eab270ed4b3'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/cfitsio-3.49-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/cfitsio-3.49-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/cfitsio-3.49-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/cfitsio-3.49-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '0d24de398a86b55b04f5601e856f872cccbe1e9d347bf918f7ad18af8bae776e',
armv7l: '0d24de398a86b55b04f5601e856f872cccbe1e9d347bf918f7ad18af8bae776e',
i686: '728f1602789e0eacf81236e0739d59dd27dca649c6c57a9c9947a730d0aa2d25',
x86_64: '9957f638dd3ea9188ded8bbee7970955947784d51633033a3693ebb746158330'
})
def self.patch
system "sed -e 's|LDFLAGS=.*|LDFLAGS=$LDFLAGS|g' -i configure.in # Fix LDFLAGS"
end
def self.build
system 'autoreconf -vi'
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS} --enable-reentrant"
system 'make shared'
system 'make utils'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
...@@ -4,38 +4,33 @@ class Chrome < Package ...@@ -4,38 +4,33 @@ class Chrome < Package
description 'Google Chrome is a fast, easy to use, and secure web browser.' description 'Google Chrome is a fast, easy to use, and secure web browser.'
homepage 'https://www.google.com/chrome' homepage 'https://www.google.com/chrome'
compatibility 'x86_64' compatibility 'x86_64'
@_ver = '87.0.4280.141' @_ver = '88.0.4324.182'
@_deb = "google-chrome-stable_#{@_ver}-1_amd64.deb" @_deb = "google-chrome-stable_#{@_ver}-1_amd64.deb"
version @_ver version @_ver
case ARCH if ARCH == 'x86_64' then
when 'x86_64'
source_url "https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/#{@_deb}"
source_sha256 'b7edb7cd5c166bf3c0a1d245baa5924e242c3b81b97090468bec778f41f40373'
depends_on 'alien' => :build
depends_on 'nspr' depends_on 'nspr'
depends_on 'cairo' depends_on 'cairo'
depends_on 'gtk3' depends_on 'gtk3'
depends_on 'expat' depends_on 'expat'
depends_on 'cras' depends_on 'cras'
depends_on 'sommelier' depends_on 'sommelier'
end source_url "https://dl.google.com/linux/deb/pool/main/g/google-chrome-stable/#{@_deb}"
source_sha256 'ab00e9412f5f20e30c7db5dc987473248f4adf9ebf2c3f928ef62e1ffb104fe6'
def self.build
Dir.chdir '..' do
system "alien -tc #{@_deb}"
system "tar xf google-chrome-stable-#{@_ver}.tgz"
end
end end
def self.install def self.install
Dir.chdir '..' do ENV['CREW_NOT_STRIP'] = '1'
ENV['CREW_NOT_STRIP'] = '1' FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mv 'opt/', CREW_DEST_PREFIX
FileUtils.mv 'usr/share', CREW_DEST_PREFIX FileUtils.mv Dir.glob('usr/share/*'), './'
FileUtils.mv 'etc', CREW_DEST_PREFIX FileUtils.mv Dir.glob('opt/google/chrome/*'), './'
FileUtils.ln_s "#{CREW_PREFIX}/opt/google/chrome/google-chrome", "#{CREW_DEST_PREFIX}/bin/google-chrome" FileUtils.rm_rf ['usr', 'opt']
end
FileUtils.ln_s "#{CREW_PREFIX}/share/chrome/google-chrome", '#{CREW_DEST_PREFIX}/bin/google-chrome-stable'
FileUtils.ln_s "#{CREW_PREFIX}/share/chrome/google-chrome", '#{CREW_DEST_PREFIX}/bin/google-chrome'
FileUtils.mv Dir.glob('*'), "#{CREW_DEST_PREFIX}/share"
end end
end end
...@@ -7,6 +7,19 @@ class Civetweb < Package ...@@ -7,6 +7,19 @@ class Civetweb < Package
compatibility 'all' compatibility 'all'
source_url 'https://github.com/civetweb/civetweb/archive/v1.13.tar.gz' source_url 'https://github.com/civetweb/civetweb/archive/v1.13.tar.gz'
source_sha256 'a7ccc76c2f1b5f4e8d855eb328ed542f8fe3b882a6da868781799a98f4acdedc' source_sha256 'a7ccc76c2f1b5f4e8d855eb328ed542f8fe3b882a6da868781799a98f4acdedc'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/civetweb-1.13-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/civetweb-1.13-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/civetweb-1.13-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/civetweb-1.13-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'a9c69122c495afd89473928171d8b6528d8d1980d136cc16160733a317e21704',
armv7l: 'a9c69122c495afd89473928171d8b6528d8d1980d136cc16160733a317e21704',
i686: '856eeb6d5543fe03baec996f21324ad0bb14bc0a2e9c080d61cf33614697a36d',
x86_64: 'a314284c9ea9b1f3190174645c5c13872387520dc1877a3fb7eb5397916b8bed',
})
def self.build def self.build
Dir.mkdir "builddir" Dir.mkdir "builddir"
......
require 'package'
class Clutter_gtk < Package
description 'The Clutter Gtk package is a library providing facilities to integrate Clutter into GTK+ applications.'
homepage 'https://wiki.gnome.org/Projects/Clutter'
compatibility 'all'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '1.8.4'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/clutter_gtk-1.8.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/clutter_gtk-1.8.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/clutter_gtk-1.8.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/clutter_gtk-1.8.4-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '7f759c259b71f86c1e13ec5ffb8e0add079b5dfa4cddae06d81700db6834ac7d',
armv7l: '7f759c259b71f86c1e13ec5ffb8e0add079b5dfa4cddae06d81700db6834ac7d',
i686: '499108e196161dffd762aff54ffa8bbd338863c9d9cc8c2af54fd5728d11cb7d',
x86_64: '3b5b60ce00a67815def67ff992aac8caf89fb4ee0ef68d7a51c857ce30a3461e'
})
depends_on 'gtk3'
depends_on 'libgee'
depends_on 'clutter'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
...@@ -3,10 +3,10 @@ require 'package' ...@@ -3,10 +3,10 @@ require 'package'
class Composer < Package class Composer < Package
description 'Dependency Manager for PHP' description 'Dependency Manager for PHP'
homepage 'https://getcomposer.org/' homepage 'https://getcomposer.org/'
version '2.0.9' version '2.0.11'
compatibility 'all' compatibility 'all'
source_url "https://github.com/composer/composer/archive/#{version}.tar.gz" source_url "https://github.com/composer/composer/archive/#{version}.tar.gz"
source_sha256 '2334cbd4236c7a30afc871cb045a19e4941b2f9bdecb943180d10b3a040d1e8b' source_sha256 '025d332242b696ec5d10dcc4d9ad9460321d9740b09e967849017f3e67d3fcb2'
depends_on 'php74' unless File.exists? "#{CREW_PREFIX}/bin/php" depends_on 'php74' unless File.exists? "#{CREW_PREFIX}/bin/php"
depends_on 'xdg_base' depends_on 'xdg_base'
...@@ -23,7 +23,7 @@ class Composer < Package ...@@ -23,7 +23,7 @@ class Composer < Package
def self.install def self.install
system "curl -Ls -o composer https://github.com/composer/composer/releases/download/#{version}/composer.phar" system "curl -Ls -o composer https://github.com/composer/composer/releases/download/#{version}/composer.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == '8e91344a5ca2fc0fb583c50f195a1f36918908561c4ea3d6f01a4ef01c3b8560' abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == 'd6eee0d4637f4bd82bdae098fceda300dcb3ec35bf502604fbe7510933b8f952'
system "install -Dm755 composer #{CREW_DEST_PREFIX}/bin/composer" system "install -Dm755 composer #{CREW_DEST_PREFIX}/bin/composer"
end end
......
require 'package'
class Consolekit < Package
description 'A framework for defining and tracking users, login sessions, and seats'
homepage 'https://github.com/ConsoleKit2/ConsoleKit2'
@_ver = '1.2.2'
version @_ver
compatibility 'all'
source_url "https://github.com/ConsoleKit2/ConsoleKit2/archive/#{@_ver}.tar.gz"
source_sha256 '104fd9f41c2d572ad62f4032de46c4c384c3522602b0ad953cf55759c6c64c1d'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/consolekit-1.2.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/consolekit-1.2.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/consolekit-1.2.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/consolekit-1.2.2-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '4b9173ec6798adc23824c4189a050744b888de6b58d60442d1ec89bf0df81443',
armv7l: '4b9173ec6798adc23824c4189a050744b888de6b58d60442d1ec89bf0df81443',
i686: '2c4ab4d6ff0790b619db2c7093712a0100c5bdb9f3e43c50877b9781215faeb4',
x86_64: '61b5b664b28cc6f5ce61d4065849ff8ebf1ac612140686c9178ef9b915fb3372'
})
depends_on 'dbus'
depends_on 'libx11'
depends_on 'polkit'
depends_on 'linux_pam'
depends_on 'eudev'
depends_on 'xmlto' => ':build'
def self.build
system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./autogen.sh \
#{CREW_OPTIONS} \
--sysconfdir=#{CREW_PREFIX}/etc \
--sbindir=#{CREW_PREFIX}/usr/bin \
--with-rundir=/run \
--libexecdir=#{CREW_LIB_PREFIX}/ConsoleKit \
--localstatedir=/var \
--enable-polkit \
--enable-pam-module \
--enable-udev-acl \
--enable-libevdev \
--with-dbus-services=#{CREW_PREFIX}/share/dbus-1/services \
--with-xinitrc-dir=#{CREW_PREFIX}/etc/X11/xinit/xinitrc.d \
--with-pam-module-dir=#{CREW_LIB_PREFIX}/security \
--without-systemdsystemunitdir \
--disable-cgroups"
system 'make'
# From Arch:
system 'echo "d /run/ConsoleKit 0755 - - -" > consolekit.tmpfiles.conf'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
FileUtils.mkdir_p "#{CREW_DEST_LIB_PREFIX}/tmpfiles.d"
FileUtils.install 'consolekit.tmpfiles.conf', "#{CREW_DEST_LIB_PREFIX}/tmpfiles.d/consolekit.conf", mode: 0o644
end
end
...@@ -3,34 +3,37 @@ require 'package' ...@@ -3,34 +3,37 @@ require 'package'
class Cups < Package class Cups < Package
description 'CUPS is the standards-based, open source printing system' description 'CUPS is the standards-based, open source printing system'
homepage 'https://github.com/OpenPrinting/cups' homepage 'https://github.com/OpenPrinting/cups'
version '2.3.3op1' @_ver = '2.3.3op2'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/OpenPrinting/cups/archive/v2.3.3op1.tar.gz' source_url "https://github.com/OpenPrinting/cups/releases/download/v#{@_ver}/cups-#{@_ver}-source.tar.gz"
source_sha256 '64148c7f7c0d2b2715db1be2fb557042ccb0b0f19a03456a83fbf6353bb73c89' source_sha256 'deb3575bbe79c0ae963402787f265bfcf8d804a71fc2c94318a74efec86f96df'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/cups-2.3.3op1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/cups-2.3.3op2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/cups-2.3.3op1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/cups-2.3.3op2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/cups-2.3.3op1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/cups-2.3.3op2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/cups-2.3.3op1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/cups-2.3.3op2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '60913c27b5497ec10aca5df086a0f0fa8f73e78b598feba8a3da378cc1209e3e', aarch64: 'cf7fb54c659bb5f01c3097274864c3e0bf1669f0d6a8a1e6df82e6c403ad5264',
armv7l: '60913c27b5497ec10aca5df086a0f0fa8f73e78b598feba8a3da378cc1209e3e', armv7l: 'cf7fb54c659bb5f01c3097274864c3e0bf1669f0d6a8a1e6df82e6c403ad5264',
i686: '329feb5a3de9327a6f840d7f2591a3857d844388090db32b365a81ba77ecde41', i686: '74e029c12bf5af1545ca74ffddf0f70fda68bebaaab22c264d7541c2c7b570aa',
x86_64: '29c084f76614805e3c8deb3620d422a6f4f4e52cbab587d2fa7835561481848b', x86_64: '993136847f961e31b04906a36334278df723c12c5e55c7d7cf9ee797fad2ed88'
}) })
depends_on 'acl'
depends_on 'krb5'
depends_on 'libusb' depends_on 'libusb'
depends_on 'linux_pam' depends_on 'linux_pam'
depends_on 'psmisc' depends_on 'psmisc'
def self.build def self.build
system "./configure #{CREW_OPTIONS} \ system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
--disable-launchd --disable-systemd \ CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
--enable-libusb" LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS} \
--disable-launchd \
--disable-systemd \
--enable-libusb"
system 'make' system 'make'
system "echo '#!/bin/bash' > startcupsd" system "echo '#!/bin/bash' > startcupsd"
system "echo 'CUPSD=#{CREW_PREFIX}/sbin/cupsd' >> startcupsd" system "echo 'CUPSD=#{CREW_PREFIX}/sbin/cupsd' >> startcupsd"
...@@ -64,21 +67,28 @@ class Cups < Package ...@@ -64,21 +67,28 @@ class Cups < Package
def self.install def self.install
system 'make', system 'make',
"DESTDIR=#{CREW_DEST_DIR}", "DESTDIR=#{CREW_DEST_DIR}",
"DATADIR=#{CREW_DEST_PREFIX}/share/cups", "DATADIR=#{CREW_DEST_PREFIX}/share/cups",
"DOCDIR=#{CREW_DEST_PREFIX}/share/doc/cups", "DOCDIR=#{CREW_DEST_PREFIX}/share/doc/cups",
"MANDIR=#{CREW_DEST_PREFIX}/share/man", "MANDIR=#{CREW_DEST_PREFIX}/share/man",
"ICONDIR=#{CREW_PREFIX}/share/icons", "ICONDIR=#{CREW_PREFIX}/share/icons",
"MENUDIR=#{CREW_PREFIX}/share/applications", "MENUDIR=#{CREW_PREFIX}/share/applications",
"INITDIR=#{CREW_PREFIX}/etc/init.d", "INITDIR=#{CREW_PREFIX}/etc/init.d",
"SERVERROOT=#{CREW_DEST_PREFIX}/etc/cups", "SERVERROOT=#{CREW_DEST_PREFIX}/etc/cups",
"SERVERBIN=#{CREW_DEST_PREFIX}/libexec/cups", "SERVERBIN=#{CREW_DEST_PREFIX}/libexec/cups",
"CACHEDIR=#{CREW_DEST_PREFIX}/var/cache/cups", "CACHEDIR=#{CREW_DEST_PREFIX}/var/cache/cups",
"LOCALEDIR=#{CREW_DEST_PREFIX}/share/locale", "LOCALEDIR=#{CREW_DEST_PREFIX}/share/locale",
'install' 'install'
system "install -Dm755 startcupsd #{CREW_DEST_PREFIX}/bin/startcupsd" system "install -Dm755 startcupsd #{CREW_DEST_PREFIX}/bin/startcupsd"
system "install -Dm755 stopcupsd #{CREW_DEST_PREFIX}/bin/stopcupsd" system "install -Dm755 stopcupsd #{CREW_DEST_PREFIX}/bin/stopcupsd"
FileUtils.rm "#{CREW_DEST_DIR}/etc/dbus-1/system.d/cups.conf" if File.exist?("#{CREW_DEST_DIR}/etc/dbus-1/system.d/cups.conf")
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/dbus-1/system.d"
FileUtils.mv "#{CREW_DEST_DIR}/etc/dbus-1/system.d/cups.conf", "#{CREW_DEST_PREFIX}/share/dbus-1/system.d/"
end
if File.exist?("#{CREW_DEST_DIR}/etc/pam.d/cups")
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/pam.d"
FileUtils.mv "#{CREW_DEST_DIR}/etc/pam.d/cups", "#{CREW_DEST_PREFIX}/etc/pam.d/"
end
end end
def self.postinstall def self.postinstall
...@@ -86,7 +96,7 @@ class Cups < Package ...@@ -86,7 +96,7 @@ class Cups < Package
puts "To start the cups daemon, run 'startcupsd'".lightblue puts "To start the cups daemon, run 'startcupsd'".lightblue
puts "To stop the cups daemon, run 'stopcupsd'".lightblue puts "To stop the cups daemon, run 'stopcupsd'".lightblue
puts puts
puts "For more information, see https://docs.oracle.com/cd/E23824_01/html/821-1451/gllgm.html".lightblue puts 'For more information, see https://docs.oracle.com/cd/E23824_01/html/821-1451/gllgm.html'.lightblue
puts puts
end end
end end
...@@ -4,22 +4,22 @@ class Curl < Package ...@@ -4,22 +4,22 @@ class Curl < Package
description 'Command line tool and library for transferring data with URLs.' description 'Command line tool and library for transferring data with URLs.'
homepage 'https://curl.se/' homepage 'https://curl.se/'
@_ver = '7.75.0' @_ver = '7.75.0'
version @_ver version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url "https://curl.se/download/curl-#{@_ver}.tar.xz" source_url "https://curl.se/download/curl-#{@_ver}.tar.xz"
source_sha256 'fe0c49d8468249000bda75bcfdf9e30ff7e9a86d35f1a21f428d79c389d55675' source_sha256 'fe0c49d8468249000bda75bcfdf9e30ff7e9a86d35f1a21f428d79c389d55675'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.75.0-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.75.0-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.75.0-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.75.0-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.75.0-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.75.0-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.75.0-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/curl-7.75.0-1-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: '6d0b932c52ecb2ca3dec9e6f713804d632e0744c243019c93fc92eabe5a01edd', aarch64: '5931c7a220565a764e6e07dd29ee9d3faeccfc5c8a8cd55c1e2f461ab2b91ce1',
armv7l: '6d0b932c52ecb2ca3dec9e6f713804d632e0744c243019c93fc92eabe5a01edd', armv7l: '5931c7a220565a764e6e07dd29ee9d3faeccfc5c8a8cd55c1e2f461ab2b91ce1',
i686: '8944cd73ecbc7cbda1a3afc18aafdea28486baad7b7664d6b16c3ccc23ca2c07', i686: 'affda80ebef656f6def4997e7b444dfc587c9310affa23a2f7be7afc28b1e4d7',
x86_64: 'a511db565f40b830a623a173739d29a3c935ea2698ebb407b65a630d1e279b17' x86_64: '06153ae00ddc65055fe7b4aae6421101befbf611ce884ce0b794d080a585f088'
}) })
depends_on 'groff' => :build depends_on 'groff' => :build
...@@ -33,17 +33,23 @@ class Curl < Package ...@@ -33,17 +33,23 @@ class Curl < Package
depends_on 'openldap' depends_on 'openldap'
depends_on 'zstd' depends_on 'zstd'
depends_on 'rtmpdump' depends_on 'rtmpdump'
depends_on 'ca_certificates'
def self.build def self.build
raise StandardError, 'Please remove libiconv before building.' if File.exist?("#{CREW_LIB_PREFIX}/libcharset.so") raise StandardError, 'Please remove libiconv before building.' if File.exist?("#{CREW_LIB_PREFIX}/libcharset.so")
system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto'\ system './configure --help'
./configure #{CREW_OPTIONS} \ system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' \
--disable-maintainer-mode \ LDFLAGS='-flto=auto'\
--enable-ares \ ./configure #{CREW_OPTIONS} \
--with-ldap-lib=ldap \ --disable-maintainer-mode \
--with-lber-lib=lber \ --enable-ares \
--with-libmetalink" --with-ldap-lib=ldap \
--with-lber-lib=lber \
--with-libmetalink \
--with-ca-path=#{CREW_PREFIX}/etc/ssl/certs \
--with-ca-bundle=#{CREW_PREFIX}/etc/ssl/certs/ca-certificates.crt \
--with-ca-fallback"
system 'make' system 'make'
end end
......
...@@ -3,33 +3,35 @@ require 'package' ...@@ -3,33 +3,35 @@ require 'package'
class Dav1d < Package class Dav1d < Package
description '**dav1d** is a new **AV1** cross-platform **d**ecoder, open-source, and focused on speed and correctness.' description '**dav1d** is a new **AV1** cross-platform **d**ecoder, open-source, and focused on speed and correctness.'
homepage 'https://code.videolan.org/videolan/dav1d' homepage 'https://code.videolan.org/videolan/dav1d'
version '0.4.0' @_ver = '0.8.2'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'http://get.videolan.org/dav1d/0.4.0/dav1d-0.4.0.tar.xz' source_url "https://get.videolan.org/dav1d/#{@_ver}/dav1d-#{@_ver}.tar.xz"
source_sha256 '2553b2e65081c0ec799c11a752ea43ad8f2d11b2fb36a83375972d1a00add823' source_sha256 '3dd91d96b44e9d8ba7e82ad9e730d6c579ab5e19edca0db857a60f5ae6a0eb13'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/dav1d-0.4.0-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/dav1d-0.8.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/dav1d-0.4.0-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/dav1d-0.8.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/dav1d-0.4.0-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/dav1d-0.8.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/dav1d-0.4.0-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/dav1d-0.8.2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '8f6ba95b0a42b98fa23e0550db70779205531b101932b67e06458030f4d2b712', aarch64: '1e55f2fb0514c8a5fb6b991a2280495b0706ff95f5ae4013e67e70de2e8b5bfe',
armv7l: '8f6ba95b0a42b98fa23e0550db70779205531b101932b67e06458030f4d2b712', armv7l: '1e55f2fb0514c8a5fb6b991a2280495b0706ff95f5ae4013e67e70de2e8b5bfe',
i686: '8808245f9c03815ada09d3cdc5cde3844050f77fbfae8577808dd6d0783067e6', i686: 'a2115b3d09915b60f6fdffff5ad624df55bbfb3207b55eea08277b77680c34c9',
x86_64: 'adb925f84ce45e4276ca13f686ad3588aec5821217e9d042b0190143482ad80b', x86_64: '86edb8b9bcd8d7ae8e5062da704f8c223a7c3745340108d13325100c96aafb2e'
}) })
depends_on 'meson' => :build
depends_on 'nasm' => :build depends_on 'nasm' => :build
def self.build def self.build
system 'meson build --buildtype release' system "meson #{CREW_MESON_LTO_OPTIONS} \
system 'ninja -C build' builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end end
def self.install def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C build install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
end end
...@@ -3,14 +3,27 @@ require 'package' ...@@ -3,14 +3,27 @@ require 'package'
class Elogind < Package class Elogind < Package
description 'Standalone systemd-logind fork' description 'Standalone systemd-logind fork'
homepage 'https://github.com/elogind/elogind' homepage 'https://github.com/elogind/elogind'
version '246.9.2' @_ver = '246.10'
version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url 'https://github.com/elogind/elogind/archive/v246.9.2.tar.gz' source_url "https://github.com/elogind/elogind/archive/v#{@_ver}.tar.gz"
source_sha256 'dd2fcf22a89a078cad22e633d2f14a4cc9f4a9c8bae25c0e39fc4aec3e273bc9' source_sha256 'c490dc158c8f5bca8d00ecfcc7ad5af24d1c7b9e59990a0b3b1323996221a922'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/elogind-246.10-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/elogind-246.10-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/elogind-246.10-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/elogind-246.10-1-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '7bf79ff8159f5d90f36c8680f70bb4ad8b36276c0600e4aac664ce79b8808b6e',
armv7l: '7bf79ff8159f5d90f36c8680f70bb4ad8b36276c0600e4aac664ce79b8808b6e',
i686: '2a4c82de76b21a2fd0ea1e2b53c96ea5e90650d012fe5509e48f837258771648',
x86_64: 'a12c145e41d5f8691731bf29a3d832f7974fea3e887677b649dbc43ea5888a9a'
})
depends_on 'eudev' depends_on 'eudev'
depends_on 'libcap' depends_on 'libcap'
depends_on 'libseccomp'
depends_on 'linux_pam' # For _pam_macros.h depends_on 'linux_pam' # For _pam_macros.h
depends_on 'dbus' depends_on 'dbus'
depends_on 'docbook_xsl' depends_on 'docbook_xsl'
...@@ -18,22 +31,28 @@ class Elogind < Package ...@@ -18,22 +31,28 @@ class Elogind < Package
depends_on 'libxslt' depends_on 'libxslt'
depends_on 'shadow' depends_on 'shadow'
depends_on 'glib' depends_on 'glib'
depends_on 'polkit'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_LTO_OPTIONS} \
-Drootprefix=#{CREW_PREFIX} \ -Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
--strip \ -Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcgroup-controller=elogind \ -Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dman=false \ -Dcpp_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Ddefault-hierarchy=legacy \ -Drootprefix=#{CREW_PREFIX} \
-Ddefault-kill-user-processes=false \ -Dsysconfdir=#{CREW_PREFIX}/etc \
-Dhalt-path=/sbin/halt \ --strip \
-Drootlibdir=#{CREW_PREFIX}/#{ARCH_LIB} \ -Dcgroup-controller=elogind \
-Drootlibexecdir=#{CREW_PREFIX}/libexec/elogind \ -Dman=true \
-Drootbindir=#{CREW_PREFIX}/bin \ -Ddefault-hierarchy=legacy \
-Dreboot-path=/sbin/reboot \ -Ddefault-kill-user-processes=false \
builddir" -Dhalt-path=/sbin/halt \
system "ninja -C builddir" -Drootlibdir=#{CREW_PREFIX}/#{ARCH_LIB} \
-Drootlibexecdir=#{CREW_PREFIX}/libexec/elogind \
-Drootbindir=#{CREW_PREFIX}/bin \
-Dreboot-path=/sbin/reboot \
builddir"
system 'ninja -C builddir'
end end
def self.install def self.install
......
...@@ -3,30 +3,32 @@ require 'package' ...@@ -3,30 +3,32 @@ require 'package'
class Fftw < Package class Fftw < Package
description 'FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data' description 'FFTW is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data'
homepage 'http://www.fftw.org/' homepage 'http://www.fftw.org/'
version '3.3.8' @_ver = '3.3.9'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'http://www.fftw.org/fftw-3.3.8.tar.gz' source_url "http://www.fftw.org/fftw-#{@_ver}.tar.gz"
source_sha256 '6113262f6e92c5bd474f2875fa1b01054c4ad5040f6b0da7c03c98821d9ae303' source_sha256 'bf2c7ce40b04ae811af714deb512510cc2c17b9ab9d6ddcf49fe4487eea7af3d'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/fftw-3.3.8-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/fftw-3.3.9-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/fftw-3.3.8-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/fftw-3.3.9-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/fftw-3.3.8-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/fftw-3.3.9-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/fftw-3.3.8-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/fftw-3.3.9-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'f3e94c3a07e8966eafe02daa3673de462bab1fbbb0f1aefcc844ffbc53c84307', aarch64: '6c5328195b9c1fccaa1ed40c642706d4681bc7cf77429cefcab3b44280db1428',
armv7l: 'f3e94c3a07e8966eafe02daa3673de462bab1fbbb0f1aefcc844ffbc53c84307', armv7l: '6c5328195b9c1fccaa1ed40c642706d4681bc7cf77429cefcab3b44280db1428',
i686: '03800193d0be4a716331a27a948022d0a6ac94183a6b2fe0a988f5d94e3e8ff9', i686: 'dab931ee59bb137e8a8f644670cc3d645a59cc2ca765b055aa35a8dc51a52344',
x86_64: '47c9b73133cf16339ab6c229ba74ec73155f0fc1bf01bfd0e4e2c6ac7c46f78e', x86_64: '095ec26abe2d9ede1c9c3016850b5e5be43706a102a184de26f93928014e7740'
}) })
def self.build def self.build
system './configure', system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--enable-shared=yes', CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--disable-maintainer-mode', LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--prefix=#{CREW_PREFIX}", ./configure #{CREW_OPTIONS} \
"--libdir=#{CREW_LIB_PREFIX}" --enable-shared=yes \
--disable-maintainer-mode"
system 'make' system 'make'
end end
......
...@@ -4,22 +4,22 @@ class Flatpak < Package ...@@ -4,22 +4,22 @@ class Flatpak < Package
description 'Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux.' description 'Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux.'
homepage 'https://flatpak.org' homepage 'https://flatpak.org'
@_ver = '1.10.1' @_ver = '1.10.1'
version @_ver version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url "https://github.com/flatpak/flatpak/releases/download/#{@_ver}/flatpak-#{@_ver}.tar.xz" source_url "https://github.com/flatpak/flatpak/releases/download/#{@_ver}/flatpak-#{@_ver}.tar.xz"
source_sha256 'c70215792b7cbece83c489dab86adc9bfaf9b140c506affe2a48c92afa3d69b7' source_sha256 'c1354f42bf3b5d51aeb4028c9b62fd4ffc673ef2ff6e583c17777f5dafdbdcb7'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/flatpak-1.10.1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/flatpak-1.10.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/flatpak-1.10.1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/flatpak-1.10.1-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/flatpak-1.10.1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/flatpak-1.10.1-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/flatpak-1.10.1-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/flatpak-1.10.1-1-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: '6927a9717a15f4d52e1b2316e159a2f43026431bc91a68627bc6fce5f9634b31', aarch64: '83e2e39dc010f7c028f7bbc882c5c00284b1be854aeeba1bd5a2dcd35753a2ca',
armv7l: '6927a9717a15f4d52e1b2316e159a2f43026431bc91a68627bc6fce5f9634b31', armv7l: '83e2e39dc010f7c028f7bbc882c5c00284b1be854aeeba1bd5a2dcd35753a2ca',
i686: '56abe90a29219a9937b2939a71b4413d90198d7eabc1cb802b3fc6a759a93335', i686: 'e727e2e071eecd24664d3f8ff0e605c503be6caccbe90b24b4245fda9824e528',
x86_64: '588c3a2c502e0cc6088b4d17e3b133103fdeb0dc653bad0bef79674709b7bf22' x86_64: '1827d8327cc2986bb1928dfe9de2f74e05d7149b6ebe86c04ca27cf0264ad993'
}) })
depends_on 'xdg_base' depends_on 'xdg_base'
...@@ -43,12 +43,25 @@ class Flatpak < Package ...@@ -43,12 +43,25 @@ class Flatpak < Package
Digest::SHA256.hexdigest(File.read(patch_filename)) == patch_sha256 Digest::SHA256.hexdigest(File.read(patch_filename)) == patch_sha256
puts 'patch downloaded'.lightgreen puts 'patch downloaded'.lightgreen
system 'patch -p 1 --forward < patch || true' system 'patch -p 1 --forward < patch || true'
# Source has libglnx repo as submodule
@git_dir = 'libglnx'
@git_hash = '4c9055ac08bb64dca146724f488cce4c1ce4c628'
@git_url = 'https://gitlab.gnome.org/GNOME/libglnx.git'
FileUtils.rm_rf(@git_dir)
FileUtils.mkdir_p(@git_dir)
Dir.chdir @git_dir do
system 'git init'
system "git remote add origin #{@git_url}"
system "git fetch --depth 1 origin #{@git_hash}"
system 'git checkout FETCH_HEAD'
end
end end
def self.build def self.build
system 'env NOCONFIGURE=1 ./autogen.sh' system 'env NOCONFIGURE=1 ./autogen.sh'
system 'filefix' system 'filefix'
system "env BWRAP=#{CREW_PREFIX}/bin/bwrap CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \ system "env BWRAP=#{CREW_PREFIX}/bin/bwrap CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \ ./configure #{CREW_OPTIONS} \
--with-system-install-dir=#{CREW_PREFIX}/var/lib/flatpak \ --with-system-install-dir=#{CREW_PREFIX}/var/lib/flatpak \
--enable-sandboxed-triggers \ --enable-sandboxed-triggers \
...@@ -89,6 +102,9 @@ class Flatpak < Package ...@@ -89,6 +102,9 @@ class Flatpak < Package
#{CREW_PREFIX}/bin/flatpak.elf \$FLATPAK_FLAGS "\$@" #{CREW_PREFIX}/bin/flatpak.elf \$FLATPAK_FLAGS "\$@"
FLATPAK_HEREDOC FLATPAK_HEREDOC
IO.write("#{CREW_DEST_PREFIX}/bin/flatpak", @flatpak_sh, perm: 0o755) IO.write("#{CREW_DEST_PREFIX}/bin/flatpak", @flatpak_sh, perm: 0o755)
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/dbus-1/system.d"
FileUtils.mv "#{CREW_DEST_PREFIX}/etc/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf",
"#{CREW_DEST_PREFIX}/share/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf"
end end
def self.postinstall def self.postinstall
......
require 'package' require 'package'
class Gcalculator < Package class Gcalculator < Package
description 'Calculator for solving mathematical equations' description 'GNOME desktop calculator'
homepage 'https://gitlab.gnome.org/GNOME/gnome-calculator' homepage 'https://wiki.gnome.org/Apps/Calculator'
version '3.38.1'
compatibility 'all' compatibility 'all'
source_url 'https://gitlab.gnome.org/GNOME/gnome-calculator/-/archive/3.38.1/gnome-calculator-3.38.1.tar.bz2' @_app = 'gnome-calculator'
source_sha256 '33706fe3ade10b58e39c008f005a5bcca1b59239047b8c8f3ed595d0b7bd6894' @_fullver = '3.38.2'
@_mainver = @_fullver.rpartition('.')[0]
binary_url ({ @_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gcalculator-3.38.1-chromeos-armv7l.tar.xz', version @_fullver
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gcalculator-3.38.1-chromeos-armv7l.tar.xz', source_url "#{@_url}.tar.xz"
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gcalculator-3.38.1-chromeos-i686.tar.xz', source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gcalculator-3.38.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '1ab4852cb55661918bc646bf6b1ca1ecf153c3fcc78d46cf13b1e7bc830ee69d',
armv7l: '1ab4852cb55661918bc646bf6b1ca1ecf153c3fcc78d46cf13b1e7bc830ee69d',
i686: '0eb813d120d974365d2910e9a21bee9bdb6e533b0d21e26510b40cbe09d3c4ca',
x86_64: '8b1478a211443794b6aba531b30ff9359080cb580e5214d27d8df97beac3c0ec',
})
depends_on 'setuptools' => :build depends_on 'setuptools' => :build
depends_on 'gtk3'
depends_on 'gtksourceview' depends_on 'gtksourceview'
depends_on 'itstool' depends_on 'itstool'
depends_on 'libgee' depends_on 'libgee'
depends_on 'libsoup' depends_on 'libsoup'
depends_on 'sommelier'
def self.build def self.build
system "meson --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} builddir" system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
end end
def self.install def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
@_wrapper = <<~EOF
#!/bin/sh
WAYLAND_DISPLAY=wayland-0
GDK_BACKEND=wayland
CLUTTER_BACKEND=wayland
exec #{@_app}.elf "$@"
EOF
File.write(@_app, @_wrapper)
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end end
def self.postinstall def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas" system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
puts puts
puts "To use the gui calculator, execute 'gnome-calculator'".lightblue puts "To use the graphical calculator, execute 'gnome-calculator'".lightblue
puts puts
puts "To use the cli calculator, execute 'gcalccmd'".lightblue puts "To use the command line calculator, execute 'gcalccmd'".lightblue
puts puts
end end
end end
...@@ -3,22 +3,23 @@ require 'package' ...@@ -3,22 +3,23 @@ require 'package'
class Geoclue < Package class Geoclue < Package
description 'Modular geoinformation service built on the D-Bus messaging system' description 'Modular geoinformation service built on the D-Bus messaging system'
homepage 'https://www.freedesktop.org/wiki/Software/GeoClue/' homepage 'https://www.freedesktop.org/wiki/Software/GeoClue/'
version '2.5.7' @_ver = '2.5.7'
version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url 'https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/2.5.7/geoclue-2.5.7.tar.bz2' source_url "https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/#{@_ver}/geoclue-#{@_ver}.tar.bz2"
source_sha256 '6cc7dbe4177b4e7f3532f7fe42262049789a3cd6c55afe60a3564d7394119c27' source_sha256 '6cc7dbe4177b4e7f3532f7fe42262049789a3cd6c55afe60a3564d7394119c27'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/geoclue-2.5.7-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/geoclue-2.5.7-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/geoclue-2.5.7-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/geoclue-2.5.7-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/geoclue-2.5.7-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/geoclue-2.5.7-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/geoclue-2.5.7-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/geoclue-2.5.7-1-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: 'ca4c050657f094f10ccf46f4cba13d309d0757830c4be084e8190d72e3ca8949', aarch64: '8208222a9240c0d90afaac07a4111ad27e5b02f9ea3ba55211278440f065dad2',
armv7l: 'ca4c050657f094f10ccf46f4cba13d309d0757830c4be084e8190d72e3ca8949', armv7l: '8208222a9240c0d90afaac07a4111ad27e5b02f9ea3ba55211278440f065dad2',
i686: 'cb9adf521670add9b3d4d0e4491daa10965ab2638f0b5da89ea81a8df0870688', i686: '17377ae86e1205882121acc6fd1beee159ff0a4d090b2081dfa6582d73248ba2',
x86_64: '85a1879573e68dea80192fade6cdd52934ea0b2c02c22e959ec3a88b029f144b' x86_64: '214403eb81cd51b173365be83577e79b3f30266941f54f8ceec7659565d3cba8'
}) })
depends_on 'libsoup' depends_on 'libsoup'
...@@ -33,9 +34,10 @@ class Geoclue < Package ...@@ -33,9 +34,10 @@ class Geoclue < Package
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dsystemd=disabled \ -Dsystemd=disabled \
-D3g-source=false \ -Ddbus-sys-dir=#{CREW_PREFIX}/share/dbus-1 \
-D3g-source=true \
-Dcdma-source=false \ -Dcdma-source=false \
-Dmodem-gps-source=false \ -Dmodem-gps-source=true \
builddir" builddir"
system 'meson configure builddir' system 'meson configure builddir'
system 'ninja -C builddir' system 'ninja -C builddir'
......
...@@ -3,42 +3,37 @@ require 'package' ...@@ -3,42 +3,37 @@ require 'package'
class Gexiv2 < Package class Gexiv2 < Package
description 'gexiv2 is a GObject wrapper around the Exiv2 photo metadata library.' description 'gexiv2 is a GObject wrapper around the Exiv2 photo metadata library.'
homepage 'https://wiki.gnome.org/Projects/gexiv2/' homepage 'https://wiki.gnome.org/Projects/gexiv2/'
version '0.10.8' @_ver = '0.12.2'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://download.gnome.org/sources/gexiv2/0.10/gexiv2-0.10.8.tar.xz' source_url "https://download.gnome.org/sources/gexiv2/#{@_ver_prelastdot}/gexiv2-#{@_ver}.tar.xz"
source_sha256 '81c528fd1e5e03577acd80fb77798223945f043fd1d4e06920c71202eea90801' source_sha256 '2322b552aca330eef79724a699c51a302345d5e074738578b398b7f2ff97944c'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gexiv2-0.10.8-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gexiv2-0.12.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gexiv2-0.10.8-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gexiv2-0.12.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gexiv2-0.10.8-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/gexiv2-0.12.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gexiv2-0.10.8-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gexiv2-0.12.2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '237da7c428e80aabb82fe529cc54d51912656c43356096b43e24e44a5a8784d2', aarch64: '305a56146c461035262b294710aacb8e5401d2bcee8e1828661e35e78b5bf47e',
armv7l: '237da7c428e80aabb82fe529cc54d51912656c43356096b43e24e44a5a8784d2', armv7l: '305a56146c461035262b294710aacb8e5401d2bcee8e1828661e35e78b5bf47e',
i686: '4f74a753cfc4286e93d65f96e046661957f5b0bfef54732b20a8793f514d1fb8', i686: '278e97c62e7dbc3e8f68fffd8c7ac0802ddf07db1dd9f623ce309f598173db12',
x86_64: 'bda3197ee000806a1151f44587eb422b0afedc3b8b6b28c9def8ca490ff8db6a', x86_64: '81500e05e77186cad22c4e000af94395e760b502913920245015417fae5ba94c'
}) })
depends_on 'libexiv2' depends_on 'libexiv2'
depends_on 'gobject_introspection' depends_on 'gobject_introspection'
def self.build def self.build
system './configure', system "meson #{CREW_MESON_LTO_OPTIONS} \
"--prefix=#{CREW_PREFIX}", builddir"
"--libdir=#{CREW_LIB_PREFIX}", system 'meson configure builddir'
'--disable-maintainer-mode', system 'ninja -C builddir'
'--with-python2-girdir',
'--with-python3-girdir'
system 'make'
end
def self.check
# system "make check"
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
end end
...@@ -2,34 +2,47 @@ require 'package' ...@@ -2,34 +2,47 @@ require 'package'
class Git_lfs < Package class Git_lfs < Package
description 'Git extension for versioning large files' description 'Git extension for versioning large files'
homepage 'https://git-lfs.github.com/' homepage 'https://git-lfs.github.com'
version '2.2.1' @_ver = '2.13.2'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/git-lfs/git-lfs/archive/v2.2.1.tar.gz' source_url "https://github.com/git-lfs/git-lfs/releases/download/v#{@_ver}/git-lfs-v#{@_ver}.tar.gz"
source_sha256 'fede2b31b0539fd4a580f831867caac1b5d5dc4405e938c4ee0bfeacfb78ad7a' source_sha256 '782e6275df9ca370730945112e16a0b8c64b9819f0b61fae52ba1ebbc8dce2d5'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/git_lfs-2.2.1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/git_lfs-2.13.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/git_lfs-2.2.1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/git_lfs-2.13.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/git_lfs-2.2.1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/git_lfs-2.13.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/git_lfs-2.2.1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/git_lfs-2.13.2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '7b4b7371e813ca12a6c2261602c3e55f52d3b856869d65f2f7f20aa86762e130', aarch64: '28dd4fe263e71d34c1af024f7955e975a7baa239b25d8fed9982cce213248d5a',
armv7l: '7b4b7371e813ca12a6c2261602c3e55f52d3b856869d65f2f7f20aa86762e130', armv7l: '28dd4fe263e71d34c1af024f7955e975a7baa239b25d8fed9982cce213248d5a',
i686: '67fac00c8c74a5e7bd756b387275b9d33200de3e36474c5b29e91400745caad6', i686: 'df546bc44ec2978165ffa8c0b31bad8504df93e86e52aac58288df707692a4af',
x86_64: '10a0ed5b9ec97692c89314d2fbfb38e173e23414d6724464b71a310db11c18be', x86_64: '6078b2db1ac18189f96da4aa5cd9ddd78db5575e89080e85824a08b2dc21e958'
}) })
depends_on 'go' depends_on 'go' => ':build'
depends_on 'go_tools' => ':build'
def self.build def self.build
ENV['TMPDIR'] = "#{CREW_PREFIX}/tmp" system 'gem install -N ronn'
system 'script/bootstrap' system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CGO_CPPFLAGS=${CXXFLAGS} \
CGO_CFLAGS=${CFLAGS} \
CGO_CXXFLAGS=${CXXFLAGS} \
CGO_LDFLAGS=${LDFLAGS} \
GOFLAGS='-buildmode=pie -trimpath -mod=vendor -modcacherw -ldflags=-linkmode=external' \
go generate ./commands && go build ."
system 'make man'
system 'gem uninstall --ignore-dependencies ronn'
end end
def self.install def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin" system "install -Dm755 git-lfs #{CREW_DEST_PREFIX}/bin/git-lfs"
system "cp -r bin/ #{CREW_DEST_PREFIX}" system "install -Dm644 -t #{CREW_DEST_MAN_PREFIX}/man1 man/*.1"
system "install -Dm644 -t #{CREW_DEST_MAN_PREFIX}/man5 man/*.5"
end end
end end
...@@ -3,22 +3,24 @@ require 'package' ...@@ -3,22 +3,24 @@ require 'package'
class Glib < Package class Glib < Package
description 'GLib provides the core application building blocks for libraries and applications written in C.' description 'GLib provides the core application building blocks for libraries and applications written in C.'
homepage 'https://developer.gnome.org/glib' homepage 'https://developer.gnome.org/glib'
version '2.67.4' @_ver = '2.67.5'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://download.gnome.org/sources/glib/2.67/glib-2.67.4.tar.xz' source_url "https://download.gnome.org/sources/glib/#{@_ver_prelastdot}/glib-#{@_ver}.tar.xz"
source_sha256 '8d87b962032dadfcae8df62d248aa91fed2c7a43faf2c6d8b9107eb6c50e5b14' source_sha256 '9d2ad4303ce25ae7cfde77409d8364508ac6072a868cfca2e78333c6cdfa05e6'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.67.4-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.67.5-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.67.4-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.67.5-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.67.4-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.67.5-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.67.4-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/glib-2.67.5-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: '7d15e68503124e82d4ad52755dda9ff290572c84d17fc7d56d6eebdb4e261ae3', aarch64: 'bde7d35943c70e260e52a3688ba88e114717e461bad41b5c90942f46205345c2',
armv7l: '7d15e68503124e82d4ad52755dda9ff290572c84d17fc7d56d6eebdb4e261ae3', armv7l: 'bde7d35943c70e260e52a3688ba88e114717e461bad41b5c90942f46205345c2',
i686: '8a23142aa67d25f96074715e3578c8e572277f2112b3825339dbf3d7ad740126', i686: '2ac0cb8ac4a6b92ff84a31f670b1d915b95137d797778ea962fa143dd1c9df81',
x86_64: 'b4e806b51a601a6fd68cad72e1b450059da5ec015fd5e227518c100f41fadae1' x86_64: '5e5ac89b2b53a90b34da77fe8b26dece4c30c4c772a6232eb229751307bf4cef'
}) })
depends_on 'pcre' depends_on 'pcre'
...@@ -27,210 +29,12 @@ class Glib < Package ...@@ -27,210 +29,12 @@ class Glib < Package
depends_on 'six' depends_on 'six'
depends_on 'pygments' depends_on 'pygments'
def self.patch
# Patch from:
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1958.patch
@gsubprocesslauncher_patch = <<~GLIB_PATCH_HEREDOC
From 1e74c52a6349c9c4f265b9b89fffc32730b9cd24 Mon Sep 17 00:00:00 2001
From: Philip Withnall <pwithnall@endlessos.org>
Date: Fri, 19 Feb 2021 18:19:53 +0000
Subject: [PATCH 1/3] gsubprocesslauncher: Improve documentation formatting
slightly
#{' '}
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
---
gio/gsubprocesslauncher.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
#{' '}
diff --git a/gio/gsubprocesslauncher.c b/gio/gsubprocesslauncher.c
index b7257f453..16c47d542 100644
--- a/gio/gsubprocesslauncher.c
+++ b/gio/gsubprocesslauncher.c
@@ -596,16 +596,16 @@ g_subprocess_launcher_take_stderr_fd (GSubprocessLauncher *self,
* @target_fd: Target descriptor for child process
*
* Transfer an arbitrary file descriptor from parent process to the
- * child. This function takes "ownership" of the fd; it will be closed
+ * child. This function takes ownership of the @source_fd; it will be closed
* in the parent when @self is freed.
*
* By default, all file descriptors from the parent will be closed.
- * This function allows you to create (for example) a custom pipe() or
- * socketpair() before launching the process, and choose the target
+ * This function allows you to create (for example) a custom `pipe()` or
+ * `socketpair()` before launching the process, and choose the target
* descriptor in the child.
*
* An example use case is GNUPG, which has a command line argument
- * --passphrase-fd providing a file descriptor number where it expects
+ * `--passphrase-fd` providing a file descriptor number where it expects
* the passphrase to be written.
*/
void
--#{' '}
GitLab
#{' '}
#{' '}
From 55a75590d0c7e703f32513cc409d6e20a7b761ea Mon Sep 17 00:00:00 2001
From: Philip Withnall <pwithnall@endlessos.org>
Date: Fri, 19 Feb 2021 18:20:25 +0000
Subject: [PATCH 2/3] =?UTF-8?q?gsubprocesslauncher:=20Don=E2=80=99t=20clos?=
=?UTF-8?q?e=20target=20FDs=20in=20close()=20method?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
#{' '}
This is a regression introduced in commit 67a589e505311. Previously, the
source/target FD pairs were stored in `needdup_fd_assignments`, in
consecutive entries, so source FDs had even indices and target FDs had
odd indices.
#{' '}
I didn’t notice that the array index was being incremented by 2 when
closing FDs, when porting from the old code. So previously the code was
only closing the source FDs; after the port, it was closing source and
target FDs.
#{' '}
That’s incorrect, as the target FDs are just integers in the parent
process. It’s only in the child process where they are actually FDs —
and `g_subprocess_launcher_close()` is never called in the child
process.
#{' '}
This resulted in some strange misbehaviours in any process which used
`g_subprocess_launcher_take_fd()` with target FDs which could have
possibly aliased with other FDs in the parent process (and which weren’t
equal to their mapped source FDs).
#{' '}
Thanks to Olivier Fourdan for the detailed bug report.
#{' '}
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
#{' '}
Fixes: #2332
---
gio/gsubprocesslauncher-private.h | 4 ++--
gio/gsubprocesslauncher.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
#{' '}
diff --git a/gio/gsubprocesslauncher-private.h b/gio/gsubprocesslauncher-private.h
index f8a6516c5..d6fe0d784 100644
--- a/gio/gsubprocesslauncher-private.h
+++ b/gio/gsubprocesslauncher-private.h
@@ -42,8 +42,8 @@ struct _GSubprocessLauncher
gint stderr_fd;
gchar *stderr_path;
#{' '}
- GArray *source_fds;
- GArray *target_fds; /* always the same length as source_fds */
+ GArray *source_fds; /* GSubprocessLauncher has ownership of the FD elements */
+ GArray *target_fds; /* always the same length as source_fds; elements are just integers and not FDs in this process */
gboolean closed_fd;
#{' '}
GSpawnChildSetupFunc child_setup_func;
diff --git a/gio/gsubprocesslauncher.c b/gio/gsubprocesslauncher.c
index 16c47d542..a1c65e947 100644
--- a/gio/gsubprocesslauncher.c
+++ b/gio/gsubprocesslauncher.c
@@ -661,11 +661,11 @@ g_subprocess_launcher_close (GSubprocessLauncher *self)
g_assert (self->target_fds != NULL);
g_assert (self->source_fds->len == self->target_fds->len);
#{' '}
+ /* Note: Don’t close the target_fds, as they’re only valid FDs in the
+ * child process. This code never executes in the child process. */
for (i = 0; i < self->source_fds->len; i++)
- {
- (void) close (g_array_index (self->source_fds, int, i));
- (void) close (g_array_index (self->target_fds, int, i));
- }
+ (void) close (g_array_index (self->source_fds, int, i));
+
g_clear_pointer (&self->source_fds, g_array_unref);
g_clear_pointer (&self->target_fds, g_array_unref);
}
--#{' '}
GitLab
#{' '}
#{' '}
From 50cf90dc562d10efa3288357202e8cc04571292c Mon Sep 17 00:00:00 2001
From: Philip Withnall <pwithnall@endlessos.org>
Date: Fri, 19 Feb 2021 18:09:42 +0000
Subject: [PATCH 3/3] =?UTF-8?q?tests:=20Test=20g=5Fsubprocess=5Flauncher?=
=?UTF-8?q?=5Fclose()=20doesn=E2=80=99t=20close=20too=20many=20FDs?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
#{' '}
Expand an existing unit test to check that the target FD of a
`g_subprocess_launcher_take_fd()` call doesn’t get closed when
`g_subprocess_launcher_close()` is called. Only the source FD should be
closed by the parent process.
#{' '}
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
#{' '}
Helps: #2332
---
gio/tests/gsubprocess.c | 27 ++++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
#{' '}
diff --git a/gio/tests/gsubprocess.c b/gio/tests/gsubprocess.c
index 3c248e610..7e22678ec 100644
--- a/gio/tests/gsubprocess.c
+++ b/gio/tests/gsubprocess.c
@@ -1494,23 +1494,44 @@ test_subprocess_launcher_close (void)
GSubprocessLauncher *launcher;
GSubprocess *proc;
GPtrArray *args;
- int fd;
+ int fd, fd2;
gboolean is_open;
#{' '}
- fd = dup(0);
+ /* Open two arbitrary FDs. One of them, @fd, will be transferred to the
+ * launcher, and the other’s FD integer will be used as its target FD, giving
+ * the mapping `fd → fd2` if a child process were to be spawned.
+ *
+ * The launcher will then be closed, which should close @fd but *not* @fd2,
+ * as the value of @fd2 is only valid as an FD in a child process. (A child
+ * process is not actually spawned in this test.)
+ */
+ fd = dup (0);
+ fd2 = dup (0);
launcher = g_subprocess_launcher_new (G_SUBPROCESS_FLAGS_NONE);
- g_subprocess_launcher_take_fd (launcher, fd, fd);
+ g_subprocess_launcher_take_fd (launcher, fd, fd2);
+
is_open = fcntl (fd, F_GETFD) != -1;
g_assert_true (is_open);
+ is_open = fcntl (fd2, F_GETFD) != -1;
+ g_assert_true (is_open);
+
g_subprocess_launcher_close (launcher);
+
is_open = fcntl (fd, F_GETFD) != -1;
g_assert_false (is_open);
+ is_open = fcntl (fd2, F_GETFD) != -1;
+ g_assert_true (is_open);
+
+ /* Now test that actually trying to spawn the child gives %G_IO_ERROR_CLOSED,
+ * as g_subprocess_launcher_close() has been called. */
args = get_test_subprocess_args ("cat", NULL);
proc = g_subprocess_launcher_spawnv (launcher, (const gchar * const *) args->pdata, error);
g_ptr_array_free (args, TRUE);
g_assert_null (proc);
g_assert_error (local_error, G_IO_ERROR, G_IO_ERROR_CLOSED);
g_clear_error (error);
+
+ close (fd2);
g_object_unref (launcher);
}
#{' '}
--#{' '}
GitLab
GLIB_PATCH_HEREDOC
IO.write('1958.patch', @gsubprocesslauncher_patch)
system 'patch -p1 < 1958.patch'
end
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Das_needed=false \ -Das_needed=false \
-Dselinux=disabled \ -Dselinux=disabled \
-Dsysprof=disabled \ -Dsysprof=disabled \
......
require 'package'
class Gnome_autoar < Package
description 'Automatic archives creating and extracting library'
homepage 'https://wiki.gnome.org/TingweiLan/GSoC2013Final'
@_ver = '0.3.0'
version @_ver
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/gnome-autoar/-/archive/#{@_ver}/gnome-autoar-#{@_ver}.tar.bz2"
source_sha256 '6cf0cd7ce7f3ba959d1501701fdb65eeb8c90f6b3a194456df59c3488bb44ef3'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_autoar-0.3.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_autoar-0.3.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_autoar-0.3.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_autoar-0.3.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '54fc0dafb5bba4b0adf454950630ac94cb32e2fad75eabf464db127cd87316ba',
armv7l: '54fc0dafb5bba4b0adf454950630ac94cb32e2fad75eabf464db127cd87316ba',
i686: '3473a340cea842e11769920aa126dca0176d387b4a1222759c4255f129f11556',
x86_64: '90bf2079ba631bebdcd3a27c2ba0229c47a3413359c9fa24aabf7fa3c39c1e82'
})
depends_on 'libarchive'
depends_on 'gtk3'
depends_on 'gobject_introspection' => ':build'
depends_on 'gtk_doc' => ':build'
depends_on 'vala' => ':build'
depends_on 'autoconf_archive' => ':build'
def self.build
system 'NOCONFIGURE=1 ./autogen.sh'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--enable-gtk-doc"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
require 'package'
class Gnome_klotski < Package
description 'A puzzle game for GNOME.'
homepage 'https://wiki.gnome.org/Apps/Klotski'
compatibility 'all'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '3.38.2'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
depends_on 'clutter_gtk'
depends_on 'gsound'
depends_on 'librsvg'
depends_on 'libgnome_games_support'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
@_wrapper = <<~EOF
#!/bin/sh
WAYLAND_DISPLAY=wayland-0
GDK_BACKEND=wayland
CLUTTER_BACKEND=wayland
exec #{@_app}.elf "$@"
EOF
File.write(@_app, @_wrapper)
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
end
end
require 'package'
class Gnome_mines < Package
description 'GNOME Mines (formerly known as Gnomine) is minesweeper clone for GNOME'
homepage 'https://wiki.gnome.org/Apps/Mines'
compatibility 'all'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '3.36.1'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
depends_on 'clutter_gtk'
depends_on 'gsound'
depends_on 'librsvg'
depends_on 'libgnome_games_support'
def self.build
system "env CFLAGS='-fuse-ld=lld' CXXFLAGS='-fuse-ld=lld' \
meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
@_wrapper = <<~EOF
#!/bin/sh
WAYLAND_DISPLAY=wayland-0
GDK_BACKEND=wayland
CLUTTER_BACKEND=wayland
exec #{@_app}.elf "$@"
EOF
File.write(@_app, @_wrapper)
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
end
end
require 'package'
class Gnome_nibbles < Package
description 'snake game, up to four players'
homepage 'https://wiki.gnome.org/Apps/Nibbles'
compatibility 'all'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '3.38.2'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
depends_on 'clutter_gtk'
depends_on 'gsound'
depends_on 'librsvg'
depends_on 'libgnome_games_support'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
@_wrapper = <<~EOF
#!/bin/sh
WAYLAND_DISPLAY=wayland-0
GDK_BACKEND=wayland
CLUTTER_BACKEND=wayland
exec #{@_app}.elf "$@"
EOF
File.write(@_app, @_wrapper)
FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
end
end
require 'package'
class Gnome_session < Package
description 'The GNOME Session Handler'
homepage 'https://gitlab.gnome.org/GNOME/gnome-session'
@_ver = '40.beta'
version @_ver
compatibility 'x86_64 aarch64 armv7l'
source_url "https://gitlab.gnome.org/GNOME/gnome-session/-/archive/#{@_ver}/gnome-session-#{@_ver}.tar.bz2"
source_sha256 '0dd8c38c29568db6ffbd2a788f12b9e93262296ffd6d4c40fc2a830099d46883'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_session-40.beta-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_session-40.beta-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_session-40.beta-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '9bdad789a49f45e3574f829455a1d89d71b1cddbfe8d0cb7c6868b892ad5ae98',
armv7l: '9bdad789a49f45e3574f829455a1d89d71b1cddbfe8d0cb7c6868b892ad5ae98',
x86_64: 'b2a8ebdb421823febd16ed797e73fe26c33e53d407db2665af166b96015a0f74'
})
depends_on 'elogind'
depends_on 'dconf'
depends_on 'gsettings_desktop_schemas'
depends_on 'gtk3'
depends_on 'gnome_desktop'
depends_on 'mesa' => ':build'
depends_on 'gtk_doc' => ':build'
depends_on 'libxtrans' => ':build'
depends_on 'xmlto' => ':build'
depends_on 'docbook_xsl' => ':build'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS}\
-Dsystemd=false \
-Dsystemd_session=disable \
-Dsystemd_journal=false \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
require 'package'
class Gnome_settings_daemon < Package
description 'GNOME Settings Daemon'
homepage 'https://gitlab.gnome.org/GNOME/gnome-settings-daemon'
version '40.beta'
compatibility 'all'
source_url 'https://download.gnome.org/core/40/40.beta/sources/gnome-settings-daemon-40.beta.tar.xz'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_settings_daemon-40.beta-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_settings_daemon-40.beta-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_settings_daemon-40.beta-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_settings_daemon-40.beta-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '089b400c60fa5649fbccf332972501766a7f79085ca20c952aeb5319644defe0',
armv7l: '089b400c60fa5649fbccf332972501766a7f79085ca20c952aeb5319644defe0',
i686: '65a330c824166575f3190da5f651945cdc37eb9c6e9a86e75fe00fad599708c8',
x86_64: '74cd5aab21d63c98297acb71cdf967659a876a221f12cd3d627b62f5672a1aa7'
})
depends_on 'dconf'
depends_on 'gnome_desktop'
depends_on 'gsettings_desktop_schemas'
depends_on 'libcanberra'
depends_on 'libnotify'
depends_on 'libxslt' => ':build'
depends_on 'docbook_xsl' => ':build'
depends_on 'geocode_glib'
depends_on 'polkit'
depends_on 'upower'
depends_on 'libgweather'
depends_on 'elogind'
depends_on 'geoclue'
depends_on 'gcr'
def self.patch
# Source has libgnome-volume-control repo as submodule
@git_dir = 'subprojects/gvc'
@git_hash = '7a621180b46421e356b33972e3446775a504139c'
@git_url = 'https://gitlab.gnome.org/GNOME/libgnome-volume-control.git'
FileUtils.rm_rf(@git_dir)
FileUtils.mkdir_p(@git_dir)
Dir.chdir @git_dir do
system 'git init'
system "git remote add origin #{@git_url}"
system "git fetch --depth 1 origin #{@git_hash}"
system 'git checkout FETCH_HEAD'
end
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dsystemd=false \
-Dcolord=false \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
require 'package'
class Gnome_shell < Package
description 'Next generation desktop shell'
homepage 'https://wiki.gnome.org/Projects/GnomeShell'
version '40.beta'
compatibility 'x86_64 aarch64 armv7l'
source_url "https://github.com/GNOME/gnome-shell/archive/#{version}.tar.gz"
source_sha256 'fd929eba43ca52c1f620460be02de0c116ea7ba792e504329eb85c83e5800ada'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_shell-40.beta-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_shell-40.beta-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_shell-40.beta-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'c033e58da3bd7f34d3bdb49dea3254aa18a5bd9093ed6c516e23c413aac58ac9',
armv7l: 'c033e58da3bd7f34d3bdb49dea3254aa18a5bd9093ed6c516e23c413aac58ac9',
x86_64: '3bffb1ccc2ca22a72c37599ece8b61c01f75fc7e3157d1e7c0ef2e7a2f47dd88'
})
depends_on 'gcr'
depends_on 'gjs'
depends_on 'ibus'
depends_on 'mutter'
depends_on 'sassc'
depends_on 'asciidoc'
depends_on 'startup_notification'
depends_on 'gnome_autoar'
depends_on 'upower'
depends_on 'gnome_session'
depends_on 'gtk_doc' => ':build'
depends_on 'evolution_data_server' => ':build'
depends_on 'gobject_introspection' => ':build'
def self.patch
# Source has libgnome-volume-control repo as submodule
@git_dir = 'subprojects/gvc'
@git_hash = '7a621180b46421e356b33972e3446775a504139c'
@git_url = 'https://gitlab.gnome.org/GNOME/libgnome-volume-control.git'
FileUtils.rm_rf(@git_dir)
FileUtils.mkdir_p(@git_dir)
Dir.chdir @git_dir do
system 'git init'
system "git remote add origin #{@git_url}"
system "git fetch --depth 1 origin #{@git_hash}"
system 'git checkout FETCH_HEAD'
end
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dgtk_doc=true \
-Dsystemd=false \
-Dnetworkmanager=false \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
require 'package'
class Gnome_sudoku < Package
description 'Sudoku puzzle game for GNOME'
homepage 'https://wiki.gnome.org/Apps/Sudoku'
compatibility 'all'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '3.38.0'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
depends_on 'clutter_gtk'
depends_on 'gsound'
depends_on 'librsvg'
depends_on 'qqwing'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
# comment due to the display bug in wayland mode, may fixed in next build
#
#@_wrapper = <<~EOF
# #!/bin/sh
# WAYLAND_DISPLAY=wayland-0
# GDK_BACKEND=wayland
# CLUTTER_BACKEND=wayland
# exec #{@_app}.elf "$@"
#EOF
#File.write(@_app, @_wrapper)
#FileUtils.mv "#{CREW_DEST_PREFIX}/bin/#{@_app}", "#{CREW_DEST_PREFIX}/bin/#{@_app}.elf"
#FileUtils.install @_app, "#{CREW_DEST_PREFIX}/bin/#{@_app}", mode: 0755
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
end
end
require 'package'
class Gnome_tweaks < Package
description 'Graphical interface for advanced GNOME 3 settings Tweak Tool'
@_ver = '40.beta'
version @_ver
compatibility 'x86_64 aarch64 armv7l'
source_url "https://gitlab.gnome.org/GNOME/gnome-tweaks/-/archive/#{@_ver}/gnome-tweaks-#{@_ver}.tar.bz2"
source_sha256 'b274a4a9bf93405bd487f5a2bb93fc15bfe0312b21dbebfe5088b8d477d63416'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_tweaks-40.beta-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_tweaks-40.beta-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gnome_tweaks-40.beta-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'fb04b6ae9e7bc37672bd78e1c4776d98d4b0e9dce170d0c68efbb06cc779b684',
armv7l: 'fb04b6ae9e7bc37672bd78e1c4776d98d4b0e9dce170d0c68efbb06cc779b684',
x86_64: 'b6088a18bd9568a8b6c6a6f983e85e3e8df5efc084283035eff6b6d5cbbe2f28'
})
depends_on 'gnome_settings_daemon'
depends_on 'gsettings_desktop_schemas'
depends_on 'pygobject'
depends_on 'libhandy'
depends_on 'libnotify'
def self.build
system "meson setup #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
...@@ -28,7 +28,7 @@ class Gnome_weather < Package ...@@ -28,7 +28,7 @@ class Gnome_weather < Package
depends_on 'gnome_desktop' depends_on 'gnome_desktop'
depends_on 'gobject_introspection' => ':build' depends_on 'gobject_introspection' => ':build'
depends_on 'appstream_glib' => ':build' depends_on 'appstream_glib' => ':build'
depends_on 'libhandy1' depends_on 'libhandy'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_LTO_OPTIONS} \
......
...@@ -3,58 +3,79 @@ require 'package' ...@@ -3,58 +3,79 @@ require 'package'
class Go < Package class Go < Package
description 'Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.' description 'Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.'
homepage 'https://golang.org/' homepage 'https://golang.org/'
version '1.15.5' @_ver = '1.16'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://dl.google.com/go/go1.15.5.src.tar.gz' source_url "https://dl.google.com/go/go#{@_ver}.src.tar.gz"
source_sha256 'c1076b90cf94b73ebed62a81d802cd84d43d02dea8c07abdc922c57a071c84f1' source_sha256 '7688063d55656105898f323d90a79a39c378d86fe89ae192eb3b7fc46347c95a'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/go-1.15.5-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/go-1.16-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/go-1.15.5-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/go-1.16-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/go-1.15.5-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/go-1.16-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/go-1.15.5-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/go-1.16-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '272f22f883fc7215ae6d5fb5edfa77b0d7b569fe4505ca7d7cf02ad0b594ebeb', aarch64: '5c8a7c1dba8d2d58cf474e6d0dfbe0d327268b3795fa6d59c84cf7e578c890e5',
armv7l: '272f22f883fc7215ae6d5fb5edfa77b0d7b569fe4505ca7d7cf02ad0b594ebeb', armv7l: '5c8a7c1dba8d2d58cf474e6d0dfbe0d327268b3795fa6d59c84cf7e578c890e5',
i686: 'd93951d4ba4c9dc07ed89db5eaa7f62b9e60d70c49712c5cc24a8debe28fb66c', i686: 'c1e8ef3998c06c069e49703af7f8c8bc719dcbd3c488322d9b3c3db765ee4dc8',
x86_64: '228376a806cec3c5ddc6e4276fabfcd1bc002d57f84dd2124d49bf2c0907ddfa', x86_64: '163773e1e201b0829189724b6781c6aa8e78eccf2041aa3cb09f07d7bc44e777'
}) })
@env ||= ''
# Tests require perl # Tests require perl
depends_on 'perl' => :build
# go is required to build versions of go > 1.4 # go is required to build versions of go > 1.4
unless File.exist? "#{CREW_PREFIX}/share/go/bin/go" case ARCH
depends_on 'go_bootstrap' => :build when 'x86_64'
@go_bootstrap_url = "https://golang.org/dl/go#{@_ver}.linux-amd64.tar.gz"
when 'i686'
@go_bootstrap_url = "https://golang.org/dl/go#{@_ver}.linux-386.tar.gz"
when 'aarch64', 'armv7l'
unless File.exist? "#{CREW_PREFIX}/share/go/bin/go"
depends_on 'go_bootstrap' => :build
@env += " PATH=$PATH:#{CREW_PREFIX}/share/go_bootstrap/go/bin"
end
end end
def self.build def self.build
FileUtils.cd 'src' do # Binaries not available for armv7l, so build those.
ENV['GOROOT'] = '..' case ARCH
ENV['TMPDIR'] = "#{CREW_PREFIX}/tmp" when 'aarch64', 'armv7l'
ENV['GOROOT_FINAL'] = "#{CREW_PREFIX}/share/go" FileUtils.cd 'src' do
ENV['GOHOSTARCH'] = 'arm' if ARCH == 'aarch64' @env += "GOROOT='..'"
# install with go_bootstrap if go is not in the path @env += " TMPDIR=#{CREW_PREFIX}/tmp"
unless File.exist? "#{CREW_PREFIX}/share/go/bin/go" @env += " GOROOT_FINAL=#{CREW_PREFIX}/share/go"
ENV['GOROOT_BOOTSTRAP'] = "#{CREW_PREFIX}/share/go_bootstrap/go" @env += ' GOHOSTARCH=arm' if ARCH == 'aarch64'
ENV['PATH'] = ENV['PATH'] + ":#{CREW_PREFIX}/share/go_bootstrap/go/bin" # install with go_bootstrap if go is not in the path
else if File.exist? "#{CREW_PREFIX}/share/go/bin/go"
ENV['GOROOT_BOOTSTRAP'] = "#{CREW_PREFIX}/share/go" @env += " GOROOT_BOOTSTRAP=#{CREW_PREFIX}/share/go"
else
@env += " GOROOT_BOOTSTRAP=#{CREW_PREFIX}/share/go_bootstrap/go"
@env += " PATH=$PATH:#{CREW_PREFIX}/share/go_bootstrap/go/bin"
end
system "env #{@env} ./make.bash"
end end
system './make.bash'
end end
end end
def self.check def self.check
FileUtils.cd 'src' do case ARCH
system "PATH=\"#{Dir.pwd}/../bin:$PATH\" GOROOT=\"#{Dir.pwd}/..\" TMPDIR=\"#{CREW_PREFIX}/tmp\" go tool dist test" when 'aarch64', 'armv7l'
Dir.chdir 'src' do
system "PATH=\"#{Dir.pwd}/../bin:$PATH\" GOROOT=\"#{Dir.pwd}/..\" TMPDIR=\"#{CREW_PREFIX}/tmp\" go tool dist test"
end
end end
end end
def self.install def self.install
dest = "#{CREW_DEST_PREFIX}/share/" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share"
FileUtils.mkdir_p dest case ARCH
FileUtils.cp_r Dir.pwd, dest when 'i686', 'x86_64'
system "curl -Ls #{@go_bootstrap_url} | tar -C #{CREW_DEST_PREFIX}/share/ -zxf -"
when 'aarch64', 'armv7l'
FileUtils.cp_r Dir.pwd, "#{CREW_DEST_PREFIX}/share/"
end
# make a symbolic link for #{CREW_PREFIX}/bin/{go,gofmt} # make a symbolic link for #{CREW_PREFIX}/bin/{go,gofmt}
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
...@@ -66,13 +87,13 @@ class Go < Package ...@@ -66,13 +87,13 @@ class Go < Package
puts puts
puts "Installed Go for #{ARCH} in #{CREW_PREFIX}/share/go".lightblue puts "Installed Go for #{ARCH} in #{CREW_PREFIX}/share/go".lightblue
puts puts
puts "To use `go run`, execute the following:".lightblue puts 'To use `go run`, execute the following:'.lightblue
puts "export TMPDIR=#{CREW_PREFIX}/tmp".lightblue puts "export TMPDIR=#{CREW_PREFIX}/tmp".lightblue
puts puts
puts "To develop with `go`, execute the following:".lightblue puts 'To develop with `go`, execute the following:'.lightblue
puts "mkdir -p #{CREW_PREFIX}/work/go".lightblue puts "mkdir -p #{CREW_PREFIX}/work/go".lightblue
puts "ln -s #{CREW_PREFIX}/work/go $HOME/go".lightblue puts "ln -s #{CREW_PREFIX}/work/go $HOME/go".lightblue
puts "export PATH=\"$HOME/go/bin:$PATH\"".lightblue puts 'export PATH="$HOME/go/bin:$PATH"'.lightblue
puts "export TMPDIR=#{CREW_PREFIX}/tmp".lightblue puts "export TMPDIR=#{CREW_PREFIX}/tmp".lightblue
puts puts
end end
......
require 'package'
class Go_tools < Package
description 'Developer tools for the Go programming language'
homepage 'https://github.com/golang/tools'
@_ver = '0.6.6'
version @_ver
compatibility 'all'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/go_tools-0.6.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/go_tools-0.6.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/go_tools-0.6.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/go_tools-0.6.6-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '5c938388e815f2d03343301f391640a1cbc11fac3b31e20fc74b77c0963723df',
armv7l: '5c938388e815f2d03343301f391640a1cbc11fac3b31e20fc74b77c0963723df',
i686: '02e41321fa7030598a80a396887289027889ad08784bf04c68f38196f33f02ec',
x86_64: '61c25f3eae11e32d625f917f8d853e134a24581a555b5edd47e76fcef96f565d'
})
depends_on 'go' => ':build'
def self.install
@git_dir = 'go_tools_git'
@git_hash = "gopls/v#{@_ver}"
@git_url = 'https://github.com/golang/tools/'
FileUtils.rm_rf(@git_dir)
FileUtils.mkdir_p(@git_dir)
Dir.chdir @git_dir do
system 'git init'
system "git remote add origin #{@git_url}"
system "git fetch --depth 1 origin #{@git_hash}"
system 'git checkout FETCH_HEAD'
system "GOBIN=#{CREW_DEST_PREFIX}/bin go install ./cmd..."
end
end
end
require 'package'
class Gpm < Package
description 'A mouse server for the console and xterm'
homepage 'https://www.nico.schottelius.org/software/gpm/'
version '1.20.7-e82d'
compatibility 'all'
source_url 'https://github.com/telmich/gpm/archive/e82d1a653ca94aa4ed12441424da6ce780b1e530.zip'
source_sha256 'd3a693fde3eb1176fdcbee78768f18115e0b634c4ce29a3c3ccc953ba20e10bf'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gpm-1.20.7-e82d-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gpm-1.20.7-e82d-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gpm-1.20.7-e82d-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gpm-1.20.7-e82d-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '4a14aada6427aa44ca96c59b24efc36352e44b67037a3cc44b14a43c529d128a',
armv7l: '4a14aada6427aa44ca96c59b24efc36352e44b67037a3cc44b14a43c529d128a',
i686: 'dd67b22232f2376f7eb343cf3c6adc31f037e152b6b946e9def7803706224f1d',
x86_64: 'deddcca380cff6e26b34eb93ff6902d50fc6107f35e5fc21022a8ee4ef7c5bde'
})
depends_on 'procps'
def self.build
system './autogen.sh'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--sysconfdir=#{CREW_PREFIX}/etc \
--sbindir=#{CREW_PREFIX}/bin"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/systemd/system"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/profile.d"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/profile.d"
# via https://github.com/archlinux/svntogit-packages/tree/master/gpm/trunk
@gpm_path = <<~'GPM_PATH_EOF'
[Unit]
Description=Virtual console mouse server
[Path]
PathExists=/dev/input/mice
GPM_PATH_EOF
IO.write("#{CREW_DEST_PREFIX}/systemd/system/gpm.path", @gpm_path)
FileUtils.chmod 0o644, "#{CREW_DEST_PREFIX}/systemd/system/gpm.path"
@gpm_service = <<~GPM_SERVICE_EOF
[Unit]
Description=Virtual console mouse server
Requires=systemd-udevd.service
After=systemd-udevd.service
Wants=gpm.path
ConditionPathExists=/dev/input/mice
[Service]
Type=forking
ExecStart=#{CREW_PREFIX}/bin/gpm -m /dev/input/mice -t imps2
[Install]
WantedBy=multi-user.target
GPM_SERVICE_EOF
IO.write("#{CREW_DEST_PREFIX}/systemd/system/gpm.service", @gpm_service)
FileUtils.chmod 0o644, "#{CREW_DEST_PREFIX}/systemd/system/gpm.service"
Dir.chdir CREW_DEST_LIB_PREFIX do
system 'ln -sfr libgpm.so.2.* libgpm.so'
end
FileUtils.chmod 0o755, Dir.glob("#{CREW_DEST_LIB_PREFIX}/libgpm.so.*")
end
end
...@@ -3,44 +3,45 @@ require 'package' ...@@ -3,44 +3,45 @@ require 'package'
class Graphviz < Package class Graphviz < Package
description 'Graphviz is open source graph visualization software.' description 'Graphviz is open source graph visualization software.'
homepage 'https://www.graphviz.org/' homepage 'https://www.graphviz.org/'
version '2.44.1' @_ver = '2.46.1'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://gitlab.com/graphviz/graphviz/-/archive/2.44.1/graphviz-2.44.1.tar.bz2' source_url "https://gitlab.com/graphviz/graphviz/-/archive/#{@_ver}/graphviz-#{@_ver}.tar.bz2"
source_sha256 '0f8f3fbeaddd474e0a270dc9bb0e247a1ae4284ae35125af4adceffae5c7ae9b' source_sha256 'e5d7580b3dfcbeb0b86f28dd3c2df76f32086bb428f67c8ae8512e5fd969324d'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/graphviz-2.44.1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/graphviz-2.46.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/graphviz-2.44.1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/graphviz-2.46.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/graphviz-2.44.1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/graphviz-2.46.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/graphviz-2.44.1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/graphviz-2.46.1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'da98580f38a3061a10b951562da06f0802dc7524e7d17bbc1b33f57f6913a441', aarch64: 'd0cef37f5ff984c4dd87a9c8c99fca254b19764bd898b46a79665668dc812857',
armv7l: 'da98580f38a3061a10b951562da06f0802dc7524e7d17bbc1b33f57f6913a441', armv7l: 'd0cef37f5ff984c4dd87a9c8c99fca254b19764bd898b46a79665668dc812857',
i686: '3178c12127d2256d6859975726039c1d81ae3a53f07346dd6d2b1d457889e3e4', i686: '39f81cec1ac499d981af16aa448e0130a71a4ea5ac8d28eeee19a920d8366bd1',
x86_64: '42842a1c3fc77efe32ee82cea9edd29c5024019053103347a4d4ff9da5d6fd2f', x86_64: '23ee20353fee590a3fe35c5185c0404c32f6f82749b2ecf612b8658f21c5ebdb'
}) })
depends_on 'libgd' depends_on 'libgd'
depends_on 'pango' depends_on 'pango'
def self.build def self.build
Dir.mkdir 'build' Dir.mkdir 'builddir'
Dir.chdir 'build' do Dir.chdir 'builddir' do
system 'cmake', system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -I#{CREW_PREFIX}/include/harfbuzz' \
"-DGLIBCONFIG_INCLUDE_DIR=#{CREW_LIB_PREFIX}/glib-2.0/include", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"-DCMAKE_C_FLAGS='-I#{CREW_PREFIX}/include/harfbuzz'", LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}", AWK=#{CREW_PREFIX}/bin/mawk \
'-DCMAKE_BUILD_TYPE=Release', cmake \
'..' -G Ninja \
system 'make' #{CREW_CMAKE_OPTIONS} \
.."
end end
system 'ninja -C builddir'
end end
def self.install def self.install
Dir.chdir 'build' do system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
Dir.chdir CREW_DEST_PREFIX do Dir.chdir CREW_DEST_PREFIX do
FileUtils.mv 'lib', 'lib64' if ARCH == 'x86_64' FileUtils.mv 'lib', 'lib64' if ARCH == 'x86_64'
end end
......
...@@ -3,35 +3,33 @@ require 'package' ...@@ -3,35 +3,33 @@ require 'package'
class Gsettings_desktop_schemas < Package class Gsettings_desktop_schemas < Package
description 'Collection of GSettings schemas for GNOME desktop.' description 'Collection of GSettings schemas for GNOME desktop.'
homepage 'https://git.gnome.org/browse/gsettings-desktop-schemas' homepage 'https://git.gnome.org/browse/gsettings-desktop-schemas'
version '3.38.0' version '40.beta'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/GNOME/gsettings-desktop-schemas/archive/3.38.0.tar.gz' source_url 'https://github.com/GNOME/gsettings-desktop-schemas/archive/40.beta.tar.gz'
source_sha256 'b808bd285ac7176f2e9e3a8763c3913121ab9f109d2988c70e3f1f8e742a630d' source_sha256 '885170738e15afe1a4dc60b2b9c006fce37e2b220f26ecf35f13fec8ef84657e'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gsettings_desktop_schemas-3.38.0-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gsettings_desktop_schemas-40.beta-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gsettings_desktop_schemas-3.38.0-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gsettings_desktop_schemas-40.beta-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gsettings_desktop_schemas-3.38.0-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/gsettings_desktop_schemas-40.beta-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gsettings_desktop_schemas-3.38.0-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gsettings_desktop_schemas-40.beta-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'dd97405ae148e26b65dfce4f91711dd73c54a021fc8d1f3463c9af30c1874d82', aarch64: 'eae7ad09c2366645c76c215ed299ee7094de9312ba0cde263ad2f55c9a2a3dda',
armv7l: 'dd97405ae148e26b65dfce4f91711dd73c54a021fc8d1f3463c9af30c1874d82', armv7l: 'eae7ad09c2366645c76c215ed299ee7094de9312ba0cde263ad2f55c9a2a3dda',
i686: '87eb145275e5d3c3bbb2042b6dd0bfd334012d3665b086dd1c4c722d10510287', i686: '3dcde7b6d32af1899840ced478120c06fe681274d618fa933fbc32c088468e1b',
x86_64: '69e40284e42d687b48fd5c35ef84d695a94ba0e8483ce2cb0654cc07886a177b', x86_64: '2707ac29a96c529759e7ac6a46725f1b474c0aca2c5dcab59372ec9d8429e16d'
}) })
depends_on 'gnome_common' depends_on 'gnome_common'
depends_on 'glib' depends_on 'glib'
depends_on 'gobject_introspection' depends_on 'gobject_introspection'
depends_on 'gtk4'
def self.build def self.build
system "sed -i -r 's:\"(/system):\"/org/gnome\1:g' schemas/*.in" system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
ENV['CFLAGS'] = "-fuse-ld=lld" system 'meson configure builddir'
ENV['CXXFLAGS'] = "-fuse-ld=lld" system 'ninja -C builddir'
system "meson #{CREW_MESON_OPTIONS} builddir"
system "meson configure builddir"
system "ninja -C builddir"
end end
def self.install def self.install
...@@ -41,5 +39,4 @@ class Gsettings_desktop_schemas < Package ...@@ -41,5 +39,4 @@ class Gsettings_desktop_schemas < Package
def self.postinstall def self.postinstall
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas" system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
end end
end end
require 'package'
class Gsound < Package
description 'GSound is a small library for playing system sounds.'
homepage 'https://wiki.gnome.org/Projects/GSound'
compatibility 'all'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '1.0.2'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
depends_on 'gobject_introspection'
depends_on 'libcanberra'
def self.build
system './autogen.sh' if File.exist?('autogen.sh')
system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.check
system "make", "check"
end
end
...@@ -3,36 +3,48 @@ require 'package' ...@@ -3,36 +3,48 @@ require 'package'
class Gusb < Package class Gusb < Package
description 'GUsb is a GObject wrapper for libusb1' description 'GUsb is a GObject wrapper for libusb1'
homepage 'https://www.openhub.net/p/gusb' homepage 'https://www.openhub.net/p/gusb'
version '0.2.11-0' @_ver = '0.3.5'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/hughsie/libgusb/archive/gusb_0_2_11.tar.gz' source_url "https://github.com/hughsie/libgusb/archive/#{@_ver}.tar.gz"
source_sha256 '090eb605e75f8a5b0b3df7ff29d96dd51730850ac89417378d4a8d39fab13702' source_sha256 '188c7964422417d39b02a5c645e136b1389c80e38e7abfa911fc196b9c748f45'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gusb-0.2.11-0-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gusb-0.3.5-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gusb-0.2.11-0-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gusb-0.3.5-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gusb-0.2.11-0-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/gusb-0.3.5-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gusb-0.2.11-0-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gusb-0.3.5-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '7c75eff68455aad38547deac7a50f44992bc47dc8a72ec12e5038f72783266cb', aarch64: '57ca56f4b7f50e7365d47bd7296d162ee24d0983894c838d2a4e0191902f8537',
armv7l: '7c75eff68455aad38547deac7a50f44992bc47dc8a72ec12e5038f72783266cb', armv7l: '57ca56f4b7f50e7365d47bd7296d162ee24d0983894c838d2a4e0191902f8537',
i686: '84a56516c6b57823eb7f921c96e7de2989b6fc6b0fbd2777b15510059cc8f04f', i686: '90abb8dce0577287d373178ded6be2fd200270a4513a4f2fb028f7475b133a71',
x86_64: 'fa9af05a8ab68391a7221b5b3b6feb986b66c40f1bbebde98bf1a1c4fd9089bd', x86_64: '90a04122895b2567cd67751e63c59e1b39c934c1b1e7c6d604a73b8e17444f20'
}) })
depends_on 'gtk_doc' depends_on 'gtk_doc'
depends_on 'libusb' depends_on 'libusb'
depends_on 'usbutils'
depends_on 'gobject_introspection' depends_on 'gobject_introspection'
def self.patch
system "sed -i 's/-fstack-protector-strong/-flto/g' meson.build"
end
def self.build def self.build
system "./autogen.sh" system "meson #{CREW_MESON_LTO_OPTIONS} \
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}" -Dc_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
system "make" -Dc_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_args='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dcpp_link_args='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
-Dusb_ids=#{CREW_PREFIX}/share/hwdata/usb.ids \
-Ddocs=false \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
end end
...@@ -3,58 +3,77 @@ require 'package' ...@@ -3,58 +3,77 @@ require 'package'
class Gvim < Package class Gvim < Package
description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. (with advanced features, such as a GUI)' description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. (with advanced features, such as a GUI)'
homepage 'http://www.vim.org/' homepage 'http://www.vim.org/'
version '8.2.1976' @_ver = '8.2.2580'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/vim/vim/archive/v8.2.1976.tar.gz' source_url 'https://github.com/vim/vim/archive/v8.2.2580.tar.gz'
source_sha256 'd2d8bc28e28e9c5a63be570cdb44be39470621bb57dcbace5abbd86e15690678' source_sha256 'd0a508ca9726c8ff69bc5f5ab1ebe251c256e01e730f7b36afd03a66c89fcf79'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.1976-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.2580-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.1976-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.2580-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.1976-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.2580-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.1976-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gvim-8.2.2580-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '3bec0434e49ab556c45b6755e858d8a1bf917f238e2906a35a7fbcffebe575bb', aarch64: 'c06a89c4a40a50d68232218248bce92fe6613cf7e1ec88711f3ac9fcc25e8d9d',
armv7l: '3bec0434e49ab556c45b6755e858d8a1bf917f238e2906a35a7fbcffebe575bb', armv7l: 'c06a89c4a40a50d68232218248bce92fe6613cf7e1ec88711f3ac9fcc25e8d9d',
i686: '62a0405196e9e701f54025447bfe23e59554e5c5abe298d080246384378a6a28', i686: 'ec59a0ce5aea951488100381333ef8e30f11880b2fadc66cbc9a90db06c7ff31',
x86_64: '087edd65ce9f13039ab9d8d9a8c6a5c9d6c02f47ad9a2c519970085d8999473f', x86_64: 'a3fa1854b694e1ae034086950a51909825bdd5886dbb7ed29e8651dc53673458'
}) })
depends_on 'vim_runtime' depends_on 'vim_runtime'
depends_on 'gtk3' depends_on 'gtk3'
depends_on 'sommelier' depends_on 'sommelier'
def self.preflight
abort('Please remove libiconv before building.') if File.exist?("#{CREW_LIB_PREFIX}/libcharset.so")
vim = `which vim 2> /dev/null`.chomp
abort "vim version #{version} already installed.".lightgreen unless vim.to_s == ''
end
def self.patch def self.patch
# set the system-wide vimrc path # set the system-wide vimrc path
FileUtils.cd('src') do FileUtils.cd('src') do
system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h" system 'sed', '-i', "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|",
system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h" 'feature.h'
system 'sed', '-i', "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|",
'feature.h'
system 'autoconf' system 'autoconf'
end end
end end
def self.build def self.build
system "./configure", system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--prefix=#{CREW_PREFIX}", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--localstatedir=#{CREW_PREFIX}/var/lib/vim", LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--with-features=huge', ./configure \
"--with-compiledby='Chromebrew'", #{CREW_OPTIONS} \
'--with-x=yes', --localstatedir=#{CREW_PREFIX}/var/lib/vim \
'--enable-gui=gtk3', --with-features=huge \
'--enable-multibyte', --with-compiledby='Chromebrew' \
'--enable-cscope', --enable-gpm \
'--enable-fontset', --enable-acl \
'--enable-perlinterp=dynamic', --with-x=yes \
'--enable-pythoninterp=dynamic', --enable-gnome-check \
'--enable-python3interp=dynamic', --enable-multibyte \
'--enable-rubyinterp=dynamic', --enable-cscope \
'--disable-selinux' --enable-netbeans \
--enable-perlinterp=dynamic \
--enable-pythoninterp=dynamic \
--enable-python3interp=dynamic \
--enable-rubyinterp=dynamic \
--enable-luainterp=dynamic \
--enable-tclinterp=dynamic \
--disable-canberra \
--disable-selinux \
--disable-nls"
system 'make' system 'make'
end end
def self.install def self.install
system 'make', "VIMRCLOC=#{CREW_PREFIX}/etc", "DESTDIR=#{CREW_DEST_DIR}", 'install' system 'make', "VIMRCLOC=#{CREW_PREFIX}/etc", "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.ln_s "#{CREW_PREFIX}/bin/vim", "#{CREW_DEST_PREFIX}/bin/vi"
# these are provided by 'vim_runtime' # these are provided by 'vim_runtime'
FileUtils.rm_r "#{CREW_DEST_PREFIX}/share/vim" FileUtils.rm_r "#{CREW_DEST_PREFIX}/share/vim"
...@@ -63,9 +82,9 @@ class Gvim < Package ...@@ -63,9 +82,9 @@ class Gvim < Package
def self.postinstall def self.postinstall
puts puts
puts "The config files are located in #{CREW_PREFIX}/etc".lightblue puts "The config files are located in #{CREW_PREFIX}/etc".lightblue
puts "User-specific configuration should go in ~/.gvimrc".lightblue puts 'User-specific configuration should go in ~/.gvimrc'.lightblue
puts puts
puts "If you are upgrading from an earlier version, edit ~/.bashrc".orange puts 'If you are upgrading from an earlier version, edit ~/.bashrc'.orange
puts "and remove the 'export VIMRUNTIME' and 'export LC_ALL=C' lines.".orange puts "and remove the 'export VIMRUNTIME' and 'export LC_ALL=C' lines.".orange
puts puts
end end
......
require 'package'
class Ibus < Package
description 'Next Generation Input Bus for Linux'
homepage 'https://github.com/ibus/ibus/wiki'
@_ver = '1.5.24'
version @_ver
compatibility 'all'
source_url "https://github.com/ibus/ibus/releases/download/#{@_ver}/ibus-#{@_ver}.tar.gz"
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/ibus-1.5.24-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/ibus-1.5.24-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/ibus-1.5.24-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/ibus-1.5.24-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '5bc9429dff55a5b81418d29168b724d5b3a828742ddc8862c603ac5427a53705',
armv7l: '5bc9429dff55a5b81418d29168b724d5b3a828742ddc8862c603ac5427a53705',
i686: '197cc0876e47976e0fce6a628adc8782ddbbf7dbd047f4a08f84be8456307566',
x86_64: '9443bc2b1285cb3588c0aabadbf71b0c08800df28ff6d808ff05aaa8bec6364a'
})
depends_on 'dconf'
depends_on 'gtk3'
depends_on 'gtk4'
depends_on 'hicolor_icon_theme'
depends_on 'libnotify'
depends_on 'pygobject'
depends_on 'unicode_emoji'
depends_on 'unicode_cldr'
depends_on 'gobject_introspection' => ':build'
depends_on 'vala' => ':build'
depends_on 'gnome_common' => ':build'
depends_on 'gtk_doc' => ':build'
depends_on 'gtk2' => ':build'
depends_on 'qtbase' => ':build'
def self.patch
system "sed -i 's|/usr/bin/python|#{CREW_PREFIX}/bin/python3|' engine/gensimple.py"
system "sed -i 's|/usr/bin/python|#{CREW_PREFIX}/bin/python3|' engine/iso639converter.py"
system "sed -i 's|\$(libibus) \$(libibus_emoji_dialog)|\$(libibus_emoji_dialog) \$(libibus)|' ui/gtk3/Makefile.am"
end
def self.build
system 'NOCONFIGURE=1 ./autogen.sh'
system 'filefix'
system './configure --help'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--libexecdir=#{CREW_LIB_PREFIX}/ibus \
--sysconfdir=#{CREW_PREFIX}/etc \
--enable-dconf \
--enable-wayland \
--enable-gtk4 \
--disable-memconf \
--enable-ui \
--disable-python2 \
--with-unicode-emoji-dir=#{CREW_PREFIX}/share/unicode/emoji \
--with-emoji-annotation-dir=#{CREW_PREFIX}/share/unicode/cldr/common/annotations \
--with-python=python3 \
--with-ucd-dir=#{CREW_PREFIX}/share/unicode"
unless File.exist?('engine/denylist.txt')
system "curl -Lf https://github.com/ibus/ibus/raw/#{@_ver}/engine/denylist.txt -o engine/denylist.txt"
end
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
...@@ -3,22 +3,19 @@ require 'package' ...@@ -3,22 +3,19 @@ require 'package'
class Igt_gpu_tools < Package class Igt_gpu_tools < Package
description 'Tools for development and testing of the Intel DRM driver' description 'Tools for development and testing of the Intel DRM driver'
homepage 'https://gitlab.freedesktop.org/drm/igt-gpu-tools' homepage 'https://gitlab.freedesktop.org/drm/igt-gpu-tools'
version '1.25' @_ver = '1.25'
compatibility 'all' version "#{@_ver}-1"
source_url 'https://xorg.freedesktop.org/releases/individual/app/igt-gpu-tools-1.25.tar.xz' compatibility 'x86_64 i686'
source_url "https://xorg.freedesktop.org/releases/individual/app/igt-gpu-tools-#{@_ver}.tar.xz"
source_sha256 '40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11' source_sha256 '40454d8f0484ea2477862007398a08eef78a6c252c4defce1c934548593fdd11'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-chromeos-armv7l.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-1-chromeos-i686.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-chromeos-armv7l.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-1-chromeos-x86_64.tar.xz'
i686: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/igt_gpu_tools-1.25-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256({
aarch64: '51336627a5f9bb5a662785bbf5dff89a9be2b61b76a8c1312802ba2d1321539a', i686: 'eabf18c03916648a85b9f6211a197738ad51ad92900949cb257aeedc4e2bb2e3',
armv7l: '51336627a5f9bb5a662785bbf5dff89a9be2b61b76a8c1312802ba2d1321539a', x86_64: '72bfc16dbd9532d049a67a8a8c328b50d8f5764f6922445bfe9899129735fcd1'
i686: '367feaaf23ac996aef045a1749c4ade02297270cb2cfef325e132d965ffcb675',
x86_64: '83df59cfaf3e9c45f268b752ff3e7df823f367744a72d2b09c53ecc13f467ec4',
}) })
depends_on 'libdrm' depends_on 'libdrm'
...@@ -32,22 +29,18 @@ class Igt_gpu_tools < Package ...@@ -32,22 +29,18 @@ class Igt_gpu_tools < Package
depends_on 'peg' depends_on 'peg'
depends_on 'swig' => ':build' depends_on 'swig' => ':build'
depends_on 'gtk_doc' => ':build' depends_on 'gtk_doc' => ':build'
depends_on 'util_macros' => ':build'
depends_on 'xorg_proto' => ':build'
def self.build def self.build
system "meson #{CREW_MESON_OPTIONS} \ system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dc_link_args='-fuse-ld=lld' \
-Db_asneeded=false \
-Ddocs=disabled \ -Ddocs=disabled \
-Dtests=disabled \ -Dtests=disabled \
-Doping=disabled \ -Doping=disabled \
-Drunner=disabled \ -Drunner=disabled \
builddir" builddir"
system "meson configure builddir" system 'meson configure builddir'
system "ninja -C builddir" system 'ninja -C builddir'
end end
def self.install def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
......
...@@ -3,7 +3,7 @@ require 'package' ...@@ -3,7 +3,7 @@ require 'package'
class Imagemagick < Package class Imagemagick < Package
description 'Use ImageMagick to create, edit, compose, or convert bitmap images.' description 'Use ImageMagick to create, edit, compose, or convert bitmap images.'
homepage 'http://www.imagemagick.org/script/index.php' homepage 'http://www.imagemagick.org/script/index.php'
version '6.9.11-29-7.0.10-29' version '6.9.11-29-7.0.11-2'
compatibility 'all' compatibility 'all'
is_fake is_fake
...@@ -14,7 +14,7 @@ class Imagemagick < Package ...@@ -14,7 +14,7 @@ class Imagemagick < Package
puts puts
puts " Select the version to install:" puts " Select the version to install:"
puts " 6 = ImageMagick 6.9.11-29" puts " 6 = ImageMagick 6.9.11-29"
puts " 7 = ImageMagick 7.0.10-29" puts " 7 = ImageMagick 7.0.11-2"
puts " 0 = Cancel" puts " 0 = Cancel"
while version = STDIN.gets.chomp while version = STDIN.gets.chomp
......
...@@ -3,47 +3,45 @@ require 'package' ...@@ -3,47 +3,45 @@ require 'package'
class Imagemagick7 < Package class Imagemagick7 < Package
description 'Use ImageMagick to create, edit, compose, or convert bitmap images.' description 'Use ImageMagick to create, edit, compose, or convert bitmap images.'
homepage 'http://www.imagemagick.org/script/index.php' homepage 'http://www.imagemagick.org/script/index.php'
version '7.0.10-29' @_ver = '7.0.11-2'
compatibility 'aarch64,armv7l,x86_64' version @_ver
case ARCH compatibility 'all'
when 'aarch64', 'armv7l', 'x86_64' source_url "https://github.com/ImageMagick/ImageMagick/archive/#{@_ver}.tar.gz"
source_url 'https://github.com/ImageMagick/ImageMagick/archive/7.0.10-29.tar.gz' source_sha256 '936959ba77bb9d8fdab4d9c69f90316c02a7e2467dea3790ad36b4d500c31a22'
source_sha256 '7a3a3347e8b0dae2396663c879644cebcb8d4ed115645b4c9dba66494022b2fd'
depends_on 'flif'
depends_on 'freeimage'
depends_on 'freetype'
depends_on 'ghostscript'
depends_on 'graphviz'
depends_on 'jbigkit'
depends_on 'jemalloc'
depends_on 'lzma'
depends_on 'libheif'
depends_on 'librsvg'
depends_on 'libwebp'
depends_on 'libwmf'
depends_on 'msttcorefonts'
depends_on 'openexr'
depends_on 'openjpeg'
depends_on 'pango'
depends_on 'python27'
depends_on 'zstd'
depends_on 'sommelier'
end
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick7-7.0.10-29-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick7-7.0.11-2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick7-7.0.10-29-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick7-7.0.11-2-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick7-7.0.10-29-chromeos-x86_64.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick7-7.0.11-2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/imagemagick7-7.0.11-2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '2b36714b61050e4da65ccaf8860cf654d13f530122edbb21edd5e633f07db297', aarch64: '04025f5ae6e216cf6e79f2c1a6eccc79ee4a3228eb4d13d9475938a031bb1986',
armv7l: '2b36714b61050e4da65ccaf8860cf654d13f530122edbb21edd5e633f07db297', armv7l: '04025f5ae6e216cf6e79f2c1a6eccc79ee4a3228eb4d13d9475938a031bb1986',
x86_64: '8557c63c17dcfe443d9ed6e8d78aa555cf032b4165ec39157bb209581c0daf41', i686: '2a8cae3b4c308c75078f199e8bb9b005baf0babfdce0ff9f5b5f52b23ca71fa0',
x86_64: '8bc32c289e65e5499660cda89afab1dfb68b14de9c70b4f3e82924fa3dafe80a'
}) })
depends_on 'flif'
depends_on 'freeimage'
depends_on 'freetype'
depends_on 'ghostscript'
depends_on 'graphviz'
depends_on 'jbigkit'
depends_on 'jemalloc'
depends_on 'lzma'
depends_on 'libheif'
depends_on 'librsvg'
depends_on 'libwebp'
depends_on 'libwmf'
depends_on 'msttcorefonts'
depends_on 'openexr'
depends_on 'openjpeg'
depends_on 'pango'
def self.preinstall def self.preinstall
imver = `stream -version 2> /dev/null | head -1 | cut -d' ' -f3`.chomp imver = `stream -version 2> /dev/null | head -1 | cut -d' ' -f3`.chomp
abort "ImageMagick version #{imver} already installed.".lightgreen unless "#{imver}" == "" abort "ImageMagick version #{imver} already installed.".lightgreen unless imver.to_s == ''
end end
def self.patch def self.patch
...@@ -51,19 +49,24 @@ class Imagemagick7 < Package ...@@ -51,19 +49,24 @@ class Imagemagick7 < Package
end end
def self.build def self.build
system "./configure", system "env CFLAGS='-pipe -flto=auto -fno-stack-protector -U_FORTIFY_SOURCE \
"CFLAGS=-I#{CREW_PREFIX}/include/gdk-pixbuf-2.0 -I#{CREW_PREFIX}/include/c++/v1/support/xlocale", -I#{CREW_PREFIX}/include/gdk-pixbuf-2.0 \
"--prefix=#{CREW_PREFIX}", -I#{CREW_PREFIX}/include/c++/v1/support/xlocale' \
"--libdir=#{CREW_LIB_PREFIX}", CXXFLAGS='-pipe -flto=auto -fno-stack-protector -U_FORTIFY_SOURCE' \
"--mandir=#{CREW_MAN_PREFIX}", LDFLAGS='-flto=auto -fno-stack-protector -U_FORTIFY_SOURCE' \
"--with-windows-font-dir=#{CREW_PREFIX}/share/fonts/truetype/msttcorefonts", ./configure \
'--disable-dependency-tracking', #{CREW_OPTIONS} \
'--with-jemalloc', --mandir=#{CREW_MAN_PREFIX} \
'--with-modules', --program-prefix='' \
'--enable-hdri', --with-windows-font-dir=#{CREW_PREFIX}/share/fonts/truetype/msttcorefonts \
'--with-perl', --disable-dependency-tracking \
'--with-rsvg', --enable-hugepages \
'--with-x' --with-jemalloc \
--with-modules \
--enable-hdri \
--with-perl \
--with-rsvg \
--with-x"
system 'make' system 'make'
end end
......
...@@ -7,6 +7,19 @@ class Irrlicht < Package ...@@ -7,6 +7,19 @@ class Irrlicht < Package
compatibility 'all' compatibility 'all'
source_url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip' source_url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip'
source_sha256 'f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433' source_sha256 'f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht-1.8.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht-1.8.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht-1.8.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht-1.8.4-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'e98dcd9e79dda539dcc77a4aa5da24fa59f8a465e5f4a42704f2840ad0ddcc9f',
armv7l: 'e98dcd9e79dda539dcc77a4aa5da24fa59f8a465e5f4a42704f2840ad0ddcc9f',
i686: '33c6fe1559e924ef6c3ebe75d9bcf5b27d419fe6d31c6989cec84637cd586c93',
x86_64: 'cad40fccc5ca753ff9d2044bfc720e2d00f775d58691401771eaa731076e4651',
})
depends_on 'libxrandr' depends_on 'libxrandr'
depends_on 'libglvnd' depends_on 'libglvnd'
......
...@@ -7,6 +7,19 @@ class Irrlicht_examples < Package ...@@ -7,6 +7,19 @@ class Irrlicht_examples < Package
compatibility 'all' compatibility 'all'
source_url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip' source_url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip'
source_sha256 'f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433' source_sha256 'f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht_examples-1.8.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht_examples-1.8.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht_examples-1.8.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht_examples-1.8.4-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '016e609af12216dbb79dded23cf223d668eefbee5c33087921ac9a2faf99fddb',
armv7l: '016e609af12216dbb79dded23cf223d668eefbee5c33087921ac9a2faf99fddb',
i686: '8653b1d919a602d0269484daec98047d0e4b5e655b50bae8d49341b04b4a0e2e',
x86_64: '6c366e0e444594fe94ef29cf6bcf309940d1a3daa2e0c0f151329e73fc142990',
})
depends_on 'irrlicht' depends_on 'irrlicht'
depends_on 'dos2unix' => :build depends_on 'dos2unix' => :build
......
...@@ -7,6 +7,19 @@ class Irrlicht_tools < Package ...@@ -7,6 +7,19 @@ class Irrlicht_tools < Package
compatibility 'all' compatibility 'all'
source_url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip' source_url 'https://downloads.sourceforge.net/irrlicht/irrlicht-1.8.4.zip'
source_sha256 'f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433' source_sha256 'f42b280bc608e545b820206fe2a999c55f290de5c7509a02bdbeeccc1bf9e433'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht_tools-1.8.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht_tools-1.8.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht_tools-1.8.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/irrlicht_tools-1.8.4-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'fb12a3c4e9d2e57b9eff5c08558090035e33a4790723edb8df19b1a02070be6b',
armv7l: 'fb12a3c4e9d2e57b9eff5c08558090035e33a4790723edb8df19b1a02070be6b',
i686: 'bfd76b9b6a999d06581b48103e2c3b603333e7df5186d03e75621b1160cf09f1',
x86_64: 'e988f9c00466346b85df68d01290763d0f8a43e824e59a1d836978eb55b6f900',
})
depends_on 'irrlicht' depends_on 'irrlicht'
depends_on 'dos2unix' => :build depends_on 'dos2unix' => :build
......
...@@ -3,29 +3,30 @@ require 'package' ...@@ -3,29 +3,30 @@ require 'package'
class Jansson < Package class Jansson < Package
description 'Jansson is a C library for encoding, decoding and manipulating JSON data.' description 'Jansson is a C library for encoding, decoding and manipulating JSON data.'
homepage 'http://www.digip.org/jansson/' homepage 'http://www.digip.org/jansson/'
version '2.12' @_ver = '2.13.1'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/akheron/jansson/archive/v2.12.tar.gz' source_url "https://github.com/akheron/jansson/archive/v#{@_ver}.tar.gz"
source_sha256 '76260d30e9bbd0ef392798525e8cd7fe59a6450c54ca6135672e3cd6a1642941' source_sha256 'f22901582138e3203959c9257cf83eba9929ac41d7be4a42557213a22ebcc7a0'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.12-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.13.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.12-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.13.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.12-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.13.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.12-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/jansson-2.13.1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '1268da5b1e8fb780fa300e2435992978ad3ca1dca671fcb157591795b219cee3', aarch64: '934cd7813f9a0c8ad07c967f0d65de05a545d697cc10c6a270c09e6dbbdf30df',
armv7l: '1268da5b1e8fb780fa300e2435992978ad3ca1dca671fcb157591795b219cee3', armv7l: '934cd7813f9a0c8ad07c967f0d65de05a545d697cc10c6a270c09e6dbbdf30df',
i686: '1a5b9a9099cb64e5b097090bc17a0ae3b225c66815dd06f3db0a32d4adedac03', i686: '3a4c91fbfd2b20b52174e9dfb28b16d1ed22767af66379711e1da77ac9ec9e86',
x86_64: '3cb0754c45a3997f7c41cc0d941964c4ec55f12e28792712ececc2d5f41a42e4', x86_64: '224290a4b9c5e4361d7a41171745ec02211281582af9a6f7aa0b7de47a06b7de'
}) })
def self.build def self.build
system 'autoreconf -i' system 'autoreconf -i'
system './configure', system "env CFLAGS='-flto=auto' \
"--prefix=#{CREW_PREFIX}", CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}" ./configure #{CREW_OPTIONS}"
system 'make' system 'make'
end end
......
...@@ -3,30 +3,34 @@ require 'package' ...@@ -3,30 +3,34 @@ require 'package'
class Lcms < Package class Lcms < Package
description 'Little CMS intends to be an OPEN SOURCE small-footprint color management engine, with special focus on accuracy and performance.' description 'Little CMS intends to be an OPEN SOURCE small-footprint color management engine, with special focus on accuracy and performance.'
homepage 'http://www.littlecms.com/' homepage 'http://www.littlecms.com/'
version '2.9' @_ver = '2.12'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://downloads.sourceforge.net/lcms/lcms2-2.9.tar.gz' source_url "https://github.com/mm2/Little-CMS/releases/download/lcms#{@_ver}/lcms2-#{@_ver}.tar.gz"
source_sha256 '48c6fdf98396fa245ed86e622028caf49b96fa22f3e5734f853f806fbc8e7d20' source_sha256 '18663985e864100455ac3e507625c438c3710354d85e5cbb7cd4043e11fe10f5'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/lcms-2.9-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/lcms-2.12-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/lcms-2.9-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/lcms-2.12-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/lcms-2.9-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/lcms-2.12-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/lcms-2.9-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/lcms-2.12-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '4e99a0236ce9f49f2a73fbc3b796112c0bc548c8bf6bb6af454e2b8c8fca5fd7', aarch64: '9cad876e65a97e351278154858ae68200828b01f0d93330b821ecf53d5b31ad5',
armv7l: '4e99a0236ce9f49f2a73fbc3b796112c0bc548c8bf6bb6af454e2b8c8fca5fd7', armv7l: '9cad876e65a97e351278154858ae68200828b01f0d93330b821ecf53d5b31ad5',
i686: '468dcb84ddeb0b7f4f486f766e7530e60ecdb020b5457cc65b5dbc3e5e0137d5', i686: '262396399c146e50ad5b38725355bb301f3db2f6beddeaea041f962bfdae9907',
x86_64: '47e4c1c86f4a455920106d10bfa4ec8cd47f36e41b71ea27e3bac6551a09d68c', x86_64: '8fba4add85dcbdd7498a64c065579a7c3625914c437f8ffe363c15cd3b8d67bb'
}) })
def self.build def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}" system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
require 'package'
class Libaom < Package
description 'AV1 video codec from Alliance for Open Media'
homepage 'https://aomedia.org/'
version '1.0.0'
compatibility 'all'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libaom-1.0.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libaom-1.0.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libaom-1.0.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libaom-1.0.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '333119009f00f96ab6fda4ea900eb19bf81bd8c446775d6b073a4ac56a0d2066',
armv7l: '333119009f00f96ab6fda4ea900eb19bf81bd8c446775d6b073a4ac56a0d2066',
i686: 'cdece1990fc30a8f45847ae13aa2e6dab6f9321365bb9412283d00586f23489f',
x86_64: 'c7bb9de577e4ff32458c47d9bf2c3a329a6011368f3f3bbde8e072fd9530d5c8'
})
depends_on 'yasm' => ':build'
def self.prebuild
@git_dir = 'aom_git'
@git_hash = '8b6eaa4d37b992efffe432fa513889e6d11ae04f'
@git_url = 'https://aomedia.googlesource.com/aom'
FileUtils.rm_rf(@git_dir)
FileUtils.mkdir_p(@git_dir)
Dir.chdir @git_dir do
system 'git init'
system "git remote add origin #{@git_url}"
system "git fetch --depth 1 origin #{@git_hash}"
system 'git checkout FETCH_HEAD'
end
end
def self.build
Dir.mkdir 'aom_git/builddir'
Dir.chdir 'aom_git/builddir' do
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS:BOOL='ON' \
-DCMAKE_COLOR_MAKEFILE:BOOL='ON' \
-DENABLE_CCACHE:BOOL='OFF' \
-DENABLE_DECODE_PERF_TESTS:BOOL='OFF' \
-DENABLE_EXAMPLES:BOOL='ON' \
-DENABLE_DISTCC:BOOL='OFF' \
-DENABLE_DOCS:BOOL='ON' \
-DENABLE_GOMA:BOOL='OFF' \
-DENABLE_NASM:BOOL='ON' \
-DENABLE_TESTS:BOOL='OFF' \
-DENABLE_TOOLS:BOOL='ON' \
-DENABLE_WERROR:BOOL='OFF' \
-DINCLUDE_INSTALL_DIR:PATH='#{CREW_PREFIX}/include' \
-DLIB_INSTALL_DIR:PATH='#{CREW_LIB_PREFIX}' \
-Wno-dev \
.."
end
system 'ninja -C aom_git/builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C aom_git/builddir install"
end
end
# Adapted from Arch Linux libavif PKGBUILD at:
# https://github.com/archlinux/svntogit-community/raw/packages/libavif/trunk/PKGBUILD
require 'package'
class Libavif < Package
description 'Library for encoding and decoding .avif files'
homepage 'https://github.com/AOMediaCodec/libavif'
@_ver = '0.9.0'
version @_ver
compatibility 'all'
source_url "https://github.com/AOMediaCodec/libavif/archive/v#{@_ver}.tar.gz"
source_sha256 'ea1603fc18e7dd20cf01f0b405156576886ecb5df84db8c0e87187cd2f8a00f4'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libavif-0.9.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libavif-0.9.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libavif-0.9.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libavif-0.9.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '1f61a3c2509df65e7206ddc4ac79c5e4328f5f369d59da384c3f76fef87aa287',
armv7l: '1f61a3c2509df65e7206ddc4ac79c5e4328f5f369d59da384c3f76fef87aa287',
i686: 'd519816e462351cb38c44734dd9ce82fc8ed553614ca40a2683e88c710bd15fd',
x86_64: '639ba89c4a63d68f714bcf1bb56314594bd5eb5e41ba764424a5e115c97ce6c7'
})
depends_on 'libaom'
depends_on 'dav1d'
depends_on 'rav1e' unless ARCH == 'i686'
depends_on 'svt_av1' if ARCH == 'x86_64'
depends_on 'libpng'
depends_on 'libjpeg'
depends_on 'libyuv'
depends_on 'nasm' => ':build'
depends_on 'pkgconf' => ':build'
depends_on 'gdk_pixbuf' => ':build'
def self.build
ARCH == 'i686' ? (@rav1e = 'OFF') : (@rav1e = 'ON')
ARCH == 'x86_64' ? (@svt = 'ON') : (@svt = 'OFF')
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -I#{CREW_PREFIX}/include/harfbuzz' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DAVIF_BUILD_APPS=ON \
-DAVIF_CODEC_AOM=ON \
-DAVIF_CODEC_DAV1D=ON \
-DAVIF_CODEC_RAV1E=#{@rav1e} \
-DAVIF_CODEC_SVT=#{@svt} \
-DAVIF_BUILD_GDK_PIXBUF=ON \
.."
end
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
...@@ -3,34 +3,39 @@ require 'package' ...@@ -3,34 +3,39 @@ require 'package'
class Libcroco < Package class Libcroco < Package
description 'Generic Cascading Style Sheet (CSS) parsing and manipulation toolkit.' description 'Generic Cascading Style Sheet (CSS) parsing and manipulation toolkit.'
homepage 'https://git.gnome.org/browse/libcroco/' homepage 'https://git.gnome.org/browse/libcroco/'
version '0.6.12' @_ver = '0.6.13'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
compatibility 'all' compatibility 'all'
source_url 'http://ftp.gnome.org/pub/gnome/sources/libcroco/0.6/libcroco-0.6.12.tar.xz' source_url "http://ftp.gnome.org/pub/gnome/sources/libcroco/#{@_ver_prelastdot}/libcroco-#{@_ver}.tar.xz"
source_sha256 'ddc4b5546c9fb4280a5017e2707fbd4839034ed1aba5b7d4372212f34f84f860' source_sha256 '767ec234ae7aa684695b3a735548224888132e063f92db585759b422570621d4'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libcroco-0.6.12-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libcroco-0.6.13-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libcroco-0.6.12-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libcroco-0.6.13-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libcroco-0.6.12-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libcroco-0.6.13-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libcroco-0.6.12-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libcroco-0.6.13-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '1997e3255d0cc8495c869a6f1de7dc9e6b7e83c066bf9fda0c07d8d808b59a2a', aarch64: '60fc1383b5e017354c7c2125a8357d5856c13eea76a765b92bf64e3f92df5341',
armv7l: '1997e3255d0cc8495c869a6f1de7dc9e6b7e83c066bf9fda0c07d8d808b59a2a', armv7l: '60fc1383b5e017354c7c2125a8357d5856c13eea76a765b92bf64e3f92df5341',
i686: '913d41daf21e307c5c06d04d82b0f55e3a14fa31baf552475380217748ba3455', i686: '68afcab6e597a792079edfd6090a51ac49daac65cc45b20aca79c678e77328b7',
x86_64: '21b8c0b44777da7c607c08b85732f1a91a805f248a1937351f4c92ec50444975', x86_64: '2d3dd17c43cb509d6c4ed2f5b5e1b29e7f54d63f673c2cc2beac549efcd5e748'
}) })
depends_on 'gtk_doc' depends_on 'gtk_doc'
depends_on 'six' => :build depends_on 'six' => :build
def self.build def self.build
system "sh autogen.sh" system 'sh autogen.sh'
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}" system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
system "make" CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -3,33 +3,40 @@ require 'package' ...@@ -3,33 +3,40 @@ require 'package'
class Libde265 < Package class Libde265 < Package
description 'Open h.265 video codec implementation.' description 'Open h.265 video codec implementation.'
homepage 'https://github.com/strukturag/libde265' homepage 'https://github.com/strukturag/libde265'
version '1.0.3' @_ver = '1.0.8'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/strukturag/libde265/releases/download/v1.0.3/libde265-1.0.3.tar.gz' source_url "https://github.com/strukturag/libde265/releases/download/v#{@_ver}/libde265-#{@_ver}.tar.gz"
source_sha256 'e4206185a7c67d3b797d6537df8dcaa6e5fd5a5f93bd14e65a755c33cd645f7a' source_sha256 '24c791dd334fa521762320ff54f0febfd3c09fc978880a8c5fbc40a88f21d905'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libde265-1.0.3-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libde265-1.0.8-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libde265-1.0.3-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libde265-1.0.8-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libde265-1.0.3-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libde265-1.0.8-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libde265-1.0.3-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libde265-1.0.8-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '851a496c32ead6b6da9cf6f1ec14ae991f47592d400fa714151cf72552a4a58d', aarch64: 'f2ca6f26fd80159a03e6dc9e3ba62f24ab690c98b03444dc0bad602461643fde',
armv7l: '851a496c32ead6b6da9cf6f1ec14ae991f47592d400fa714151cf72552a4a58d', armv7l: 'f2ca6f26fd80159a03e6dc9e3ba62f24ab690c98b03444dc0bad602461643fde',
i686: '8a70ce6f43f78f6edba1f50e47cd17956ee21d92c534454785de4f143d3a5775', i686: 'b08e6380514f8c61a026f74bba03cc29eeefddbd3b430065de0c42da5a28d105',
x86_64: '0833d3f548c83b9706fe7a8797f0b695c907fac1f2aebbbabb936d0aea440f8a', x86_64: '4d4f93fd7b4cc7ac4003fba0a8a1a42edc43045fae6496b72a78b6f312b1e6cb'
}) })
def self.build def self.build
system './configure', Dir.mkdir 'builddir'
"--prefix=#{CREW_PREFIX}", Dir.chdir 'builddir' do
"--libdir=#{CREW_LIB_PREFIX}", system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--disable-dependency-tracking' CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
system 'make' LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
.."
end
system 'ninja -C builddir'
end end
def self.install def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
end end
...@@ -3,35 +3,38 @@ require 'package' ...@@ -3,35 +3,38 @@ require 'package'
class Libexif < Package class Libexif < Package
description 'A library for parsing, editing, and saving EXIF data' description 'A library for parsing, editing, and saving EXIF data'
homepage 'https://libexif.github.io/' homepage 'https://libexif.github.io/'
version '0.6.21' @_ver = '0.6.22'
@_ver_ = @_ver.gsub(/[.]/, '_')
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/libexif/libexif/archive/libexif-0_6_21-release.tar.gz' source_url "https://github.com/libexif/libexif/releases/download/libexif-#{@_ver_}-release/libexif-#{@_ver}.tar.xz"
source_sha256 '8cb37aa1745ca9050403c501ad4da2924e98ec5460bbd5c9d09bd57f0c746636' source_sha256 '5048f1c8fc509cc636c2f97f4b40c293338b6041a5652082d5ee2cf54b530c56'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libexif-0.6.21-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libexif-0.6.22-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libexif-0.6.21-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libexif-0.6.22-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libexif-0.6.21-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libexif-0.6.22-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libexif-0.6.21-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libexif-0.6.22-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'c4d28a7a1a806559be725e264daf15759921281cd53d584fc66a2de955c4b48a', aarch64: '4294ea1bb5c87281c0033466c28213309c29888b7b38dc31ca7952399eb05bf1',
armv7l: 'c4d28a7a1a806559be725e264daf15759921281cd53d584fc66a2de955c4b48a', armv7l: '4294ea1bb5c87281c0033466c28213309c29888b7b38dc31ca7952399eb05bf1',
i686: '7b03b0d97715f99eebdeac70afe4d3562309eda01523d648a6680b02107eb5cf', i686: '0065d20692bdf287574972b3e4f3b03d18c63e4cfdc53196565d75d977132afd',
x86_64: 'ffe068550dd1f366252762ee529a8bd10984f1036d11984bfefabb468893da21', x86_64: 'd8d0f76f087122ac63d088ec1233e45f6b88880f80ab08bea72f2461bd4e2aa4'
}) })
def self.build def self.build
system 'autoreconf -i -f' system 'autoreconf -i -f'
system "sed -i '69,70d' po/Makefile.in.in" system "sed -i '69,70d' po/Makefile.in.in"
system './configure', system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--prefix=#{CREW_PREFIX}", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}", LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--disable-maintainer-mode' ./configure #{CREW_OPTIONS} \
--disable-maintainer-mode"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -3,39 +3,52 @@ require 'package' ...@@ -3,39 +3,52 @@ require 'package'
class Libexiv2 < Package class Libexiv2 < Package
description 'Exiv2 is a Cross-platform C++ library and a command line utility to manage image metadata.' description 'Exiv2 is a Cross-platform C++ library and a command line utility to manage image metadata.'
homepage 'http://exiv2.org/' homepage 'http://exiv2.org/'
version '0.26' @_ver = '0.27.3-d8dd'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'http://www.exiv2.org/builds/exiv2-0.26-trunk.tar.gz' source_url 'https://github.com/Exiv2/exiv2/archive/d8dd632ad511db37245e4fe644a3cd399d770399.zip'
source_sha256 'c75e3c4a0811bf700d92c82319373b7a825a2331c12b8b37d41eb58e4f18eafb' source_sha256 '4cf76787b665186c7a484f16aaf92b306be3fa34feb1edbda79442811dd4287e'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libexiv2-0.26-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libexiv2-0.27.3-d8dd-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libexiv2-0.26-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libexiv2-0.27.3-d8dd-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libexiv2-0.26-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libexiv2-0.27.3-d8dd-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libexiv2-0.26-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libexiv2-0.27.3-d8dd-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '0b53cffbe725a525c6d76d9fb1ab331c362ad3dd5efb927f99dcb5f9a886060e', aarch64: 'd5e464080d02bd02f92cc8faab43eae4ed3f65a86dd931302e9d3400df65ece1',
armv7l: '0b53cffbe725a525c6d76d9fb1ab331c362ad3dd5efb927f99dcb5f9a886060e', armv7l: 'd5e464080d02bd02f92cc8faab43eae4ed3f65a86dd931302e9d3400df65ece1',
i686: '3134164696ecd93e2547198bd578a502e0a9ae648397a945bdbb3479362b1a96', i686: '182b35e673f39fc2288839ce36df148ecf646ed3aa239992001abf224c5e91e1',
x86_64: '69e5df22bbc44b8adc08b8260a49087f787e517472e1472be9783d5e424a4713', x86_64: 'f538547a42943c62fbdc847a17ffb38304ffda35648116477885e661fcefd2f4'
}) })
depends_on 'curl'
depends_on 'libssh' depends_on 'libssh'
depends_on 'ccache' => :build
def self.patch
system "sed -i 's/MINGW OR CYGWIN OR CMAKE_HOST_SOLARIS/UNIX/g' cmake/compilerFlags.cmake"
end
def self.build def self.build
system './configure', Dir.mkdir 'builddir'
"--prefix=#{CREW_PREFIX}", Dir.chdir 'builddir' do
"--libdir=#{CREW_LIB_PREFIX}", system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--with-curl=#{CREW_PREFIX}/include/curl", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--with-ssh=#{CREW_PREFIX}/include/libssh", LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--enable-webready', cmake \
'--enable-video' -G Ninja \
system 'make' #{CREW_CMAKE_OPTIONS} \
-DEXIV2_ENABLE_CURL=ON \
-DEXIV2_ENABLE_SSH=ON \
-DEXIV2_ENABLE_WEBREADY=ON \
-DEXIV2_ENABLE_VIDEO=ON \
-DBUILD_WITH_CCACHE=ON \
.."
end
system 'ninja -C builddir'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
end end
...@@ -3,38 +3,45 @@ require 'package' ...@@ -3,38 +3,45 @@ require 'package'
class Libgd < Package class Libgd < Package
description 'GD is an open source code library for the dynamic creation of images by programmers.' description 'GD is an open source code library for the dynamic creation of images by programmers.'
homepage 'https://libgd.github.io/' homepage 'https://libgd.github.io/'
version '2.3.0' @_ver = '2.3.2'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/libgd/libgd/releases/download/gd-2.3.0/libgd-2.3.0.tar.gz' source_url "https://github.com/libgd/libgd/archive/gd-#{@_ver}.tar.gz"
source_sha256 '32590e361a1ea6c93915d2448ab0041792c11bae7b18ee812514fe08b2c6a342' source_sha256 'dcc22244d775f469bee21dce1ea42552adbb72ba0cc423f9fa6a64601b3a1893'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libgd-2.3.0-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libgd-2.3.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libgd-2.3.0-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libgd-2.3.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libgd-2.3.0-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libgd-2.3.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libgd-2.3.0-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libgd-2.3.2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'f08ad9e3eea1b99d9c1528337d1a6fb0e764c35abcc82908acfd8d7635aa5890', aarch64: 'af41a2f68397421ae6d8974b1caaf41e559ddfce9b381dfa45ad235b8f912f1c',
armv7l: 'f08ad9e3eea1b99d9c1528337d1a6fb0e764c35abcc82908acfd8d7635aa5890', armv7l: 'af41a2f68397421ae6d8974b1caaf41e559ddfce9b381dfa45ad235b8f912f1c',
i686: 'ae9c98c5282c68e9f1e089281669c9e3e8a02c92a4398bb7725b9fe32ee92a65', i686: 'd6a56c32366bb5014e5cf04bd7a0ad4e9eb0038bb95df2e2ec7793d67111e4bc',
x86_64: '8e5ade77f722c7e76e8448483d1f6dc9119269173a642368f15fca9322cba14e', x86_64: '41a0e61d953cca647d9a31bf88c294918f7f089689f3552fb93cf2903aadeabe'
}) })
depends_on 'cmake'
depends_on 'libpng' depends_on 'libpng'
depends_on 'libavif'
depends_on 'libheif'
def self.build def self.build
FileUtils.mkdir('build') Dir.mkdir 'builddir'
FileUtils.cd('build') do Dir.chdir 'builddir' do
system "cmake -DCMAKE_INCLUDE_PATH=#{CREW_PREFIX}/include -DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} .." system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -I#{CREW_PREFIX}/include/harfbuzz' \
system "make" CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DCMAKE_INCLUDE_PATH=#{CREW_PREFIX}/include \
.."
end end
system 'ninja -C builddir'
end end
def self.install def self.install
FileUtils.cd('build') do system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end end
end end
...@@ -8,6 +8,19 @@ class Libglvnd < Package ...@@ -8,6 +8,19 @@ class Libglvnd < Package
source_url 'https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v1.3.2/libglvnd-v1.3.2.tar.bz2' source_url 'https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v1.3.2/libglvnd-v1.3.2.tar.bz2'
source_sha256 '8eb697a879245c6246ffabf2c1ed72a5ae335769f0772f55cbe4fee3e50223fe' source_sha256 '8eb697a879245c6246ffabf2c1ed72a5ae335769f0772f55cbe4fee3e50223fe'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libglvnd-1.3.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libglvnd-1.3.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libglvnd-1.3.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libglvnd-1.3.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '70735287c0e3ec8a7adc8a0b73ff3094f64fc05033f00a7c97b3b9f135f89b5e',
armv7l: '70735287c0e3ec8a7adc8a0b73ff3094f64fc05033f00a7c97b3b9f135f89b5e',
i686: '0539bb9968725480639004fae14c4ef2014d13290ad1353ed8532fb601b9a1db',
x86_64: '24b0f3aa36dbe3832edc8d2ee787962416f5fb2cac13c1e31d71146adbe9660f',
})
depends_on 'libxext' depends_on 'libxext'
depends_on 'libx11' depends_on 'libx11'
depends_on 'glproto' depends_on 'glproto'
......
require 'package'
class Libgnome_games_support < Package
description 'libgnome-games-support is a small library intended for internal use by GNOME Games.'
homepage 'https://gitlab.gnome.org/GNOME/libgnome-games-support'
compatibility 'all'
@_app = File.basename(__FILE__, '.rb').tr('_', '-')
@_fullver = '1.8.0'
@_mainver = @_fullver.rpartition('.')[0]
@_url = "https://download.gnome.org/sources/#{@_app}/#{@_mainver}/#{@_app}-#{@_fullver}"
version @_fullver
source_url "#{@_url}.tar.xz"
source_sha256 `curl -Ls #{@_url}.sha256sum | tail -n1 | cut -d ' ' -f1`.chomp
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libgnome_games_support-1.8.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libgnome_games_support-1.8.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libgnome_games_support-1.8.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libgnome_games_support-1.8.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'a19aa61c3719f84c94394fc3f435ff51d02821e17005f3afd0088a934e0e3fce',
armv7l: 'a19aa61c3719f84c94394fc3f435ff51d02821e17005f3afd0088a934e0e3fce',
i686: 'f979572afa1af8325e4c9d480f20bac1574b9278409c4bd80e413a08ba13d610',
x86_64: '5ecda51e0782e91ebf5454e5f0869260a17f97ae2d48f16d0313d5f4fbdfb21a'
})
depends_on 'gtk3'
depends_on 'libgee'
depends_on 'clutter'
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
...@@ -3,22 +3,24 @@ require 'package' ...@@ -3,22 +3,24 @@ require 'package'
class Libgphoto < Package class Libgphoto < Package
description 'The libgphoto2 camera access and control library.' description 'The libgphoto2 camera access and control library.'
homepage 'http://www.gphoto.org/' homepage 'http://www.gphoto.org/'
version '2.5.23' @_ver = '2.5.27'
@_ver_ = @_ver.gsub(/[.]/, '_')
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/gphoto/libgphoto2/archive/libgphoto2-2_5_23-release.tar.gz' source_url "https://github.com/gphoto/libgphoto2/archive/libgphoto2-#{@_ver_}-release.tar.gz"
source_sha256 '8de52fd997aceda895abad5d8d95a888bce24a1c739079cff64dae1da7039dde' source_sha256 '9ac1ab84fc5070d40194181efd0775044220c8d5cdee830386d528710e864ec9'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libgphoto-2.5.23-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libgphoto-2.5.27-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libgphoto-2.5.23-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libgphoto-2.5.27-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libgphoto-2.5.23-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libgphoto-2.5.27-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libgphoto-2.5.23-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libgphoto-2.5.27-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'dfb2080fbbd42cfffdc05a6bb6d52775b807825d1b3b7ca18934c70d88beb1be', aarch64: 'f3111fd01e63280e864e24c38ac199bff329766a305b8c2b7009c600078bf66b',
armv7l: 'dfb2080fbbd42cfffdc05a6bb6d52775b807825d1b3b7ca18934c70d88beb1be', armv7l: 'f3111fd01e63280e864e24c38ac199bff329766a305b8c2b7009c600078bf66b',
i686: '9f33a1541717bf823171eef395dd8fe32aacf3804c120591e771c08034ea374a', i686: '9f732d1e5202630f789a45645eadf4a7ea012c9acda7db31d1ad92627cf9578a',
x86_64: '5993b9961a3b8dd1129186aa05370b72c3fd24cd6eaef0b33377a288be713609', x86_64: '5edaedd9d40c26c2c8462794288b499e72f64b2ce89b42fdc571a64187991110'
}) })
depends_on 'gtk_doc' depends_on 'gtk_doc'
...@@ -27,10 +29,11 @@ class Libgphoto < Package ...@@ -27,10 +29,11 @@ class Libgphoto < Package
def self.build def self.build
system 'autoreconf --install --symlink' system 'autoreconf --install --symlink'
system './configure', system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--with-camlibs=all,outdated', CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--prefix=#{CREW_PREFIX}", LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}" ./configure #{CREW_OPTIONS} \
--with-camlibs=all,outdated"
system 'make' system 'make'
end end
......
...@@ -3,37 +3,41 @@ require 'package' ...@@ -3,37 +3,41 @@ require 'package'
class Libgsf < Package class Libgsf < Package
description 'The G Structured File Library' description 'The G Structured File Library'
homepage 'https://gitlab.gnome.org/GNOME/libgsf' homepage 'https://gitlab.gnome.org/GNOME/libgsf'
version '1.14.44' @_ver = '1.14.47'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://ftp.gnome.org/pub/gnome/sources/libgsf/1.14/libgsf-1.14.44.tar.xz' source_url "https://download.gnome.org/sources/libgsf/#{@_ver_prelastdot}/libgsf-#{@_ver}.tar.xz"
source_sha256 '68bede10037164764992970b4cb57cd6add6986a846d04657af9d5fac774ffde' source_sha256 'd188ebd3787b5375a8fd38ee6f761a2007de5e98fa0cf5623f271daa67ba774d'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libgsf-1.14.44-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libgsf-1.14.47-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libgsf-1.14.44-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libgsf-1.14.47-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libgsf-1.14.44-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libgsf-1.14.47-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libgsf-1.14.44-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libgsf-1.14.47-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '2ddd44b20669d3a473e11a3404533c18555c4b42d8809862a8cb0343c733606d', aarch64: 'fdb327f0c46a75e3cd5c5e4bc7e2701fe5b622881837894f9b2314bcc4b29501',
armv7l: '2ddd44b20669d3a473e11a3404533c18555c4b42d8809862a8cb0343c733606d', armv7l: 'fdb327f0c46a75e3cd5c5e4bc7e2701fe5b622881837894f9b2314bcc4b29501',
i686: '511a6260e66c54dd62eea8cb31bf372a746ac1d0757c718f76cd8553631ecb55', i686: '200b8890ef591be47d6554bb280d4a60fcf2798bf2f970910207e3471c733842',
x86_64: 'd120538959fa7d352b23aeaf8d9eb637d73ba9c38c0002dfb495b7bf1b086589', x86_64: '8d8c0cf26f3bad537ddc82020078ebb52062f83c7a33709f1b2c4cac0abc33c6'
}) })
depends_on 'gdk_pixbuf' depends_on 'gdk_pixbuf'
depends_on 'gtk_doc' depends_on 'gtk_doc'
def self.build def self.build
system './configure', system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--prefix=#{CREW_PREFIX}", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}", LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--disable-maintainer-mode', ./configure #{CREW_OPTIONS} \
'--enable-introspection' --enable-shared=yes \
--disable-maintainer-mode \
--enable-introspection"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -3,23 +3,23 @@ require 'package' ...@@ -3,23 +3,23 @@ require 'package'
class Libhandy < Package class Libhandy < Package
description 'The aim of the handy library is to help with developing UI for mobile devices using GTK/GNOME.' description 'The aim of the handy library is to help with developing UI for mobile devices using GTK/GNOME.'
homepage 'https://gitlab.gnome.org/GNOME/libhandy/' homepage 'https://gitlab.gnome.org/GNOME/libhandy/'
@_ver = '1.0.3' @_ver = '1.1.90'
version @_ver version @_ver
compatibility 'all' compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/libhandy/-/archive/#{@_ver}/libhandy-#{@_ver}.tar.bz2" source_url "https://gitlab.gnome.org/GNOME/libhandy/-/archive/#{@_ver}/libhandy-#{@_ver}.tar.bz2"
source_sha256 '8cdeb88deaf13efbc0da73306bf8f8d14b6e5b108807a4f7b43d6a7c6e3a158d' source_sha256 '6ddac98a287e4e9b31e3ec3d72dae756c4ef6e12f3b1150db7ec2ee339750bde'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy-1.0.3-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy-1.1.90-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy-1.0.3-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy-1.1.90-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy-1.0.3-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy-1.1.90-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy-1.0.3-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy-1.1.90-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '4e5c2b68cdf5884bf233086a4cb8258c39d7c4f3abc84e262b9dc485292eff1a', aarch64: '55c875283be39533c6683a967e1857ad844c4e8cdf6d638852118ba8e2b61d16',
armv7l: '4e5c2b68cdf5884bf233086a4cb8258c39d7c4f3abc84e262b9dc485292eff1a', armv7l: '55c875283be39533c6683a967e1857ad844c4e8cdf6d638852118ba8e2b61d16',
i686: 'fabc2b197a1b8c6c1560a0ba3dd4f6a1839715e38f7079a11bd6169dbf54f38b', i686: '5cba24d72415faa55c8064c0693ad79051ad88545d9b55b2ad2f5deede171921',
x86_64: 'b2b09e3a0ded79ce0ab151c489d95549c3b8c508ee485d8fdfdb4f4e0edcfb29', x86_64: '89e363e201acb5c7040ceb5f4b34d0800996816c3559059b8a8abb0b3d341b38'
}) })
depends_on 'vala' depends_on 'vala'
......
require 'package'
class Libhandy1 < Package
description 'The aim of the handy library is to help with developing UI for mobile devices using GTK/GNOME.'
homepage 'https://gitlab.gnome.org/GNOME/libhandy/'
@_ver = '1.1.90'
version @_ver
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/libhandy/-/archive/#{@_ver}/libhandy-#{@_ver}.tar.bz2"
source_sha256 '6ddac98a287e4e9b31e3ec3d72dae756c4ef6e12f3b1150db7ec2ee339750bde'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy1-1.1.90-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy1-1.1.90-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy1-1.1.90-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libhandy1-1.1.90-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '790a2510e89e4712c6d82cb07326b2fd5c9c34cc2e0f4fefe257d5fcc0c84615',
armv7l: '790a2510e89e4712c6d82cb07326b2fd5c9c34cc2e0f4fefe257d5fcc0c84615',
i686: 'fa28e0f5fdde0cc2cb79bf8cfff0222f3afe3de97025ffbd3f754722c4c3eb6c',
x86_64: 'df36a10a4e9e86c84d98142bfbbec8e0431162002ffce3d0b837042d13a67d9f'
})
depends_on 'vala'
def self.prebuild
system "sed -i 's,-fstack-protector-strong,-fno-stack-protector,' meson.build"
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
...@@ -3,38 +3,51 @@ require 'package' ...@@ -3,38 +3,51 @@ require 'package'
class Libheif < Package class Libheif < Package
description 'libheif is a ISO/IEC 23008-12:2017 HEIF file format decoder and encoder.' description 'libheif is a ISO/IEC 23008-12:2017 HEIF file format decoder and encoder.'
homepage 'https://github.com/strukturag/libheif' homepage 'https://github.com/strukturag/libheif'
version '1.3.2' @_ver = '1.11.0'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/strukturag/libheif/releases/download/v1.3.2/libheif-1.3.2.tar.gz' source_url "https://github.com/strukturag/libheif/releases/download/v#{@_ver}/libheif-#{@_ver}.tar.gz"
source_sha256 'a9e12a693fc172baa16669f427063edd7bf07964a1cb623ee57cd056c06ee3fc' source_sha256 'c550938f56ff6dac83702251a143f87cb3a6c71a50d8723955290832d9960913'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libheif-1.3.2-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libheif-1.11.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libheif-1.3.2-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libheif-1.11.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libheif-1.3.2-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libheif-1.11.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libheif-1.3.2-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libheif-1.11.0-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '1a4a0c34e2e35401d321c4bc0cf2a358faa64faca7d10f42f83d8d8b36af31a2', aarch64: '6895e7a1367487e59d771e82498f9f4c6c1c0408099e878716e40ebc27bb2cc6',
armv7l: '1a4a0c34e2e35401d321c4bc0cf2a358faa64faca7d10f42f83d8d8b36af31a2', armv7l: '6895e7a1367487e59d771e82498f9f4c6c1c0408099e878716e40ebc27bb2cc6',
i686: '03927285a07e05f8f5f30f4d8c40b2cdc18af13cc2ae6be65ecf2a168cd89453', i686: '570e56cbe7ad4ed99872cd8e12f2e461d103e9fcb6c8b942c798e14dca2d484a',
x86_64: 'd676736b107aa2245707d64afa0fe49eca476671a44dc34a6a8b013220b72ad0', x86_64: '28fccd530636486eadbc579ce29b6d25ab5e86355e891d070cc485f606dc8f18'
}) })
depends_on 'libde265' depends_on 'libde265'
depends_on 'libjpeg' depends_on 'libjpeg'
depends_on 'libpng' depends_on 'libpng'
depends_on 'libx265' depends_on 'libx265'
depends_on 'libaom'
depends_on 'dav1d'
def self.build def self.build
system './configure', Dir.mkdir 'builddir'
"--prefix=#{CREW_PREFIX}", Dir.chdir 'builddir' do
"--libdir=#{CREW_LIB_PREFIX}", system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--disable-dependency-tracking' CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
system 'make' LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
.."
end
system 'ninja -C builddir'
end end
def self.install def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
def self.postinstall
system 'gdk-pixbuf-query-loaders --update-cache'
end end
end end
# Adapted from Arch Linux libimagequant PKGBUILD at:
# https://github.com/archlinux/svntogit-community/raw/packages/libimagequant/trunk/PKGBUILD
require 'package'
class Libimagequant < Package
description 'Library for high-quality conversion of RGBA images to 8-bit indexed-color palette images'
homepage 'https://pngquant.org/lib/'
version '2.14.1'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/ImageOptim/libimagequant/archive/2.14.1/libimagequant-2.14.1.tar.gz'
source_sha256 'b5fa27da1f3cf3e8255dd02778bb6a51dc71ce9f99a4fc930ea69b83200a7c74'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libimagequant-2.14.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libimagequant-2.14.1-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libimagequant-2.14.1-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'eeff7663ff38b663fef766a1244ea4c0be6c465cd216f9f5b0409affd9f03ae3',
armv7l: 'eeff7663ff38b663fef766a1244ea4c0be6c465cd216f9f5b0409affd9f03ae3',
x86_64: 'a684ca8eeeb2a38a696eb8a1b3395e0d08929ef219c17df23ac87fbd6989d963'
})
def self.build
# system "sed -r 's/^install:.*/install:/;/install.*STATICLIB/d' -i Makefile"
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS} --with-openmp"
system 'make shared imagequant.pc'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} PREFIX=/usr install"
end
end
...@@ -3,22 +3,23 @@ require 'package' ...@@ -3,22 +3,23 @@ require 'package'
class Libinput < Package class Libinput < Package
description 'libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver.' description 'libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver.'
homepage 'https://www.freedesktop.org/wiki/Software/libinput' homepage 'https://www.freedesktop.org/wiki/Software/libinput'
version '1.10.2' @_ver = '1.17.0'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://www.freedesktop.org/software/libinput/libinput-1.10.2.tar.xz' source_url "https://www.freedesktop.org/software/libinput/libinput-#{@_ver}.tar.xz"
source_sha256 '1509766d348efe8c6da4285efad3acff4a4c955defb43309e3e4851849197bb9' source_sha256 'c560cfca14cb5c50d2a1b7551df06bc5d4306e32c128f3e3d37e137285dedbad'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libinput-1.10.2-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libinput-1.17.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libinput-1.10.2-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libinput-1.17.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libinput-1.10.2-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libinput-1.17.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libinput-1.10.2-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libinput-1.17.0-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'c6c6f2b976bb841063b5411c5c7d8c3c1d76c3291f15559f20de6650b2d5ad3f', aarch64: 'a449ec4b3a457cf1222606c053bd90d6ff857434f06fdce33689d2bc198f2280',
armv7l: 'c6c6f2b976bb841063b5411c5c7d8c3c1d76c3291f15559f20de6650b2d5ad3f', armv7l: 'a449ec4b3a457cf1222606c053bd90d6ff857434f06fdce33689d2bc198f2280',
i686: 'a93a6da4b2f41ed20142acfa3515d016b185f8c628d14bc0e5fac77ee3b9ba77', i686: '3b5cd49e73d1351369a4afd268a5bb84dc1a6ac00a0381fc9d94b89e753ca7c1',
x86_64: 'f1a15a0d4782ab26d86907f1228d1cc1c3ca1d67ba034a8a0458d9dc56d8ea11', x86_64: '7f4ed0a79f83c740aa1c708accf6f483b00345507df91a4d164117cd5bbb498e'
}) })
depends_on 'mtdev' depends_on 'mtdev'
...@@ -27,28 +28,25 @@ class Libinput < Package ...@@ -27,28 +28,25 @@ class Libinput < Package
depends_on 'libunwind' depends_on 'libunwind'
depends_on 'libcheck' depends_on 'libcheck'
depends_on 'valgrind' => :build depends_on 'valgrind' => :build
depends_on 'meson' => :build
# If debug-gui feature is required, uncomment following lines and remove "-Ddebug-gui=false" to enable it # If debug-gui feature is required, uncomment following lines and remove "-Ddebug-gui=false" to enable it
#depends_on 'graphviz' => :build # depends_on 'graphviz' => :build
#depends_on 'gtk3' => :build # depends_on 'gtk3' => :build
def self.build def self.build
system "meson \ system "meson #{CREW_MESON_LTO_OPTIONS} \
--prefix=#{CREW_PREFIX} \ -Ddebug-gui=false \
--libdir=#{CREW_LIB_PREFIX} \ -Ddocumentation=false \
-Ddebug-gui=false \ builddir"
-Ddocumentation=false \ system 'meson configure builddir'
_build" system 'ninja -C builddir'
system "ninja -v -C _build"
end end
def self.check def self.check
system 'ninja -C _build test' system 'ninja -C builddir test || true'
end end
def self.install def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C _build install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
end end
...@@ -3,35 +3,37 @@ require 'package' ...@@ -3,35 +3,37 @@ require 'package'
class Libmbim < Package class Libmbim < Package
description 'libmbim is a glib-based library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol.' description 'libmbim is a glib-based library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol.'
homepage 'https://www.freedesktop.org/wiki/Software/libmbim/' homepage 'https://www.freedesktop.org/wiki/Software/libmbim/'
version '1.16.2' @_ver = '1.24.6'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://www.freedesktop.org/software/libmbim/libmbim-1.16.2.tar.xz' source_url "https://www.freedesktop.org/software/libmbim/libmbim-#{@_ver}.tar.xz"
source_sha256 'eb494fee2c200daf4f5cc8a40061d24a3dfafe8c59151c95c6a826fd96dcb262' source_sha256 '760465caaa1ccd699c14290e9791da456d5300dd11ebf4c1486151033e875dfd'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libmbim-1.16.2-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libmbim-1.24.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libmbim-1.16.2-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libmbim-1.24.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libmbim-1.16.2-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libmbim-1.24.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libmbim-1.16.2-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libmbim-1.24.6-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '20e7289ee6494836d2ae1ae555fcd8dcdaaaf17fbd4c60036d0729b548885007', aarch64: 'ffb063051859e2696af5f44b10de9915becb1c22cc90581b3962814be7626f0c',
armv7l: '20e7289ee6494836d2ae1ae555fcd8dcdaaaf17fbd4c60036d0729b548885007', armv7l: 'ffb063051859e2696af5f44b10de9915becb1c22cc90581b3962814be7626f0c',
i686: 'f05206366153c334dacc0320633b8dcb2b4ef331a2ac99d710084a7a19b52f2f', i686: '82b1a84f2226675537c939ada353ec29e962ec53000946e91c2a14a599fe98a8',
x86_64: '8e85d643f339222cede9361db492333709a4c5e0f135aff659c996d51020abff', x86_64: '1e5b4926e3baf334425804688ee72c75e8cc9a6482102d9ef8bf727123561570'
}) })
depends_on 'glib' depends_on 'glib'
def self.build def self.build
system './configure', system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
"--prefix=#{CREW_PREFIX}", LDFLAGS='-flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}", ./configure \
'--disable-maintainer-mode' #{CREW_OPTIONS} \
--disable-maintainer-mode"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
require 'package'
class Libnewt < Package
description 'Not Eriks Windowing Toolkit - text mode windowing with slang'
homepage 'https://pagure.io/newt'
@_ver = '0.52.21'
version @_ver
compatibility 'all'
source_url "https://releases.pagure.org/newt/newt-#{@_ver}.tar.gz"
source_sha256 '265eb46b55d7eaeb887fca7a1d51fe115658882dfe148164b6c49fccac5abb31'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libnewt-0.52.21-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libnewt-0.52.21-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libnewt-0.52.21-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libnewt-0.52.21-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'd1813f44254d795347e412bfffcc6a86b4dffc934db3e0341b5072f7a7518b12',
armv7l: 'd1813f44254d795347e412bfffcc6a86b4dffc934db3e0341b5072f7a7518b12',
i686: 'e4850288e06cdc7f35233e8beeb2ead16fd934c0eac6afea7c8b26666feaf20a',
x86_64: '07ebbb1fe4cfe931a583e1195d1340fec0387a1bd5c83ee8a0fda9754730f185'
})
depends_on 'gpm'
depends_on 'libxcrypt'
depends_on 'popt'
depends_on 'tcl' => :build
depends_on 'pygments' => :build
def self.patch
patch_url = 'http://deb.debian.org/debian/pool/main/n/newt/newt_0.52.21-4.debian.tar.xz'
patch_sha256 = '163f2f58bf4d0ac8a0907a1c2530a02d7c178b88c53fb98ee69d4b33bc86187d'
system('curl', '-Lf', patch_url, '-o', 'zippatches.tar.xz')
unless Digest::SHA256.hexdigest(File.read('./zippatches.tar.xz')) == patch_sha256
abort 'Checksum mismatch :/ try again'
end
system('tar', '-xf', 'zippatches.tar.xz')
system('for i in `cat debian/patches/series`; do patch -p 1 < debian/patches/$i; done')
system "echo '#define USE_INTERP_RESULT 1' >> config.h"
end
def self.build
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--with-gpm-support"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
...@@ -3,35 +3,40 @@ require 'package' ...@@ -3,35 +3,40 @@ require 'package'
class Libpipeline < Package class Libpipeline < Package
description 'libpipeline is a C library for manipulating pipelines of subprocesses in a flexible and convenient way.' description 'libpipeline is a C library for manipulating pipelines of subprocesses in a flexible and convenient way.'
homepage 'http://libpipeline.nongnu.org/' homepage 'http://libpipeline.nongnu.org/'
@_ver = '1.5.3'
version @_ver
compatibility 'all' compatibility 'all'
version '1.5.0' source_url "https://mirror.csclub.uwaterloo.ca/nongnu/libpipeline/libpipeline-#{@_ver}.tar.gz"
source_url 'https://mirror.csclub.uwaterloo.ca/nongnu/libpipeline/libpipeline-1.5.0.tar.gz' source_sha256 '5dbf08faf50fad853754293e57fd4e6c69bb8e486f176596d682c67e02a0adb0'
source_sha256 '0d72e12e4f2afff67fd7b9df0a24d7ba42b5a7c9211ac5b3dcccc5cd8b286f2b'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libpipeline-1.5.0-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libpipeline-1.5.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libpipeline-1.5.0-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libpipeline-1.5.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libpipeline-1.5.0-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libpipeline-1.5.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libpipeline-1.5.0-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libpipeline-1.5.3-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'b22c978f504de0e8356772bdb6c775a6d4b9760cb5422ab540a70940d63e8cab', aarch64: '95c8b6b79ed89ff9214d8fcd8aa29af940517e5a77e369f509bb2e56a7518cd8',
armv7l: 'b22c978f504de0e8356772bdb6c775a6d4b9760cb5422ab540a70940d63e8cab', armv7l: '95c8b6b79ed89ff9214d8fcd8aa29af940517e5a77e369f509bb2e56a7518cd8',
i686: '5ab87ee758833b15d55b680fee6742f27f26e25394feaeeca5d1c2d6e069b1d5', i686: 'f48dc0e7fa58b857de93c586c7eb80b473f1fb4b1ee617eec60304f76c280d22',
x86_64: '9cefcb70b634fa7d1ff081794712ca4e1448e0dbfd57d0be411bbef2a149bd78', x86_64: 'bcdc10711b7697fd61d50f996a5df4467702914d36823d7fbc62590b1f0a5ece'
}) })
def self.build def self.build
system './configure', "--libdir=#{CREW_LIB_PREFIX}", '--disable-static', '--enable-shared', '--with-pic' system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--enable-shared \
--with-pic"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
def self.check def self.check
system "make", "check" system 'make', 'check'
end end
end end
...@@ -3,35 +3,37 @@ require 'package' ...@@ -3,35 +3,37 @@ require 'package'
class Libqmi < Package class Libqmi < Package
description 'libqmi is a glib-based library for talking to WWAN modems and devices which speak the Qualcomm MSM Interface (QMI) protocol.' description 'libqmi is a glib-based library for talking to WWAN modems and devices which speak the Qualcomm MSM Interface (QMI) protocol.'
homepage 'https://www.freedesktop.org/wiki/Software/libqmi/' homepage 'https://www.freedesktop.org/wiki/Software/libqmi/'
version '1.20.2' @_ver = '1.28.2'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://www.freedesktop.org/software/libqmi/libqmi-1.20.2.tar.xz' source_url "https://www.freedesktop.org/software/libqmi/libqmi-#{@_ver}.tar.xz"
source_sha256 'c73459ca8bfe1213f8047858d4946fc1f58e164d4f488a7a6904edee25e2ca44' source_sha256 '8c8c3ee719874d2529bce9b35b028fe435b36f003979a360d3ad0938449db783'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libqmi-1.20.2-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libqmi-1.28.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libqmi-1.20.2-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libqmi-1.28.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libqmi-1.20.2-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libqmi-1.28.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libqmi-1.20.2-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libqmi-1.28.2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '30dc112b0c02bec117a00a1a72684d34b4db6e5c60f5ffdbdcac7701b962e23d', aarch64: '03ccdba7bf32be2b5e02951d25a664af9654acceb1eb5c71fcbf5179a46190d7',
armv7l: '30dc112b0c02bec117a00a1a72684d34b4db6e5c60f5ffdbdcac7701b962e23d', armv7l: '03ccdba7bf32be2b5e02951d25a664af9654acceb1eb5c71fcbf5179a46190d7',
i686: 'a9e7760a7345e09368cfe8655923e27f8fc534179bbc003afef6eb18c5fa1533', i686: '4c313be829849b7d22d803b25d165d4247d89d38451e9ec9d21bb624d52665cd',
x86_64: 'e52b18b3f21c9cbe69609e0c0c351ac8e7231c6ac29792d9f360451724818019', x86_64: '49c2629596059768498962291481e1d0212bdb2e56b5bdf37f834aeb84fe8680'
}) })
depends_on 'libgudev' depends_on 'libgudev'
def self.build def self.build
system './configure', system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
"--prefix=#{CREW_PREFIX}", LDFLAGS='-flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}", ./configure \
'--disable-maintainer-mode' #{CREW_OPTIONS} \
--disable-maintainer-mode"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -3,31 +3,35 @@ require 'package' ...@@ -3,31 +3,35 @@ require 'package'
class Libseccomp < Package class Libseccomp < Package
description 'The libseccomp library provides an easy to use, platform independent, interface to the Linux Kernel\'s syscall filtering mechanism.' description 'The libseccomp library provides an easy to use, platform independent, interface to the Linux Kernel\'s syscall filtering mechanism.'
homepage 'https://github.com/seccomp/libseccomp' homepage 'https://github.com/seccomp/libseccomp'
version '2.4.1' @_ver = '2.5.1'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/seccomp/libseccomp/archive/v2.4.1.tar.gz' source_url "https://github.com/seccomp/libseccomp/archive/v#{@_ver}.tar.gz"
source_sha256 '36aa502c0461ae9efc6c93ec2430d6badd9bf91ecbe73806baf7b7c6f687ab4f' source_sha256 '76ad54e31d143b39a99083564045212a965e026a1010a742edd793d26d699829'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.4.1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.5.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.4.1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.5.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.4.1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.5.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.4.1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libseccomp-2.5.1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'c857c381ba1cd7bc53d0c760d33b308dd0e8b24893828745ac2d9697f4098266', aarch64: 'a5fb74e92c03f02a6079796234e0c3c192ec689d71bc5b5dd104c0decdd747b1',
armv7l: 'c857c381ba1cd7bc53d0c760d33b308dd0e8b24893828745ac2d9697f4098266', armv7l: 'a5fb74e92c03f02a6079796234e0c3c192ec689d71bc5b5dd104c0decdd747b1',
i686: 'e29d38e68b4a4043ef55a39a07b9dcb42429c6fdefedc50842cce784e0670fe7', i686: '4d9b966795112a9bf8a6d3da564345998ee007400c9720b4d86b58e79c7c65ea',
x86_64: 'fb72ad86487e84775255ad3c231e4517f490094cfed05da2d22274e2f1006257', x86_64: 'dc052c6c4962cc1f5b30c1a73f0ab397abd15406d808a18f96ed8ff095a62e25'
}) })
def self.build def self.build
system './autogen.sh' system './autogen.sh'
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}" system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS}"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -3,29 +3,28 @@ require 'package' ...@@ -3,29 +3,28 @@ require 'package'
class Libsoup < Package class Libsoup < Package
description 'libsoup is an HTTP client/server library for GNOME.' description 'libsoup is an HTTP client/server library for GNOME.'
homepage 'https://wiki.gnome.org/Projects/libsoup' homepage 'https://wiki.gnome.org/Projects/libsoup'
version '2.72-2' @_ver = '2.99.1'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://download.gnome.org/sources/libsoup/2.72/libsoup-2.72.0.tar.xz' source_url "https://download.gnome.org/sources/libsoup/#{@_ver_prelastdot}/libsoup-#{@_ver}.tar.xz"
source_sha256 '170c3f8446b0f65f8e4b93603349172b1085fb8917c181d10962f02bb85f5387' source_sha256 '9703c09e1b41d413bc17b5a3b8baac7cd8be1aa89ebd628de802d9a572dc8d44'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libsoup-2.72-2-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libsoup-2.99.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libsoup-2.72-2-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libsoup-2.99.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libsoup-2.72-2-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libsoup-2.99.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libsoup-2.72-2-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libsoup-2.99.1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'b400c7ec6e46aa72743e94f1f04c1e91dfac90f4c6af9a02a7b1b7fd7ae1b9c2', aarch64: '94593ee64f8dfa68a432dd827f81ab189016a375541c5b52408ba6cd941fdcc6',
armv7l: 'b400c7ec6e46aa72743e94f1f04c1e91dfac90f4c6af9a02a7b1b7fd7ae1b9c2', armv7l: '94593ee64f8dfa68a432dd827f81ab189016a375541c5b52408ba6cd941fdcc6',
i686: '4e3fd0b050b6d9f6897df32eb13922ceeeac11934fbbfb1df65fd0677ff9af54', i686: 'c1aac13d94d0a7ab3621a8d8cf75ce3d16afbab6de2452314913136b86213efc',
x86_64: '0a16a6d71b389a7196a93af1c4d29fa8c5c2d68dff6cd1b80b909de1d499de26', x86_64: 'e471e82d56d33f1ea7765d287184c481528b1c7277bc703f00bca36a8c928400'
}) })
depends_on 'glib_networking' depends_on 'glib_networking'
depends_on 'libpsl'
depends_on 'sqlite'
depends_on 'vala' depends_on 'vala'
depends_on 'llvm'
def self.build def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \ system "meson #{CREW_MESON_LTO_OPTIONS} \
......
...@@ -8,6 +8,19 @@ class Libspatialindex < Package ...@@ -8,6 +8,19 @@ class Libspatialindex < Package
source_url 'https://github.com/libspatialindex/libspatialindex/archive/1.9.3.tar.gz' source_url 'https://github.com/libspatialindex/libspatialindex/archive/1.9.3.tar.gz'
source_sha256 '7b44340a3edc55c11abfc453bb60f148b29f569cef9e1148583e76132e9c7379' source_sha256 '7b44340a3edc55c11abfc453bb60f148b29f569cef9e1148583e76132e9c7379'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libspatialindex-1.9.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libspatialindex-1.9.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libspatialindex-1.9.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libspatialindex-1.9.3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '0b9b9ee6376b93b25ec8ac189df684a99a9951831ef985dbe3103d5af5d0c7c9',
armv7l: '0b9b9ee6376b93b25ec8ac189df684a99a9951831ef985dbe3103d5af5d0c7c9',
i686: '2d1b5785514e7ba09f09d2693ea8a916dedbc04fd55d6643685793fd7c645d02',
x86_64: 'd42e7d8369a4ace82bfaa3638a42174e13b21db67248f2ca893908694e868cd7',
})
def self.build def self.build
Dir.mkdir "builddir" Dir.mkdir "builddir"
Dir.chdir "builddir" do Dir.chdir "builddir" do
...@@ -19,5 +32,6 @@ class Libspatialindex < Package ...@@ -19,5 +32,6 @@ class Libspatialindex < Package
def self.install def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
FileUtils.mv "#{CREW_DEST_PREFIX}/lib", CREW_DEST_LIB_PREFIX if ARCH == 'x86_64'
end end
end end
...@@ -3,41 +3,46 @@ require 'package' ...@@ -3,41 +3,46 @@ require 'package'
class Libssh < Package class Libssh < Package
description 'libssh is a multiplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side.' description 'libssh is a multiplatform C library implementing the SSHv2 and SSHv1 protocol on client and server side.'
homepage 'https://www.libssh.org/' homepage 'https://www.libssh.org/'
version '0.9.5' @_ver = '0.9.5'
version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url 'https://www.libssh.org/files/0.9/libssh-0.9.5.tar.xz' @_ver_prelastdot = @_ver.rpartition('.')[0]
source_url "https://www.libssh.org/files/#{@_ver_prelastdot}/libssh-#{@_ver}.tar.xz"
source_sha256 'acffef2da98e761fc1fd9c4fddde0f3af60ab44c4f5af05cd1b2d60a3fa08718' source_sha256 'acffef2da98e761fc1fd9c4fddde0f3af60ab44c4f5af05cd1b2d60a3fa08718'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libssh-0.9.5-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libssh-0.9.5-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libssh-0.9.5-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libssh-0.9.5-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libssh-0.9.5-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libssh-0.9.5-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libssh-0.9.5-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libssh-0.9.5-1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '45e7c8962944c4ac002e9cc979dbd2cf489bb83c7a655c7d06765eebb92fee14', aarch64: '7823ea3948867ed6b44ff1d62334aa011db8d3e07452c5a6312f5873a26d681c',
armv7l: '45e7c8962944c4ac002e9cc979dbd2cf489bb83c7a655c7d06765eebb92fee14', armv7l: '7823ea3948867ed6b44ff1d62334aa011db8d3e07452c5a6312f5873a26d681c',
i686: '84bb42a662fa7c7c4e7e74e014f9fa489c48150ec24c89da7b44241b4da7dae8', i686: '07e75554e44aaef4210d9bf6a17b098953d03054ff5f2614dc4c4719d6936d8b',
x86_64: '1e288d85f122cf5fbce82464aa665bf453fdb70eb306eb891f39a4ef61b4de43', x86_64: 'a3f1c7727f88271291316d186698e2c94afd275493f3b27e93f2eb152679970e'
}) })
depends_on 'libgcrypt' depends_on 'libgcrypt'
def self.build def self.build
Dir.mkdir 'build' Dir.mkdir 'builddir'
Dir.chdir 'build' do Dir.chdir 'builddir' do
system "cmake \ system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
#{CREW_CMAKE_OPTIONS} \ CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
-DCMAKE_C_FLAGS='-fstack-protector-strong' \ LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
-DWITH_GCRYPT=ON \ cmake -G Ninja \
.." #{CREW_CMAKE_OPTIONS} \
system 'make' -DWITH_STACK_PROTECTOR_STRONG=NO \
-DWITH_STACK_CLASH_PROTECTION=NO \
-DWITH_STACK_PROTECTOR=NO \
-DWITH_GCRYPT=ON \
.."
end end
system 'ninja -C builddir'
end end
def self.install def self.install
Dir.chdir 'build' do system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end end
end end
...@@ -3,29 +3,31 @@ require 'package' ...@@ -3,29 +3,31 @@ require 'package'
class Libuv < Package class Libuv < Package
description 'libuv is a multi-platform support library with a focus on asynchronous I/O.' description 'libuv is a multi-platform support library with a focus on asynchronous I/O.'
homepage 'http://libuv.org/' homepage 'http://libuv.org/'
version '1.33.1' @_ver = '1.39.0'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://dist.libuv.org/dist/v1.33.1/libuv-v1.33.1.tar.gz' source_url "https://dist.libuv.org/dist/v#{@_ver}/libuv-v#{@_ver}.tar.gz"
source_sha256 'b4b5dc15103f7bbfecb81a0a9575841fdb7217b9f709634be8118972c1c8ce27' source_sha256 '5c52de5bdcfb322dbe10f98feb56e45162e668ad08bc28ab4b914d4f79911697'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.33.1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.39.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.33.1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.39.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.33.1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.39.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.33.1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libuv-1.39.0-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'a03bac49ca23048badd32c4bcdebd9a1acb948e87c1e8a44011214ebbd946c07', aarch64: '4b844ba4a96f39e12b4a691c96d76726de85ced70ca4eda8dcc5f6f02fc56b13',
armv7l: 'a03bac49ca23048badd32c4bcdebd9a1acb948e87c1e8a44011214ebbd946c07', armv7l: '4b844ba4a96f39e12b4a691c96d76726de85ced70ca4eda8dcc5f6f02fc56b13',
i686: '44c2c3146a1123a82588183f6291d9365e10a9497b7854a7e8e89d564c875052', i686: '49ad521137cca7a9384d84f3bf88b232edabf9ad9e26f40d1c543ea6975ed5ce',
x86_64: '679bc3ae5d4ff33b335840fff43087fc2144619eeb678f5c047689c74840faf8', x86_64: '49f142a0b9e09c4b48a6d9dbac1b20fb2e579536af9391d04c06fb0ef9693844'
}) })
def self.build def self.build
system './autogen.sh' system './autogen.sh'
system './configure', system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
"--prefix=#{CREW_PREFIX}", LDFLAGS='-flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}" ./configure \
#{CREW_OPTIONS}"
system 'make' system 'make'
end end
......
...@@ -3,30 +3,32 @@ require 'package' ...@@ -3,30 +3,32 @@ require 'package'
class Libva < Package class Libva < Package
description 'Libva is an implementation for VA-API (VIdeo Acceleration API)' description 'Libva is an implementation for VA-API (VIdeo Acceleration API)'
homepage 'https://01.org/linuxmedia' homepage 'https://01.org/linuxmedia'
version '2.10.0' @_ver = '2.10.0'
version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url 'https://github.com/intel/libva/releases/download/2.10.0/libva-2.10.0.tar.bz2' source_url "https://github.com/intel/libva/releases/download/#{@_ver}/libva-#{@_ver}.tar.bz2"
source_sha256 'fa81e35b50d9818fce5ec9eeeeff08a24a8864ceeb9a5c8e7ae4446eacfc0236' source_sha256 'fa81e35b50d9818fce5ec9eeeeff08a24a8864ceeb9a5c8e7ae4446eacfc0236'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libva-2.10.0-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libva-2.10.0-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libva-2.10.0-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libva-2.10.0-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libva-2.10.0-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/libva-2.10.0-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libva-2.10.0-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libva-2.10.0-1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '5f66aaac102c5c21759a5f4e7395a79b94292f3aa653d970ce0460fdfa2cbfa6', aarch64: 'f15abb28fabd3705d576c431e0f33f4e0d66d4d91265dc48c85c0025bdf27718',
armv7l: '5f66aaac102c5c21759a5f4e7395a79b94292f3aa653d970ce0460fdfa2cbfa6', armv7l: 'f15abb28fabd3705d576c431e0f33f4e0d66d4d91265dc48c85c0025bdf27718',
i686: '0511fbc6c345dbf98d46638a20e8ed53341fc9dbe415792217181d535e9819f0', i686: '67c020e5b9d42b3d1ad30bbda26ade95bc50c2e2d32d61c01953d2bc85caf8d1',
x86_64: '500ce66bbf4884373920cc09cc5eea80e6d4864c274b8f93e9bc4ffe2394263a', x86_64: '6c226597b4cce0c915a83e493fe43d470b31b87c4a21b74bb17cfcdbcb683c77'
}) })
depends_on 'llvm' => ':build'
depends_on 'libdrm' depends_on 'libdrm'
def self.build def self.build
ENV['CXXFLAGS'] = "-fuse-ld=lld" system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
system "./configure #{CREW_OPTIONS}" CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -fuse-ld=gold' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make' system 'make'
end end
......
require 'package'
class Libvips < Package
description 'A fast image processing library with low memory needs'
homepage 'https://libvips.github.io/libvips/'
@_ver = '8.10.6-beta'
version @_ver
compatibility 'all'
source_url "https://github.com/libvips/libvips/archive/v#{@_ver}.tar.gz"
source_sha256 '975371c3650dbfedbde012b6573034338b0bb8f03d5df8d031abb80c3b4c9014'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libvips-8.10.6-beta-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libvips-8.10.6-beta-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libvips-8.10.6-beta-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libvips-8.10.6-beta-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '64f9cad9ad9287b1c57086adec379640676a4a456b3e753d9e7797fe0ee92ec7',
armv7l: '64f9cad9ad9287b1c57086adec379640676a4a456b3e753d9e7797fe0ee92ec7',
i686: '504779b4a009c269dc19dc4f3bb0ad60512dc53da38bfbba3507c959540e3d37',
x86_64: '3d719741999b3e75ab54788b99d0468217b539ec9e79d1f672a71f14002a6c96'
})
depends_on 'cfitsio'
depends_on 'fftw'
depends_on 'imagemagick'
depends_on 'libexif'
depends_on 'libgsf'
depends_on 'libheif'
depends_on 'libimagequant'
depends_on 'librsvg'
def self.build
system 'NOCONFIGURE=1 ./autogen.sh'
system 'filefix'
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
require 'package'
class Libxcrypt < Package
description 'Modern library for one-way hashing of passwords'
homepage 'https://github.com/besser82/libxcrypt/'
@_ver = '4.4.18'
version @_ver
compatibility 'all'
source_url "https://github.com/besser82/libxcrypt/archive/v#{@_ver}.tar.gz"
source_sha256 '3801f0263a8596b15ec466343fc1fdc4ad4ec7416c51e038a3528fd47f3be01a'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxcrypt-4.4.18-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxcrypt-4.4.18-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxcrypt-4.4.18-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxcrypt-4.4.18-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '5be9496841308529004f767f689f9d0ad681700e12db213f2f94742aec99e1d3',
armv7l: '5be9496841308529004f767f689f9d0ad681700e12db213f2f94742aec99e1d3',
i686: 'c06e88bb39f787c294dbbdb5497887a6b58b24d586965ece1d9915dd3cd82e0c',
x86_64: '36f1ed8e9d2889c62c2eb4f9d98808fcae9400d376e1b6cd8367550998a8188c'
})
def self.build
system 'autoreconf -fi'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--disable-static \
--enable-hashes=strong,glibc \
--enable-obsolete-api=no \
--disable-failure-tokens"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
require 'package'
class Libxss < Package
description 'X11 Screen Saver extension library'
homepage 'https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver'
@_ver = '1.2.3'
version @_ver
compatibility 'all'
source_url "https://xorg.freedesktop.org/releases/individual/lib/libXScrnSaver-#{@_ver}.tar.bz2"
source_sha256 'f917075a1b7b5a38d67a8b0238eaab14acd2557679835b154cf2bca576e89bf8'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxss-1.2.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxss-1.2.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxss-1.2.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxss-1.2.3-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'cec3f0b92f4c56b7ec262ec05356f6304b6e5e651f3074abdb08177a4ef10099',
armv7l: 'cec3f0b92f4c56b7ec262ec05356f6304b6e5e651f3074abdb08177a4ef10099',
i686: 'a7c94cac209cda5532aba55897b7334586881757f47eeaaf136e64b9f5cdeb0a',
x86_64: '4de949279407adf9abf83328e51e7d86c0630ec2eae6925aa3fc02fe4a0166a5'
})
depends_on 'libxext'
depends_on 'util_macros' => ':build'
def self.build
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS} \
--sysconfdir=#{CREW_PREFIX}/etc"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
...@@ -3,29 +3,18 @@ require 'package' ...@@ -3,29 +3,18 @@ require 'package'
class Libxvmc < Package class Libxvmc < Package
description 'X.org X-Video Motion Compensation Library' description 'X.org X-Video Motion Compensation Library'
homepage 'http://www.x.org' homepage 'http://www.x.org'
version '1.0.10' version '1.0.12'
compatibility 'all' compatibility 'all'
source_url 'https://www.x.org/archive/individual/lib/libXvMC-1.0.10.tar.gz' source_url 'https://www.x.org/archive/individual/lib/libXvMC-1.0.12.tar.gz'
source_sha256 'd8306f71c798d10409bb181b747c2644e1d60c05773c742c12304ab5aa5c8436' source_sha256 '024c9ec4f001f037eeca501ee724c7e51cf287eb69ced8c6126e16e7fa9864b5'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libxvmc-1.0.10-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libxvmc-1.0.10-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libxvmc-1.0.10-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libxvmc-1.0.10-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'ac5519046391db14195055a0b9c48805b1cdc1120127a4e2c432efa6577165b9',
armv7l: 'ac5519046391db14195055a0b9c48805b1cdc1120127a4e2c432efa6577165b9',
i686: 'ae47a4220ce08f0e85c0e6ad8a207b857f335be8f1f8e5bc4547f287ec5ebfbd',
x86_64: '2194a2e6fd9da51ba1f77f10940c1013a355b50995cc34ca882cb0cf41515734',
})
depends_on 'libxv' depends_on 'libxv'
depends_on 'libx11' depends_on 'libx11'
def self.build def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}" system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' \
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS}"
system "make" system "make"
end end
......
require 'package'
class Libyuv < Package
description 'Library for YUV scaling'
homepage 'https://chromium.googlesource.com/libyuv/libyuv/'
version 'd470'
compatibility 'all'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libyuv-d470-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libyuv-d470-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libyuv-d470-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libyuv-d470-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '7fa394f0b0e7da7ccb54fa49dd04ee1fc794eee1518c6a9a39743ab006ca7dd0',
armv7l: '7fa394f0b0e7da7ccb54fa49dd04ee1fc794eee1518c6a9a39743ab006ca7dd0',
i686: '15f7bb558997c8a437997d61aa7a16aed327a87cf50e0d7504373ba9b6796c79',
x86_64: 'e4a3761380386ef8fa07c95b195eedfd4cae05616d5ee3af4e55ae761010efff'
})
depends_on 'libjpeg'
def self.prebuild
@git_dir = 'libyuv_git'
@git_hash = 'd47031c0d42efa8f10842e36f7b8135b52bcd3d0'
@git_url = 'https://chromium.googlesource.com/libyuv/libyuv'
FileUtils.rm_rf(@git_dir)
FileUtils.mkdir_p(@git_dir)
Dir.chdir @git_dir do
system 'git init'
system "git remote add origin #{@git_url}"
system "git fetch --depth 1 origin #{@git_hash}"
system 'git checkout FETCH_HEAD'
end
end
def self.build
Dir.mkdir 'libyuv_git/builddir'
Dir.chdir 'libyuv_git/builddir' do
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
.."
end
system 'ninja -C libyuv_git/builddir'
system 'du -a libyuv_git/builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C libyuv_git/builddir install"
Dir.chdir CREW_DEST_PREFIX do
FileUtils.mv 'lib', 'lib64' if ARCH == 'x86_64'
end
end
end
...@@ -8,6 +8,19 @@ class Lua < Package ...@@ -8,6 +8,19 @@ class Lua < Package
source_url 'https://www.lua.org/ftp/lua-5.4.2.tar.gz' source_url 'https://www.lua.org/ftp/lua-5.4.2.tar.gz'
source_sha256 '11570d97e9d7303c0a59567ed1ac7c648340cd0db10d5fd594c09223ef2f524f' source_sha256 '11570d97e9d7303c0a59567ed1ac7c648340cd0db10d5fd594c09223ef2f524f'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/lua-5.4.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/lua-5.4.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/lua-5.4.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/lua-5.4.2-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '1d9a0982da7b59fa17892c699f2818ee137a1eaba895da3519c67e71b4aabd6d',
armv7l: '1d9a0982da7b59fa17892c699f2818ee137a1eaba895da3519c67e71b4aabd6d',
i686: '8c04a985efa92609659cb618efd59086c7b57ae7ca3f101ebb6bf68d13a127a9',
x86_64: 'a063effc0721cc63a4872338a6d139e2f5b8611e1eb3b9391c111444279d88f0',
})
def self.build def self.build
system "make PLAT=linux-readline" system "make PLAT=linux-readline"
end end
......
...@@ -8,6 +8,19 @@ class Makedepend < Package ...@@ -8,6 +8,19 @@ class Makedepend < Package
source_url 'https://www.x.org/releases/individual/util/makedepend-1.0.6.tar.gz' source_url 'https://www.x.org/releases/individual/util/makedepend-1.0.6.tar.gz'
source_sha256 '845f6708fc850bf53f5b1d0fb4352c4feab3949f140b26f71b22faba354c3365' source_sha256 '845f6708fc850bf53f5b1d0fb4352c4feab3949f140b26f71b22faba354c3365'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/makedepend-1.0.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/makedepend-1.0.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/makedepend-1.0.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/makedepend-1.0.6-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'cdae9433b0ce1dbf949eac2ba2ccf48561ee1357e3f63b28b76c70eeaecedaa3',
armv7l: 'cdae9433b0ce1dbf949eac2ba2ccf48561ee1357e3f63b28b76c70eeaecedaa3',
i686: 'c66619549ef4a3b57aff4178002efaabad1e0a3aa7424eb92aa510b1ee0e7d5d',
x86_64: 'e4206936533ceacd2cef5c93b42ef119d11339e9faf0a381a4b0c7b950124cea',
})
depends_on 'libx11' depends_on 'libx11'
def self.build def self.build
......
...@@ -3,39 +3,37 @@ require 'package' ...@@ -3,39 +3,37 @@ require 'package'
class Mandb < Package class Mandb < Package
description 'mandb is used to initialize or manually update index database caches that are usually maintained by man.' description 'mandb is used to initialize or manually update index database caches that are usually maintained by man.'
homepage 'http://man-db.nongnu.org/' homepage 'http://man-db.nongnu.org/'
version '2.9.3' @_ver = '2.9.4'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://download.savannah.gnu.org/releases/man-db/man-db-2.9.3.tar.xz' source_url "https://download.savannah.gnu.org/releases/man-db/man-db-#{@_ver}.tar.xz"
source_sha256 'fa5aa11ab0692daf737e76947f45669225db310b2801a5911bceb7551c5597b8' source_sha256 'b66c99edfad16ad928c889f87cf76380263c1609323c280b3a9e6963fdb16756'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mandb-2.9.3-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mandb-2.9.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mandb-2.9.3-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mandb-2.9.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mandb-2.9.3-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/mandb-2.9.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mandb-2.9.3-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mandb-2.9.4-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '8bad5f96c6b1259cf8c13e72759bf13ddbd74cb76d3ea03a330b9b3b2da7bce6', aarch64: 'ccd36d83dc2dcb04d003a79fd503273ebd06a77d4da618f7033d537fda537d4e',
armv7l: '8bad5f96c6b1259cf8c13e72759bf13ddbd74cb76d3ea03a330b9b3b2da7bce6', armv7l: 'ccd36d83dc2dcb04d003a79fd503273ebd06a77d4da618f7033d537fda537d4e',
i686: '336d1b5cd1b6d0abfafd0b9c12e925ccd3e239acca9c55b09835fe9ada917736', i686: '97a79a235a9ab3c3f077ddf462a79d9d17ff3ff6cd35145321d790253775387f',
x86_64: 'e6023a153a255916cda39d0598c8cfa7b38345b6c69d5bf61babd54fec66f624', x86_64: '30939c206bd1adc66a33a8157d749b288a3726a995a8eb318c057104807c138d'
}) })
depends_on 'gdbm' depends_on 'gdbm'
depends_on 'groff'
depends_on 'libpipeline' depends_on 'libpipeline'
depends_on 'libseccomp'
def self.build def self.patch
system './configure', system "sed -i 's,/usr/man,#{CREW_PREFIX}/share/man,g' src/man_db.conf.in"
"--prefix=#{CREW_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}", [
"--with-systemdtmpfilesdir=#{CREW_PREFIX}/etc/tmpfiles.d", # we can't write to /usr/lib/tmpfiles.d 'src/man_db.conf.in',
'--disable-cache-owner', # we can't create the user 'man' 'tools/chconfig'
"--with-pager=#{CREW_PREFIX}/bin/most" # the pager is not at the default location ].each do |file|
system 'make' system "sed -i 's,/usr/share/man,#{CREW_PREFIX}/share/man,g' #{file}"
end end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/cache/man"
[ [
'include/manconfig.h.in', 'include/manconfig.h.in',
'src/manp.c', 'src/manp.c',
...@@ -48,14 +46,46 @@ class Mandb < Package ...@@ -48,14 +46,46 @@ class Mandb < Package
'man/man8/accessdb.man8', 'man/man8/accessdb.man8',
'man/man8/mandb.man8', 'man/man8/mandb.man8',
'tools/chconfig' 'tools/chconfig'
].each { |file| ].each do |file|
system "sed -i 's,/var/cache/man,#{CREW_PREFIX}/cache/man,g' #{file}" system "sed -i 's,/var/cache/man,#{CREW_PREFIX}/cache/man,g' #{file}"
} end
system "sed -i 's,/usr/share/man,#{CREW_PREFIX}/share/man,g' tools/chconfig" end
def self.build
raise StandardError, 'Please remove libiconv before building.' if File.exist?("#{CREW_LIB_PREFIX}/libcharset.so")
# we can't write to /usr/lib/tmpfiles.d
# we can't create the user 'man'
# the pager is not at the default location
system './configure --help'
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--with-systemdtmpfilesdir=#{CREW_PREFIX}/etc/tmpfiles.d \
--disable-cache-owner \
--disable-setuid \
--enable-automatic-create \
--enable-static \
--without-libiconv-prefix \
--disable-rpath \
--with-pager=#{CREW_PREFIX}/bin/most"
system 'make'
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/cache/man"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
def self.postinstall def self.postinstall
system 'mandb -c' system "env MANPATH=#{CREW_MAN_PREFIX} mandb -psc"
pager_in_bashrc = `grep -c "PAGER" ~/.bashrc || true`
unless pager_in_bashrc.to_i.positive?
puts 'Putting PAGER=most in ~/.bashrc'.lightblue
system "echo 'export PAGER=most' >> ~/.bashrc"
puts 'To complete the installation, execute the following:'.orange
puts 'source ~/.bashrc'.orange
end
end end
end end
require 'package'
class Mobile_broadband_provider_info < Package
description 'Network Management daemon'
homepage 'https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info'
@_ver = '20201225'
version @_ver
compatibility 'all'
source_url "https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info/-/archive/#{@_ver}/mobile-broadband-provider-info-#{@_ver}.tar.bz2"
source_sha256 '0616b3d0580575741d4319ac71ca67c9a378879943d32a67ac0460615767bcdf'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mobile_broadband_provider_info-20201225-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mobile_broadband_provider_info-20201225-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mobile_broadband_provider_info-20201225-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mobile_broadband_provider_info-20201225-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'bcd1950197cad4165f2ae459e479a33ffdf923f8ba15825bf1a7b98759c2ae6e',
armv7l: 'bcd1950197cad4165f2ae459e479a33ffdf923f8ba15825bf1a7b98759c2ae6e',
i686: 'ef85604f9bd2d1094e3a36191c2f30d3e94d75b060e78a85c2a1d42819f8d453',
x86_64: '38026295f81010e8e1a311d5f0c28322b4059213bf012a9897b9b8a8a2a43335'
})
depends_on 'libxslt'
def self.build
system 'NOCONFIGURE=1 ./autogen.sh'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
...@@ -3,36 +3,39 @@ require 'package' ...@@ -3,36 +3,39 @@ require 'package'
class Modemmanager < Package class Modemmanager < Package
description 'ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections.' description 'ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections.'
homepage 'https://www.freedesktop.org/wiki/Software/ModemManager/' homepage 'https://www.freedesktop.org/wiki/Software/ModemManager/'
version '1.8.2' @_ver = '1.16.2'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://www.freedesktop.org/software/ModemManager/ModemManager-1.8.2.tar.xz' source_url "https://www.freedesktop.org/software/ModemManager/ModemManager-#{@_ver}.tar.xz"
source_sha256 '96f2a5f0ed15532b4c4c185b756fdc0326e7c2027cea26a1264f91e098260f80' source_sha256 'efa9a963499e0885f3f163096d433334143c4937545134ecd682e0157fa591e3'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/modemmanager-1.8.2-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/modemmanager-1.16.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/modemmanager-1.8.2-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/modemmanager-1.16.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/modemmanager-1.8.2-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/modemmanager-1.16.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/modemmanager-1.8.2-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/modemmanager-1.16.2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'fafa7f2a98d6d68491db64205063c636a24662a8097c303d73e0b2ab660d0800', aarch64: '63659ccd41a81696e3ac2036d21bcb2279bd3b9aff60de09ef2fbd443712c711',
armv7l: 'fafa7f2a98d6d68491db64205063c636a24662a8097c303d73e0b2ab660d0800', armv7l: '63659ccd41a81696e3ac2036d21bcb2279bd3b9aff60de09ef2fbd443712c711',
i686: '18c4897f2fa06868b3b39c1b06c7351ef42f05629c33011f17c837d9c6206593', i686: 'be289c76c0103c0a66017f52dbb5c61bcee619f1fca8f160195adfb8d4d8b07f',
x86_64: 'bb5304352a96304749c0f969e24dde97e2c58a307f73ed53882afdb293648f55', x86_64: '290c162bd314ba5d52cdc5f3a9d8abe1efc78349214392c237885653cfdf76a2'
}) })
depends_on 'libmbim' depends_on 'libmbim'
depends_on 'libqmi' depends_on 'libqmi'
def self.build def self.build
system './configure', system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
"--prefix=#{CREW_PREFIX}", LDFLAGS='-flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}", ./configure \
'--disable-maintainer-mode' #{CREW_OPTIONS} \
--with-dbus-sys-dir=#{CREW_PREFIX}/share/dbus-1 \
--disable-maintainer-mode"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -3,39 +3,40 @@ require 'package' ...@@ -3,39 +3,40 @@ require 'package'
class Mono < Package class Mono < Package
description 'Mono is a software platform designed to allow developers to easily create cross platform applications part of the .NET Foundation.' description 'Mono is a software platform designed to allow developers to easily create cross platform applications part of the .NET Foundation.'
homepage 'http://www.mono-project.com/' homepage 'http://www.mono-project.com/'
version '6.12.0.107' @_ver = '6.12.0.122'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://download.mono-project.com/sources/mono/mono-6.12.0.107.tar.xz' source_url "https://download.mono-project.com/sources/mono/mono-#{@_ver}.tar.xz"
source_sha256 '61f3cd629f8e99371c6b47c1f8d96b8ac46d9e851b5531eef20cdf9ab60d2a5f' source_sha256 '29c277660fc5e7513107aee1cbf8c5057c9370a4cdfeda2fc781be6986d89d23'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.107-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.122-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.107-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.122-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.107-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.122-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.107-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.122-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: '0a978da374a9ee65506283b67be2cbae8aa5ca4f52d2db776120b4efe7654d0d', aarch64: '78cb6f2adb3dde24509316cc5e7e351a5ece0fbf2dbeae8d8b6c9f88a9381be9',
armv7l: '0a978da374a9ee65506283b67be2cbae8aa5ca4f52d2db776120b4efe7654d0d', armv7l: '78cb6f2adb3dde24509316cc5e7e351a5ece0fbf2dbeae8d8b6c9f88a9381be9',
i686: 'f39118c36d3356e6ad3c934041821dd9d22a0d60200b4e67a4efb6f9dbb88a65', i686: '53e9e0e6b21dc469a1e70df8e15ee9755b384d5ae4e2c7bd8199d23e265c6004',
x86_64: '4b32a060c7bfefdb6d57f419df73b57ae39ff79ea1bb7fca5605c9db8aae9b92' x86_64: '35ec73376194b71d40ab8e57e01bffb0ec29c43ac66be3a995b03e522abbf017'
}) })
depends_on 'bc' depends_on 'bc'
depends_on 'libgdiplus' depends_on 'libgdiplus'
depends_on 'imake' => :build depends_on 'imake' => :build
def self.prebuild def self.prebuild
# Just build on a system or on a container booted from a kernel # Just build on a system or on a container booted from a kernel
# with SYSVIPC=y set. # with SYSVIPC=y set.
# system 'if [ ! -f /proc/config.gz ]; then sudo modprobe configs -v; fi' # system 'if [ ! -f /proc/config.gz ]; then sudo modprobe configs -v; fi'
# system 'cat /proc/config.gz | gunzip | grep SYSVIPC=y || false' # Mono build hangs without this feature enabled. # system 'cat /proc/config.gz | gunzip | grep SYSVIPC=y || false' # Mono build hangs without this feature enabled.
end end
def self.patch def self.patch
system 'filefix' system 'filefix'
end end
def self.build def self.build
system "env XMKMF=#{CREW_PREFIX}/bin/xmkmf \ system "env XMKMF=#{CREW_PREFIX}/bin/xmkmf \
./configure #{CREW_OPTIONS} \ ./configure #{CREW_OPTIONS} \
...@@ -48,7 +49,7 @@ class Mono < Package ...@@ -48,7 +49,7 @@ class Mono < Package
--with-libgdiplus" --with-libgdiplus"
system 'make || make' # Make might fail the first time. This is a known upstream bug. system 'make || make' # Make might fail the first time. This is a known upstream bug.
end end
def self.install def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
......
require 'package'
class Mutter < Package
description 'A window manager for GNOME'
homepage 'https://gitlab.gnome.org/GNOME/mutter'
version '40.beta'
compatibility 'x86_64 aarch64 armv7l'
source_url "https://download.gnome.org/core/40/#{version}/sources/mutter-#{version}.tar.xz"
source_sha256 '22aa7f8a57dbef865bc4e9b88f8fb91f45f18157d70f218199238bc10c25b1a6'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mutter-40.beta-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mutter-40.beta-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mutter-40.beta-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '6120122d259d3309e5244e06d793d67c7f41327ab1c177422adf0940c1f58c72',
armv7l: '6120122d259d3309e5244e06d793d67c7f41327ab1c177422adf0940c1f58c72',
x86_64: '213c59512a34b6fdc0f2e3f709be654c826742dc50ef20e3d796d92188914900'
})
depends_on 'dconf'
depends_on 'gnome_settings_daemon'
depends_on 'gsettings_desktop_schemas'
depends_on 'gobject_introspection' => ':build'
depends_on 'xorg_server' => ':build'
depends_on 'libinput'
depends_on 'libwacom'
depends_on 'startup_notification'
depends_on 'pipewire'
depends_on 'libcanberra'
depends_on 'ccache' => :build
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dtests=false \
-Dprofiler=false \
-Dopengl=true \
-Dglx=true \
-Dwayland=true \
-Dnative_backend=true \
-Dcogl_tests=true \
-Dxwayland_path=#{CREW_PREFIX}/bin/Xwayland \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
...@@ -3,10 +3,24 @@ require 'package' ...@@ -3,10 +3,24 @@ require 'package'
class Nano < Package class Nano < Package
description 'Nano\'s ANOther editor, an enhanced free Pico clone.' description 'Nano\'s ANOther editor, an enhanced free Pico clone.'
homepage 'https://www.nano-editor.org/' homepage 'https://www.nano-editor.org/'
version '5.5' @_ver = '5.6'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://www.nano-editor.org/dist/v5/nano-5.5.tar.xz' source_url "https://nano-editor.org/dist/v5/nano-#{@_ver}.tar.xz"
source_sha256 '390b81bf9b41ff736db997aede4d1f60b4453fbd75a519a4ddb645f6fd687e4a' source_sha256 'fce183e4a7034d07d219c79aa2f579005d1fd49f156db6e50f53543a87637a32'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nano-5.6-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '591c7d34de17429fe24e2c72b298c23791e6e87da58f914359d8152ec70b00ab',
armv7l: '591c7d34de17429fe24e2c72b298c23791e6e87da58f914359d8152ec70b00ab',
i686: '42c85d4a27d9c99a85661385dbbaacc95e09e7ab7878ca7665e17c7527582695',
x86_64: 'cb60149f951bd3cbff70a5d097c6d422591cc48dabe40552e59404f48b4cc866'
})
depends_on 'xdg_base' depends_on 'xdg_base'
...@@ -15,30 +29,33 @@ class Nano < Package ...@@ -15,30 +29,33 @@ class Nano < Package
end end
def self.build def self.build
system "./configure #{CREW_OPTIONS} \ system "env CFLAGS='-pipe -flto=auto' \
--enable-threads=posix \ CXXFLAGS='-pipe -flto=auto' \
--enable-nls \ LDFLAGS='-flto=auto' \
--enable-rpath \ ./configure #{CREW_OPTIONS} \
--enable-browser \ --enable-threads=posix \
--enable-color \ --enable-nls \
--enable-comment \ --enable-rpath \
--enable-extra \ --enable-browser \
--enable-help \ --enable-color \
--enable-histories \ --enable-comment \
--enable-justify \ --enable-extra \
--enable-libmagic \ --enable-help \
--enable-linenumbers \ --enable-histories \
--enable-mouse \ --enable-justify \
--enable-multibuffer \ --enable-libmagic \
--enable-nanorc \ --enable-linenumbers \
--enable-operatingdir \ --enable-mouse \
--enable-speller \ --enable-multibuffer \
--enable-tabcomp \ --enable-nanorc \
--enable-wordcomp \ --enable-operatingdir \
--enable-wrapping \ --enable-speller \
--enable-utf8" --enable-tabcomp \
--enable-wordcomp \
--enable-wrapping \
--enable-utf8"
system 'make' system 'make'
open('nanorc', 'w') { |f| open('nanorc', 'w') do |f|
f << "set constantshow\n" f << "set constantshow\n"
f << "set fill 72\n" f << "set fill 72\n"
f << "set historylog\n" f << "set historylog\n"
...@@ -50,7 +67,7 @@ class Nano < Package ...@@ -50,7 +67,7 @@ class Nano < Package
f << "set regexp\n" f << "set regexp\n"
f << "set smooth\n" f << "set smooth\n"
f << "set suspend\n" f << "set suspend\n"
} end
end end
def self.install def self.install
...@@ -62,9 +79,9 @@ class Nano < Package ...@@ -62,9 +79,9 @@ class Nano < Package
def self.postinstall def self.postinstall
puts puts
puts "Personal configuration file is located in $HOME/.nanorc".lightblue puts 'Personal configuration file is located in $HOME/.nanorc'.lightblue
puts puts
puts "To make nano your default editor, execute the following:".lightblue puts 'To make nano your default editor, execute the following:'.lightblue
puts puts
puts "echo 'EDITOR=#{CREW_PREFIX}/bin/nano' >> ~/.bashrc && source ~/.bashrc".lightblue puts "echo 'EDITOR=#{CREW_PREFIX}/bin/nano' >> ~/.bashrc && source ~/.bashrc".lightblue
puts puts
......
...@@ -3,30 +3,34 @@ require 'package' ...@@ -3,30 +3,34 @@ require 'package'
class Nasm < Package class Nasm < Package
description 'The Netwide Assembler' description 'The Netwide Assembler'
homepage 'https://www.nasm.us/' homepage 'https://www.nasm.us/'
version '2.14.02' @_ver = '2.15.05'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.xz' source_url 'https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/nasm-2.15.05.tar.xz'
source_sha256 'e24ade3e928f7253aa8c14aa44726d1edf3f98643f87c9d72ec1df44b26be8f5' source_sha256 '3caf6729c1073bf96629b57cee31eeb54f4f8129b01902c73428836550b30a3f'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nasm-2.14.02-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nasm-2.15.05-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nasm-2.14.02-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nasm-2.15.05-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nasm-2.14.02-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/nasm-2.15.05-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nasm-2.14.02-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nasm-2.15.05-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'f63ec3e4cbfa87aaccf94c33c608324bfca004f798502485c1b04994f73a47ae', aarch64: '341d485bb248ed27fa1deaf10d361ab13eb9ac8332298cb45d3c2199e01aca25',
armv7l: 'f63ec3e4cbfa87aaccf94c33c608324bfca004f798502485c1b04994f73a47ae', armv7l: '341d485bb248ed27fa1deaf10d361ab13eb9ac8332298cb45d3c2199e01aca25',
i686: '86bb6fa809e9b44a6677da1de4bc1efbcad9fd22450f092ef146f524c7c51eca', i686: 'e78c9d471c116b2ced338a800b84a01346e964b377b0fd66f260ef517da8e801',
x86_64: 'd7ad212d782c300a90293b2cbd389c8b343e2f6c9a36422f2e1ce8fca75e3988', x86_64: '920e5d3591a66153b45d68c3e67bca8ef74cfc6cf3d71e2c4c57c5624a2b5111'
}) })
def self.build def self.build
system "./configure", "--prefix=#{CREW_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}" system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS}"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
require 'package'
class Networkmanager < Package
description 'Network connection manager and user applications'
homepage 'https://wiki.gnome.org/Projects/NetworkManager'
@_ver = '1.30.0'
version @_ver
compatibility 'all'
source_url "https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/archive/#{@_ver}/NetworkManager#{@_ver}.tar.bz2"
source_sha256 'aa2bc84a3d60ef2b4f1182429ec5f0421ccd2495d88ee91b575cae015aae2f64'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/networkmanager-1.30.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/networkmanager-1.30.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/networkmanager-1.30.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/networkmanager-1.30.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '41fb2980b3f959983c4b58cdd51724a29c63f866b569169660068e4d2b1427bf',
armv7l: '41fb2980b3f959983c4b58cdd51724a29c63f866b569169660068e4d2b1427bf',
i686: '7bd4cccdce0016f6d2eedb6e073c736b146e7e77923f52928cd410014a1358c4',
x86_64: 'c81c09662d3b72055424087b845613a8cf1e7f1856ce3ff6b389e81f5c2bf4b3'
})
depends_on 'gobject_introspection'
depends_on 'gtk_doc'
depends_on 'gobject_introspection' => ':build'
depends_on 'gtk_doc' => ':build'
depends_on 'modemmanager'
depends_on 'libndp'
depends_on 'jansson'
depends_on 'nss'
depends_on 'vala'
depends_on 'elogind'
depends_on 'libnewt'
depends_on 'mobile_broadband_provider_info'
depends_on 'ccache' => :build
def self.patch
# Patch fixes meson dependency race condition
# from https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/675#note_824519
@order_patch = <<~ORDER_PATCH_EOF
diff --git i/clients/tui/newt/meson.build w/clients/tui/newt/meson.build
index 0c89c0f68155..cbe9d5544995 100644
--- i/clients/tui/newt/meson.build
+++ w/clients/tui/newt/meson.build
@@ -26,6 +26,7 @@ libnmt_newt = static_library(
),
dependencies: [
libnm_nm_default_dep,
+ libnm_dep,
newt_dep,
],
c_args: [
ORDER_PATCH_EOF
IO.write('order.patch', @order_patch)
# This should not be needed in versions newer than 1.30.0 as it is patched
# in the main branch.
system 'patch -p1 -i order.patch' unless Gem::Version.new(@_ver) > Gem::Version.new('1.30.0')
case ARCH
when 'i686'
# Older kernel headers break wifi usage on kernel 3.18, so
# since we disable wifi, just patch around this missing define.
system "sed -i 's/NL80211_STA_INFO_BEACON_SIGNAL_AVG/NL80211_STA_INFO_SIGNAL_AVG/g' src/core/platform/wifi/nm-wifi-utils-nl80211.c"
# Add in other missing defines as needed.
@kernel_missing = <<~KERNEL_MISSING_EOF
enum {
IFLA_BR_AGEING_TIME,
IFLA_BR_STP_STATE,
IFLA_BR_PRIORITY,
IFLA_BR_VLAN_FILTERING,
IFLA_BR_VLAN_PROTOCOL,
IFLA_BR_GROUP_FWD_MASK,
IFLA_BR_ROOT_ID,
IFLA_BR_BRIDGE_ID,
IFLA_BR_ROOT_PORT,
IFLA_BR_ROOT_PATH_COST,
IFLA_BR_TOPOLOGY_CHANGE,
IFLA_BR_TOPOLOGY_CHANGE_DETECTED,
IFLA_BR_HELLO_TIMER,
IFLA_BR_TCN_TIMER,
IFLA_BR_TOPOLOGY_CHANGE_TIMER,
IFLA_BR_GC_TIMER,
IFLA_BR_GROUP_ADDR,
IFLA_BR_FDB_FLUSH,
IFLA_BR_MCAST_ROUTER,
IFLA_BR_MCAST_SNOOPING,
IFLA_BR_MCAST_QUERY_USE_IFADDR,
IFLA_BR_MCAST_QUERIER,
IFLA_BR_MCAST_HASH_ELASTICITY,
IFLA_BR_MCAST_HASH_MAX,
IFLA_BR_MCAST_LAST_MEMBER_CNT,
IFLA_BR_MCAST_STARTUP_QUERY_CNT,
IFLA_BR_MCAST_LAST_MEMBER_INTVL,
IFLA_BR_MCAST_MEMBERSHIP_INTVL,
IFLA_BR_MCAST_QUERIER_INTVL,
IFLA_BR_MCAST_QUERY_INTVL,
IFLA_BR_MCAST_QUERY_RESPONSE_INTVL,
IFLA_BR_MCAST_STARTUP_QUERY_INTVL,
IFLA_BR_NF_CALL_IPTABLES,
IFLA_BR_NF_CALL_IP6TABLES,
IFLA_BR_NF_CALL_ARPTABLES,
IFLA_BR_VLAN_DEFAULT_PVID,
IFLA_BR_PAD,
IFLA_BR_VLAN_STATS_ENABLED,
IFLA_BR_MCAST_STATS_ENABLED,
IFLA_BR_MCAST_IGMP_VERSION,
IFLA_BR_MCAST_MLD_VERSION,
IFLA_BR_VLAN_STATS_PER_PORT,
};
KERNEL_MISSING_EOF
IO.write('kernel_missing_defs.txt', @kernel_missing)
system "sed -i '/nm-udev-utils.h/ r kernel_missing_defs.txt' src/core/platform/nm-linux-platform.c"
end
end
case ARCH
when 'aarch64', 'armv7l', 'x86_64'
@ebpf = 'true'
@wifi = 'true'
@wext = 'true'
when 'i686'
@ebpf = 'false'
@wifi = 'false'
@wext = 'false'
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
--default-library=both \
-Ddbus_conf_dir=#{CREW_PREFIX}/share/dbus-1/system.d \
-Dsystem_ca_path=#{CREW_PREFIX}/etc/ssl/certs \
-Dpolkit_agent_helper_1=#{CREW_LIB_PREFIX}/polkit-1/polkit-agent-helper-1 \
-Dsession_tracking_consolekit=false \
-Dsession_tracking=elogind \
-Dsuspend_resume=elogind \
-Dsystemdsystemunitdir=no \
-Dsystemd_journal=false \
-Dmodify_system=true \
-Dppp=false \
-Dselinux=false \
-Diwd=false \
-Dteamdctl=false \
-Dnm_cloud_setup=true \
-Dbluez5_dun=false \
-Dlibaudit=no \
-Debpf=#{@ebpf} \
-Dwifi=#{@wifi} \
-Dwext=#{@wifi} \
-Dconfig_plugins_default=keyfile \
-Dnetconfig=no \
-Dconfig_dns_rc_manager_default=symlink \
-Ddhcpcd=no \
-Dvapi=true \
-Ddocs=false \
-Dmore_asserts=no \
-Dmore_logging=false \
-Dqt=false \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir -k 0 && ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
...@@ -3,46 +3,74 @@ require 'package' ...@@ -3,46 +3,74 @@ require 'package'
class Nodebrew < Package class Nodebrew < Package
description 'Node.js version manager' description 'Node.js version manager'
homepage 'https://github.com/hokaccha/nodebrew' homepage 'https://github.com/hokaccha/nodebrew'
version '1.0.1' @_ver = '1.0.1'
version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url 'https://github.com/hokaccha/nodebrew/archive/v1.0.1.tar.gz' source_url "https://github.com/hokaccha/nodebrew/archive/v#{@_ver}.tar.gz"
source_sha256 'c34e7186d4fd493c5417ad5563ad39fd493a42695bd9a7758c3df10380e43399' source_sha256 'c34e7186d4fd493c5417ad5563ad39fd493a42695bd9a7758c3df10380e43399'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nodebrew-1.0.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nodebrew-1.0.1-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nodebrew-1.0.1-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nodebrew-1.0.1-1-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'e3c4bfac2033982be9859766dc9b7c00a018cbdc0c233f54b0725295baabd770',
armv7l: 'e3c4bfac2033982be9859766dc9b7c00a018cbdc0c233f54b0725295baabd770',
i686: 'ca1437cc074946cd723a691a89ca127d3c1f95beea6015fa74cf66fe074a6c22',
x86_64: 'bcf965ab509fca115094ba9ed146c0b9fe43a37055b2b233b32cf77bde659f08'
})
def self.install def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/share/nodebrew" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/nodebrew/default"
system "NODEBREW_ROOT=#{CREW_DEST_PREFIX}/share/nodebrew perl nodebrew setup > /dev/null" system "NODEBREW_ROOT=#{CREW_DEST_PREFIX}/share/nodebrew perl nodebrew setup > /dev/null"
system "mkdir -p #{CREW_DEST_DIR}/$HOME" FileUtils.mkdir_p CREW_DEST_HOME
system "mkdir -p #{CREW_DEST_PREFIX}/bin" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
system "ln -s #{CREW_PREFIX}/share/nodebrew/nodebrew #{CREW_DEST_PREFIX}/bin/" FileUtils.ln_s "#{CREW_PREFIX}/share/nodebrew/nodebrew", "#{CREW_DEST_PREFIX}/bin/"
system "ln -s #{CREW_PREFIX}/share/nodebrew/current/bin/node #{CREW_DEST_PREFIX}/bin/" FileUtils.ln_s "#{CREW_PREFIX}/share/nodebrew/current/bin/node", "#{CREW_DEST_PREFIX}/bin/"
system "ln -s #{CREW_PREFIX}/share/nodebrew/current/bin/npm #{CREW_DEST_PREFIX}/bin/" FileUtils.ln_s "#{CREW_PREFIX}/share/nodebrew/current/bin/npm", "#{CREW_DEST_PREFIX}/bin/"
system "ln -s #{CREW_PREFIX}/share/nodebrew/current/bin/npx #{CREW_DEST_PREFIX}/bin/" FileUtils.ln_s "#{CREW_PREFIX}/share/nodebrew/current/bin/npx", "#{CREW_DEST_PREFIX}/bin/"
system "ln -s #{CREW_PREFIX}/share/nodebrew #{CREW_DEST_DIR}/$HOME/.nodebrew" FileUtils.ln_s "#{CREW_PREFIX}/share/nodebrew/current/bin/node", "#{CREW_DEST_PREFIX}/bin/nodejs"
system "ln -sf #{CREW_PREFIX}/share/nodebrew $HOME/.nodebrew" FileUtils.ln_s "#{CREW_PREFIX}/share/nodebrew", "#{CREW_DEST_HOME}/.nodebrew"
FileUtils.ln_sf "#{CREW_PREFIX}/share/nodebrew", "#{HOME}/.nodebrew"
end end
def self.postinstall def self.postinstall
FileUtils.ln_sf "#{CREW_PREFIX}/share/nodebrew/default", "#{CREW_PREFIX}/share/nodebrew/current"
puts puts
puts "Nodebrew completion support is available for the following shells:".lightblue puts 'Nodebrew completion support is available for the following shells:'.lightblue
puts "bash fish zsh".lightblue puts 'bash fish zsh'.lightblue
puts puts
puts "To add nodebrew completion for bash, execute the following:".lightblue puts 'To add nodebrew completion for bash, execute the following:'.lightblue
puts "echo '# nodebrew completion' >> ~/.bashrc".lightblue puts "echo '# nodebrew completion' >> ~/.bashrc".lightblue
puts "echo 'if [ -f #{CREW_PREFIX}/share/nodebrew/completions/bash/nodebrew-completion ]; then' >> ~/.bashrc".lightblue puts "echo 'if [ -f #{CREW_PREFIX}/share/nodebrew/completions/bash/nodebrew-completion ]; then' >> ~/.bashrc".lightblue
puts "echo ' source #{CREW_PREFIX}/share/nodebrew/completions/bash/nodebrew-completion' >> ~/.bashrc".lightblue puts "echo ' source #{CREW_PREFIX}/share/nodebrew/completions/bash/nodebrew-completion' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue puts "echo 'fi' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue puts 'source ~/.bashrc'.lightblue
puts puts
puts "To complete the installation, execute the following:".lightblue puts 'To complete the installation, execute the following:'.lightblue
puts "echo 'export PATH=\$HOME/.nodebrew/current/bin:\$PATH' >> ~/.bashrc && source ~/.bashrc".lightblue puts "echo 'export PATH=\$HOME/.nodebrew/current/bin:\$PATH' >> ~/.bashrc && source ~/.bashrc".lightblue
puts puts
puts "To install the latest node, execute:".lightblue puts 'To install the latest node, execute:'.lightblue
puts "nodebrew install-binary latest".lightblue puts 'nodebrew install-binary latest'.lightblue
puts "nodebrew use latest".lightblue puts 'nodebrew use latest'.lightblue
puts
puts "To uninstall, execute the following:".lightblue
puts "crew remove nodebrew".lightblue
puts "rm -rf #{CREW_PREFIX}/share/nodebrew".lightblue
puts puts
end end
def self.remove
if Dir.exists? "#{CREW_PREFIX}/share/nodebrew"
puts
print "Would you like to remove #{CREW_PREFIX}/share/nodebrew? [y/N] "
response = STDIN.getc
case response
when "y", "Y"
FileUtils.rm_rf "#{CREW_PREFIX}/share/nodebrew"
puts "#{CREW_PREFIX}/share/nodebrew removed.".lightred
else
puts "#{CREW_PREFIX}/share/nodebrew saved.".lightgreen
end
puts
end
end
end end
...@@ -8,6 +8,19 @@ class Nuitka < Package ...@@ -8,6 +8,19 @@ class Nuitka < Package
source_url 'https://github.com/Nuitka/Nuitka/archive/0.6.12.3.tar.gz' source_url 'https://github.com/Nuitka/Nuitka/archive/0.6.12.3.tar.gz'
source_sha256 '4f65349b87c3ffc297e19251308d743ee8b5ef09b695c134d6a46ec89d255216' source_sha256 '4f65349b87c3ffc297e19251308d743ee8b5ef09b695c134d6a46ec89d255216'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/nuitka-0.6.12.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/nuitka-0.6.12.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/nuitka-0.6.12.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/nuitka-0.6.12.3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '34b1e243d748254248e460992194b40cc79813cb9d59bf01a1c940e2c3519725',
armv7l: '34b1e243d748254248e460992194b40cc79813cb9d59bf01a1c940e2c3519725',
i686: '96be8a2d57245d5f9414bd13242f3e6ae5ab5927a8455afbddd43d27a45b83ce',
x86_64: '5ef1b47e0ec8a22c3852c1ba7b11efc5034558db2ef231f2e23bbe7628b558d9',
})
def self.install def self.install
system "python3 -m pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I nuitka==#{version} --no-warn-script-location" system "python3 -m pip install --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR} -I nuitka==#{version} --no-warn-script-location"
end end
......
...@@ -3,35 +3,52 @@ require 'package' ...@@ -3,35 +3,52 @@ require 'package'
class Opera < Package class Opera < Package
description "Opera isn't just a browser. It's an awesome browser." description "Opera isn't just a browser. It's an awesome browser."
homepage 'https://www.opera.com/' homepage 'https://www.opera.com/'
version '74.0.3911.154' version '74.0.3911.160'
compatibility 'x86_64' compatibility 'x86_64'
if ARCH == 'x86_64' if ARCH == 'x86_64'
source_url "https://get.geo.opera.com/pub/opera/desktop/#{version}/linux/opera-stable_#{version}_amd64.deb"
source_sha256 `curl -Ls https://get.geo.opera.com/pub/opera/desktop/#{version}/linux/opera-stable_#{version}_amd64.deb.sha256sum`.chomp
depends_on 'alien' => :build
depends_on 'gtk3' depends_on 'gtk3'
depends_on 'gsettings_desktop_schemas' depends_on 'gsettings_desktop_schemas'
depends_on 'harfbuzz' depends_on 'harfbuzz'
depends_on 'graphite' depends_on 'graphite'
depends_on 'cras' depends_on 'cras'
depends_on 'sommelier' depends_on 'sommelier'
source_url "https://get.geo.opera.com/pub/opera/desktop/74.0.3911.160/linux/opera-stable_#{version}_amd64.deb"
source_sha256 `curl -Ls https://get.geo.opera.com/pub/opera/desktop/#{version}/linux/opera-stable_#{version}_amd64.deb.sha256sum`.chomp
end end
def self.install
def self.build # llvm-strip doesn't works with opera
Dir.chdir('../') do ENV['CREW_NOT_STRIP'] = '1'
system "alien -tc opera-stable_#{version}_amd64.deb"
system "tar xf opera-stable-#{version}.tgz" # since opera put the executable to library, we need to link it to CREW_PREFIX
FileUtils.ln_sf "#{CREW_LIB_PREFIX}/opera/opera", 'bin/opera'
# place all stuff to lib64 instead of lib
FileUtils.mv 'lib/x86_64-linux-gnu/', 'share/'
FileUtils.rm_rf 'lib/'
FileUtils.mkdir_p CREW_DEST_PREFIX
FileUtils.mv Dir.glob('*'), CREW_DEST_PREFIX
end
def self.postinstall
puts
puts 'Set Opera as your default browser? [Y/n]: '
case STDIN.gets.chomp
when "\n", 'Y', 'y', 'yes'
Dir.chdir("#{CREW_PREFIX}/bin") do
FileUtils.ln_sf "#{CREW_LIB_PREFIX}/opera/opera", 'x-www-browser'
end
else
puts 'No change has been made.'
puts
end end
end end
def self.install def self.remove
Dir.chdir('../') do Dir.chdir("#{CREW_PREFIX}/bin") do
# llvm-strip doesn't works with opera FileUtils.rm 'x-www-browser' if File.realpath('x-www-browser') == "#{CREW_LIB_PREFIX}/opera/opera"
ENV['CREW_NOT_STRIP'] = '1' end
FileUtils.mkdir_p CREW_DEST_PREFIX
FileUtils.mv Dir.glob('usr/*'), CREW_DEST_PREFIX
FileUtils.ln_s "#{CREW_PREFIX}/bin/opera", "#{CREW_DEST_PREFIX}/bin/x-www-browser" unless File.exist?("#{CREW_PREFIX}/bin/x-www-browser")
end
end end
end end
...@@ -3,7 +3,7 @@ require 'package' ...@@ -3,7 +3,7 @@ require 'package'
class Php < Package class Php < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.' description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/' homepage 'http://www.php.net/'
version '5.6.40-7.4.12' version '5.6.40-8.0.2'
compatibility 'all' compatibility 'all'
is_fake is_fake
...@@ -12,13 +12,14 @@ class Php < Package ...@@ -12,13 +12,14 @@ class Php < Package
phpver = `php -v 2> /dev/null | head -1 | cut -d' ' -f2`.chomp phpver = `php -v 2> /dev/null | head -1 | cut -d' ' -f2`.chomp
abort "PHP version #{phpver} already installed.".lightgreen unless "#{phpver}" == "" abort "PHP version #{phpver} already installed.".lightgreen unless "#{phpver}" == ""
puts puts
puts " Select the version to install:" puts "Select version:"
puts " 5.6 = PHP 5.6.40" puts "5.6 = PHP 5.6.40"
puts " 7.1 = PHP 7.1.33" puts "7.1 = PHP 7.1.33"
puts " 7.2 = PHP 7.2.34" puts "7.2 = PHP 7.2.34"
puts " 7.3 = PHP 7.3.24" puts "7.3 = PHP 7.3.27"
puts " 7.4 = PHP 7.4.12" puts "7.4 = PHP 7.4.15"
puts " 0 = Cancel" puts "8.0 = PHP 8.0.2"
puts " 0 = Cancel"
while version = STDIN.gets.chomp while version = STDIN.gets.chomp
case version case version
...@@ -37,11 +38,14 @@ class Php < Package ...@@ -37,11 +38,14 @@ class Php < Package
when '7.4' when '7.4'
depends_on 'php74' depends_on 'php74'
break break
when '8.0'
depends_on 'php80'
break
when '0' when '0'
abort abort
break break
else else
puts " Please select from one of the options or enter 0 to cancel." puts "\nPlease select from one of the options or enter 0 to cancel."
end end
end end
end end
......
require 'package'
class Php80 < Package
description 'PHP is a popular general-purpose scripting language that is especially suited to web development.'
homepage 'http://www.php.net/'
@_ver = '8.0.2'
version @_ver
compatibility 'all'
source_url "https://www.php.net/distributions/php-#{@_ver}.tar.xz"
source_sha256 `curl -Ls #{source_url} | sha256sum | cut -d' ' -f1`.chomp
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/php80-8.0.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/php80-8.0.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/php80-8.0.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/php80-8.0.2-chromeos-x86_64.tar.xz',
})
binary_sha256({
aarch64: '80f18af7f6ec59aa3b7062ebcbfe903d8a083b63579e4fbb20821ec86dc7e4d2',
armv7l: '80f18af7f6ec59aa3b7062ebcbfe903d8a083b63579e4fbb20821ec86dc7e4d2',
i686: '56d3288868864e2ce89a712dbbe33be35ea6b598587c9372af9b5290889ca7af',
x86_64: '688318b7e49fed6b56cecc8692755e2d8325b9e0d5b814824adfdb017c28d06b',
})
depends_on 'aspell_en'
depends_on 'libgcrypt'
depends_on 'libjpeg_turbo'
depends_on 'libsodium'
depends_on 'libxslt'
depends_on 'libzip'
depends_on 'exif'
depends_on 'freetds'
depends_on 'freetype'
depends_on 'graphite'
depends_on 're2c'
depends_on 'tidy'
depends_on 'unixodbc'
depends_on 'oniguruma'
depends_on 'pygments'
def self.preinstall
phpver = `php -v 2> /dev/null | head -1 | cut -d' ' -f2`.chomp
abort "PHP version #{phpver} already installed.".lightred unless phpver.to_s == ''
end
def self.patch
# Configuration
system "sed -i 's,;pid = run/php-fpm.pid,pid = #{CREW_PREFIX}/tmp/run/php-fpm.pid,' sapi/fpm/php-fpm.conf.in"
system "sed -i 's,;error_log = log/php-fpm.log,error_log = #{CREW_PREFIX}/log/php-fpm.log,' sapi/fpm/php-fpm.conf.in"
system "sed -i 's,include=@php_fpm_sysconfdir@/php-fpm.d,include=#{CREW_PREFIX}/etc/php-fpm.d,' sapi/fpm/php-fpm.conf.in"
system "sed -i 's,^user,;user,' sapi/fpm/www.conf.in"
system "sed -i 's,^group,;group,' sapi/fpm/www.conf.in"
system "sed -i 's,@sbindir@,#{CREW_PREFIX}/bin,' sapi/fpm/init.d.php-fpm.in"
system "sed -i 's,@sysconfdir@,#{CREW_PREFIX}/etc,' sapi/fpm/init.d.php-fpm.in"
system "sed -i 's,@localstatedir@,#{CREW_PREFIX}/tmp,' sapi/fpm/init.d.php-fpm.in"
# Set some sane defaults
system "sed -i 's,post_max_size = 8M,post_max_size = 128M,' php.ini-development"
system "sed -i 's,upload_max_filesize = 2M,upload_max_filesize = 128M,' php.ini-development"
system "sed -i 's,;opcache.enable=0,opcache.enable=1,' php.ini-development"
# Fix cc: error: ext/standard/.libs/type.o: No such file or directory
# system "sed -i '98303d' configure"
# system "sed -i '98295,98296d' configure"
# Fix /usr/bin/file: No such file or directory
system 'filefix'
end
def self.build
system "env LD_LIBRARY_PATH=#{CREW_LIB_PREFIX} TMPDIR='#{CREW_PREFIX}/tmp' CFLAGS='-pipe' \
./configure \
--prefix=#{CREW_PREFIX} \
--docdir=#{CREW_PREFIX}/doc \
--infodir=#{CREW_PREFIX}/info \
--libdir=#{CREW_LIB_PREFIX} \
--localstatedir=#{CREW_PREFIX}/tmp \
--mandir=#{CREW_MAN_PREFIX} \
--sbindir=#{CREW_PREFIX}/bin \
--with-config-file-path=#{CREW_PREFIX}/etc \
--with-libdir=#{ARCH_LIB} \
--with-kerberos=#{CREW_LIB_PREFIX} \
--enable-exif \
--enable-fpm \
--enable-ftp \
--enable-mbstring \
--enable-opcache \
--enable-pcntl \
--enable-shared \
--enable-shmop \
--enable-sockets \
--enable-bcmath \
--enable-calendar \
--enable-dba=shared \
--enable-intl \
--enable-mysqlnd \
--enable-opcache \
--enable-soap \
--enable-sysvmsg \
--with-zip \
--with-bz2 \
--with-curl \
--with-gettext \
--with-gmp \
--with-mysqli \
--with-openssl \
--with-pdo-mysql \
--with-pear \
--with-readline \
--with-tidy \
--with-unixODBC \
--with-xsl \
--with-zlib \
--with-freetype \
--with-gdbm \
--with-jpeg \
--with-ldap \
--with-ldap-sasl \
--with-pspell \
--with-sodium \
--with-zip \
--with-ffi \
--with-libedit"
system 'make'
end
def self.check
# system 'make', 'test'
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/log"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/tmp/run"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/init.d"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/php-fpm.d"
system 'make', "INSTALL_ROOT=#{CREW_DEST_DIR}", 'install'
FileUtils.install 'php.ini-development', "#{CREW_DEST_PREFIX}/etc/php.ini", mode: 0644
FileUtils.install 'sapi/fpm/init.d.php-fpm.in', "#{CREW_DEST_PREFIX}/etc/init.d/php-fpm", mode: 0755
FileUtils.install 'sapi/fpm/php-fpm.conf.in', "#{CREW_DEST_PREFIX}/etc/php-fpm.conf", mode: 0755
FileUtils.install 'sapi/fpm/www.conf.in', "#{CREW_DEST_PREFIX}/etc/php-fpm.d/www.conf", mode:0644
FileUtils.ln_s "#{CREW_PREFIX}/etc/init.d/php-fpm", "#{CREW_DEST_PREFIX}/bin/php8-fpm"
# clean up some files created under #{CREW_DEST_DIR}. check http://pear.php.net/bugs/bug.php?id=20383 for more details
FileUtils.mv "#{CREW_DEST_DIR}/.depdb", "#{CREW_DEST_LIB_PREFIX}/php"
FileUtils.mv "#{CREW_DEST_DIR}/.depdblock", "#{CREW_DEST_LIB_PREFIX}/php"
FileUtils.rm_rf "#{CREW_DEST_DIR}/.channels"
FileUtils.rm_rf "#{CREW_DEST_DIR}/.filemap"
FileUtils.rm_rf "#{CREW_DEST_DIR}/.lock"
FileUtils.rm_rf "#{CREW_DEST_DIR}/.registry"
end
def self.postinstall
puts
puts 'To start the php-fpm service, execute:'.lightblue
puts 'php8-fpm start'.lightblue
puts
puts 'To stop the php-fpm service, execute:'.lightblue
puts 'php8-fpm stop'.lightblue
puts
puts 'To restart the php-fpm service, execute:'.lightblue
puts 'php8-fpm restart'.lightblue
puts
puts 'To start php-fpm on login, execute the following:'.lightblue
puts "echo 'if [ -f #{CREW_PREFIX}/bin/php8-fpm ]; then' >> ~/.bashrc".lightblue
puts "echo ' #{CREW_PREFIX}/bin/php8-fpm start' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue
puts 'source ~/.bashrc'.lightblue
end
end
...@@ -2,26 +2,27 @@ require 'package' ...@@ -2,26 +2,27 @@ require 'package'
class Pipewire < Package class Pipewire < Package
description 'PipeWire is a project that aims to greatly improve handling of audio and video under Linux.' description 'PipeWire is a project that aims to greatly improve handling of audio and video under Linux.'
homepage 'https://pipwire.org' homepage 'https://pipewire.org'
@_ver = '0.3.20' @_ver = '0.3.22'
version @_ver version @_ver
compatibility 'all' compatibility 'all'
source_url "https://github.com/PipeWire/pipewire/archive/#{@_ver}.tar.gz" source_url "https://github.com/PipeWire/pipewire/archive/#{@_ver}.tar.gz"
source_sha256 '7da6d8283aea6b37480e626b57f23b2bf70d6b73470105a5853b213786d1c097' source_sha256 '5db2caf41af79cd9e343d07a3804c63b8b243c1d74e926181058e29771d4b691'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/pipewire-0.3.20-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/pipewire-0.3.22-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/pipewire-0.3.20-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/pipewire-0.3.22-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/pipewire-0.3.20-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/pipewire-0.3.22-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/pipewire-0.3.20-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/pipewire-0.3.22-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '1ffffd3f745591bd1b5e28032a7eec6c022e00822d1e42759f395a3a74b345c8', aarch64: '8641411382ca539208681a9fcc0e4c4449c317020c28a7f95a1b4d3fee6a04a4',
armv7l: '1ffffd3f745591bd1b5e28032a7eec6c022e00822d1e42759f395a3a74b345c8', armv7l: '8641411382ca539208681a9fcc0e4c4449c317020c28a7f95a1b4d3fee6a04a4',
i686: 'ca8a88acbadcaf93644f12e6c64eb120547e01c1139006a690aa8b21c2304314', i686: 'd8d093f9cabf7881daaa746af3c7d0a44604c55caf732272a04817b8593bf2ba',
x86_64: 'd5ada28c243897abcd44677f2c31531bdb06dcf9503f2fbc85aec2fcdd2b4546', x86_64: 'af44f8765b24d423555db5ac00324c8c73c597144af404a28551bbcae595a405',
}) })
depends_on 'gsettings_desktop_schemas' depends_on 'gsettings_desktop_schemas'
depends_on 'alsa_plugins' => :build depends_on 'alsa_plugins' => :build
depends_on 'gst_plugins_base' depends_on 'gst_plugins_base'
...@@ -31,6 +32,29 @@ class Pipewire < Package ...@@ -31,6 +32,29 @@ class Pipewire < Package
depends_on 'vulkan_headers' depends_on 'vulkan_headers'
depends_on 'mesa' depends_on 'mesa'
def self.patch
case ARCH
when 'i686'
# Patch from https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/9f53057b51c9d7ce68c240c21b459dc0b7d6acaf
# getrandom was introduced to glibc 2.25, and i686 has 2.23.
@getrandom_freebsd = <<~'GETRANDOM_FREEBSD_EOF'
#include <sys/param.h>
#include <fcntl.h>
ssize_t getrandom(void *buf, size_t buflen, unsigned int flags) {
int fd = open("/dev/random", O_CLOEXEC);
if (fd < 0)
return -1;
ssize_t bytes = read(fd, buf, buflen);
close(fd);
return bytes;
}
GETRANDOM_FREEBSD_EOF
IO.write('getrandom.c', @getrandom_freebsd)
system "sed -i '/random.h/ r getrandom.c' src/pipewire/impl-core.c"
system "sed -i '/random.h/d' src/pipewire/impl-core.c"
end
end
def self.build def self.build
system "meson \ system "meson \
#{CREW_MESON_LTO_OPTIONS} \ #{CREW_MESON_LTO_OPTIONS} \
...@@ -41,13 +65,14 @@ class Pipewire < Package ...@@ -41,13 +65,14 @@ class Pipewire < Package
-Dvulkan=true \ -Dvulkan=true \
-Dv4l2=false \ -Dv4l2=false \
-Dexamples=false \ -Dexamples=false \
-Dudevrulesdir=#{CREW_PREFIX}/etc/udev/rules.d \
-Dvolume=true \
builddir" builddir"
system "meson configure builddir" system 'meson configure builddir'
system "ninja -C builddir" system 'ninja -C builddir'
end end
def self.install def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install" system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end end
end end
...@@ -4,22 +4,22 @@ class Pulseaudio < Package ...@@ -4,22 +4,22 @@ class Pulseaudio < Package
description 'PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications.' description 'PulseAudio is a sound system for POSIX OSes, meaning that it is a proxy for your sound applications.'
homepage 'https://www.freedesktop.org/wiki/Software/PulseAudio/' homepage 'https://www.freedesktop.org/wiki/Software/PulseAudio/'
@_ver = '14.2' @_ver = '14.2'
version "#{@_ver}-1" version "#{@_ver}-2"
compatibility 'all' compatibility 'all'
source_url "https://freedesktop.org/software/pulseaudio/releases/pulseaudio-#{@_ver}.tar.xz" source_url "https://freedesktop.org/software/pulseaudio/releases/pulseaudio-#{@_ver}.tar.xz"
source_sha256 '75d3f7742c1ae449049a4c88900e454b8b350ecaa8c544f3488a2562a9ff66f1' source_sha256 '75d3f7742c1ae449049a4c88900e454b8b350ecaa8c544f3488a2562a9ff66f1'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/pulseaudio-14.2-1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/pulseaudio-14.2-2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/pulseaudio-14.2-1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/pulseaudio-14.2-2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/pulseaudio-14.2-1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/pulseaudio-14.2-2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/pulseaudio-14.2-1-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/pulseaudio-14.2-2-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: '9f10feb9805320b1c710d93a78a706d0ecc9c8a2b06e82008369b938c7fa6ea7', aarch64: 'b63bb927efd3f315ebe04781e5a1173acbd01ee58bd384b43f7e97e3006e14a2',
armv7l: '9f10feb9805320b1c710d93a78a706d0ecc9c8a2b06e82008369b938c7fa6ea7', armv7l: 'b63bb927efd3f315ebe04781e5a1173acbd01ee58bd384b43f7e97e3006e14a2',
i686: '816c9dae258d6c3f10fd72bbf621253891cb01915746460d8b806784fe6647c0', i686: '557c79d8841fbdb52c8289e8e174a4f68a1db477a8a1ec7e1a352de8f60ecd95',
x86_64: '89be113223767b5c7af0b6f064efbb65338aac39208018b489152e1654185a33' x86_64: 'cbb4cd934818825e7bc006a82c02e67179d17c25922a04574853374c4760a095'
}) })
depends_on 'gsettings_desktop_schemas' depends_on 'gsettings_desktop_schemas'
...@@ -41,6 +41,9 @@ class Pulseaudio < Package ...@@ -41,6 +41,9 @@ class Pulseaudio < Package
depends_on 'jack' depends_on 'jack'
depends_on 'avahi' depends_on 'avahi'
depends_on 'gstreamer' depends_on 'gstreamer'
depends_on 'valgrind'
depends_on 'elogind'
depends_on 'eudev'
depends_on 'gst_plugins_base' depends_on 'gst_plugins_base'
depends_on 'gst_plugins_good' depends_on 'gst_plugins_good'
depends_on 'gst_plugins_bad' depends_on 'gst_plugins_bad'
...@@ -56,6 +59,7 @@ class Pulseaudio < Package ...@@ -56,6 +59,7 @@ class Pulseaudio < Package
-Dbluez5=false \ -Dbluez5=false \
-Dalsa=enabled \ -Dalsa=enabled \
-Dgstreamer=enabled \ -Dgstreamer=enabled \
-Delogind=enabled \
-Dtests=true \ -Dtests=true \
-Dudevrulesdir=#{CREW_PREFIX}/libexec/rules.d \ -Dudevrulesdir=#{CREW_PREFIX}/libexec/rules.d \
-Dalsadatadir=#{CREW_PREFIX}/share/alsa-card-profile \ -Dalsadatadir=#{CREW_PREFIX}/share/alsa-card-profile \
...@@ -76,7 +80,7 @@ class Pulseaudio < Package ...@@ -76,7 +80,7 @@ class Pulseaudio < Package
# stderr: # stderr:
# loop-init # loop-init
# once! # once!
system 'ninja -C builddir test || true' # system 'ninja -C builddir test || true'
end end
def self.install def self.install
...@@ -124,5 +128,8 @@ class Pulseaudio < Package ...@@ -124,5 +128,8 @@ class Pulseaudio < Package
.endif .endif
PAUDIO_DEFAULT_PA_HEREDOC PAUDIO_DEFAULT_PA_HEREDOC
IO.write("#{CREW_DEST_PREFIX}/etc/pulse/default.pa", @pulseaudio_default_pa, perm: 0o666) IO.write("#{CREW_DEST_PREFIX}/etc/pulse/default.pa", @pulseaudio_default_pa, perm: 0o666)
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/dbus-1/system.d"
FileUtils.mv "#{CREW_DEST_PREFIX}/etc/dbus-1/system.d/pulseaudio-system.conf",
"#{CREW_DEST_PREFIX}/share/dbus-1/system.d/pulseaudio-system.conf"
end end
end end
...@@ -3,26 +3,30 @@ require 'package' ...@@ -3,26 +3,30 @@ require 'package'
class Pygments < Package class Pygments < Package
description 'Python Syntax Highlighter' description 'Python Syntax Highlighter'
homepage 'https://pygments.org/' homepage 'https://pygments.org/'
version '2.7.3-2' version '2.8.0'
compatibility 'all' compatibility 'all'
source_url 'file:///dev/null' source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/pygments-2.7.3-2-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/pygments-2.8.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/pygments-2.7.3-2-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/pygments-2.8.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/pygments-2.7.3-2-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/pygments-2.8.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/pygments-2.7.3-2-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/pygments-2.8.0-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '5fe220b1a04d9e1368120ba326fb238ce5e98bf7267c1dae66ab4df0e2b15ffe', aarch64: '0b7af6a0717a3b929c8a51fb2466565239810090478b7a4ac23f0e3da2fbc04e',
armv7l: '5fe220b1a04d9e1368120ba326fb238ce5e98bf7267c1dae66ab4df0e2b15ffe', armv7l: '0b7af6a0717a3b929c8a51fb2466565239810090478b7a4ac23f0e3da2fbc04e',
i686: 'e6ea0521588e6a30f27d63b2c04c0046a0938fc0896e42c1521b375fe7742b3b', i686: 'ffe3bd980c153fb1592a6027b44cd4b57161211160e8d2ce4ee4b17d86528615',
x86_64: '281b79540b3ff6515a41660fde00e5863206e39e612ac9cb61d77bfcc4ad3d5d', x86_64: '955f2f252e98842b63569334ad133908c2c527617b687f632bbfd1f4db8013b6'
}) })
def self.install def self.install
system "pip3 uninstall -y pygments" system 'pip3 uninstall -y pygments'
system "pip3 install --upgrade --no-warn-script-location pygments --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR}" system "pip3 install --upgrade --no-warn-script-location pygments --prefix #{CREW_PREFIX} --root #{CREW_DEST_DIR}"
end end
def self.postinstall
system 'pip3 install --upgrade pygments'
end
end end
require 'package'
class Qqwing < Package
description 'QQwing is a Sudoku puzzle generator and solver.'
homepage 'https://qqwing.com/'
version '1.3.4'
compatibility 'all'
source_url 'https://qqwing.com/qqwing-1.3.4.tar.gz'
source_sha256 '1753736c31feea0085f5cfac33143743204f8a7e66b81ccd17e249ecafba802f'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/qqwing-1.3.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/qqwing-1.3.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/qqwing-1.3.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/qqwing-1.3.4-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'b06f588f35e0e02728cc058ed736a97653c61b0a7dd93f151e301ca2e03bf0a3',
armv7l: 'b06f588f35e0e02728cc058ed736a97653c61b0a7dd93f151e301ca2e03bf0a3',
i686: '44111882030a083db1f5f4062124092f69cc2b67094a57c6266f7cd0d5a24c8b',
x86_64: '2272662e36f739b18a3a24c33e3213cb6a5fbe34b92049154f831f0407f58f21',
})
def self.build
system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.check
system "make", "check"
end
end
require 'package'
class Rav1e < Package
description 'An AV1 encoder focused on speed and safety'
homepage 'https://github.com/xiph/rav1e/'
@_ver = '0.5.0-alpha'
version @_ver
compatibility 'x86_64 aarch64 armv7l'
source_url "https://github.com/xiph/rav1e/archive/v#{@_ver}.tar.gz"
source_sha256 'fd884fa387d01860eaf22a0a97353525221eb32bf6b9154bbfa21b6cce5988c8'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/rav1e-0.5.0-alpha-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/rav1e-0.5.0-alpha-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/rav1e-0.5.0-alpha-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'd02192b1152145b31bb1192d79ca40cb722d3c550b7471020e30bfac69448571',
armv7l: 'd02192b1152145b31bb1192d79ca40cb722d3c550b7471020e30bfac69448571',
x86_64: '2c05f46c0361e5fc0b2e40fbd62561c0383eb2dd2b140a3d77a1fd3fc263a07f'
})
depends_on 'rust' => :build
depends_on 'cargo_c' => :build
def self.build
system "cargo fetch \
--manifest-path Cargo.toml"
system "cargo build \
--release \
--frozen \
--manifest-path Cargo.toml"
system "cargo cbuild \
--release \
--frozen \
--prefix=#{CREW_PREFIX} \
--manifest-path Cargo.toml"
end
def self.install
system "cargo install \
--frozen \
--offline \
--no-track \
--path . \
--root #{CREW_DEST_PREFIX}"
system "cargo cinstall \
--frozen \
--offline \
--prefix=#{CREW_PREFIX} \
--destdir=#{CREW_DEST_DIR} \
--libdir=#{CREW_LIB_PREFIX}"
end
end
require 'package'
class Re2 < Package
description 'RE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines like those used in PCRE, Perl, and Python.'
homepage 'https://github.com/google/re2/'
compatibility 'all'
@_ver = '2021-02-02'
version @_ver
source_url "https://github.com/google/re2/archive/#{@_ver}.tar.gz"
source_sha256 '1396ab50c06c1a8885fb68bf49a5ecfd989163015fd96699a180d6414937f33f'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/re2-2021-02-02-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/re2-2021-02-02-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/re2-2021-02-02-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/re2-2021-02-02-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: 'ae5d5606c670ae8b7a1d6faae048683e2a68a49594e3955ba422924d0e236b6a',
armv7l: 'ae5d5606c670ae8b7a1d6faae048683e2a68a49594e3955ba422924d0e236b6a',
i686: '0405d43ceba95bc74cd1d301d7fc32441599f22686fcf05850376fb32044bfff',
x86_64: '669255b395f866889afadd99b31c34a94f7c6ede80e1292a42c6126cedf90315'
})
def self.build
# cmake version doesn't provide libre2 library, use make instead
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} #{CREW_OPTIONS.gsub('--', '')} install"
end
end
...@@ -23,6 +23,7 @@ class Rsync < Package ...@@ -23,6 +23,7 @@ class Rsync < Package
}) })
depends_on 'xxhash' depends_on 'xxhash'
depends_on 'lz4'
def self.build def self.build
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \ system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
......
...@@ -3,33 +3,34 @@ require 'package' ...@@ -3,33 +3,34 @@ require 'package'
class Sane_backends < Package class Sane_backends < Package
description 'Scanner Access Now Easy - Backends' description 'Scanner Access Now Easy - Backends'
homepage 'http://www.sane-project.org/' homepage 'http://www.sane-project.org/'
version '1.0.27' version '1.0.32'
compatibility 'all' compatibility 'all'
source_url 'https://gitlab.com/sane-project/backends/-/archive/RELEASE_1_0_27/backends-RELEASE_1_0_27.tar.bz2' source_url 'https://gitlab.com/sane-project/backends/uploads/104f09c07d35519cc8e72e604f11643f/sane-backends-1.0.32.tar.gz'
source_sha256 '6a4034a9d29255bb40cf5a19f3d85dd7ba4fe6452eb9b1ae4385bc8175493ec4' source_sha256 '3a28c237c0a72767086202379f6dc92dbb63ec08dfbab22312cba80e238bb114'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sane_backends-1.0.27-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sane_backends-1.0.32-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sane_backends-1.0.27-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sane_backends-1.0.32-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sane_backends-1.0.27-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/sane_backends-1.0.32-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sane_backends-1.0.27-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sane_backends-1.0.32-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '88808a041b13f2cc49fcc997e79ee2976010613d4961a552022b5a1d9887fd98', aarch64: 'ac5d7ac8a77796e58a2b423ecabb59df5cbcec5c734080942cf187517deecaf9',
armv7l: '88808a041b13f2cc49fcc997e79ee2976010613d4961a552022b5a1d9887fd98', armv7l: 'ac5d7ac8a77796e58a2b423ecabb59df5cbcec5c734080942cf187517deecaf9',
i686: '890abd21b508d9efc1a91e7738f00b58589110c536b79b9df8c3ee12b5f39e4c', i686: '5fad9e3f62a984238d46ce0eb4a3e29bb687a38c7fc356c8a058c9fe242395e5',
x86_64: 'b585e6efcc75a0d54dc1468d6e9fa00445af1a5ceb01752dc11d7ad65a101efc', x86_64: '977124535b8365b80a29d6449f22cb0760f417f294f341ec53ebd9faae2c4cab'
}) })
def self.build def self.build
system './configure', system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--prefix=#{CREW_PREFIX}", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}", LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--disable-maintainer-mode' ./configure #{CREW_OPTIONS} \
--disable-maintainer-mode"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
...@@ -3,35 +3,36 @@ require 'package' ...@@ -3,35 +3,36 @@ require 'package'
class Sane_frontends < Package class Sane_frontends < Package
description 'Scanner Access Now Easy - Frontends' description 'Scanner Access Now Easy - Frontends'
homepage 'http://www.sane-project.org/' homepage 'http://www.sane-project.org/'
version 'c3e739' version '5729'
compatibility 'all' compatibility 'all'
source_url 'https://gitlab.com/sane-project/frontends/-/archive/c3e739702f965f635319e0407c5a1e0b17dd7b42/frontends-c3e739702f965f635319e0407c5a1e0b17dd7b42.tar.bz2' source_url 'https://gitlab.com/sane-project/frontends/-/archive/572980c81586c114fd66fc473c634b4b2780cda2/frontends-572980c81586c114fd66fc473c634b4b2780cda2.tar.bz2'
source_sha256 'eb38d1ff3cc074a5db2538c523e654db1946f6e96593e252e433467ebab8a525' source_sha256 'c58a2066891428c6e6c6f625b595e3ada8b36dfe69250b1bbdaded91d76b094f'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sane_frontends-c3e739-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sane_frontends-5729-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sane_frontends-c3e739-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sane_frontends-5729-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sane_frontends-c3e739-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/sane_frontends-5729-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sane_frontends-c3e739-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sane_frontends-5729-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '2867edb5d4a2ce0d6dca6ce7794d407900b9e3841fe42dd722a6fabdbddd8021', aarch64: '2ccfe4f3af211f4132015436d57f65a59d9d011d73ad4919cb0fb7d2555d2d48',
armv7l: '2867edb5d4a2ce0d6dca6ce7794d407900b9e3841fe42dd722a6fabdbddd8021', armv7l: '2ccfe4f3af211f4132015436d57f65a59d9d011d73ad4919cb0fb7d2555d2d48',
i686: '6bc6e0a417fe5aed435c1acee5796729a241ff6584930c66f49ebd65f8fc1ad7', i686: '4ede64326112d776b179874c889484b6fedd0dc2b5203fbb99eadad1b03ca1e8',
x86_64: '7404a4f07aeaee09f4610faafa40251f6f22c93b92cce5eeed267305dd9e8576', x86_64: 'd019012cc57c3212db24418df945a7dbf078ace549e875cbf312d19e0d4a8f44'
}) })
depends_on 'sane_backends' depends_on 'sane_backends'
depends_on 'sommelier'
def self.build def self.build
system './configure', system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--prefix=#{CREW_PREFIX}", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--disable-maintainer-mode' LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS} \
--disable-maintainer-mode"
system 'make' system 'make'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end end
end end
require 'package'
class Sccache < Package
description 'Shared Compilation Cache'
homepage 'https://github.com/mozilla/sccache/'
@_ver = '0.2.15'
version @_ver
compatibility 'all'
source_url "https://github.com/mozilla/sccache/archive/v#{@_ver}.tar.gz"
source_sha256 '7dbe71012f9b0b57d8475de6b36a9a3b4802e44a135e886f32c5ad1b0eb506e0'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sccache-0.2.15-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sccache-0.2.15-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sccache-0.2.15-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sccache-0.2.15-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '0c5c81c8fb17e91e420cd2ab261800d5640519956a40c3feb74469bee303ec4e',
armv7l: '0c5c81c8fb17e91e420cd2ab261800d5640519956a40c3feb74469bee303ec4e',
i686: '817d47a4b92fc15e60c3f1f920965b8d6adbb0913f635abcd31135bc3ff0cde3',
x86_64: 'abbede3efe1a1cdee32be218ec2b86781da6074a262d7c07ac23b247610b8262'
})
depends_on 'rust' => ':build'
def self.build
system "cargo fetch \
--manifest-path Cargo.toml"
system "cargo build \
--release \
--frozen \
--manifest-path Cargo.toml"
end
def self.install
system "cargo install \
--frozen \
--offline \
--no-track \
--path . \
--root #{CREW_DEST_PREFIX}"
end
end
...@@ -3,36 +3,22 @@ require 'package' ...@@ -3,36 +3,22 @@ require 'package'
class Skype < Package class Skype < Package
description 'Skype is a telecommunications application that specializes in providing video chat and voice calls between devices' description 'Skype is a telecommunications application that specializes in providing video chat and voice calls between devices'
homepage 'https://www.skype.com/' homepage 'https://www.skype.com/'
version '8.68.76.35' version '8.69.76.76'
compatibility 'x86_64' compatibility 'x86_64'
case ARCH
when 'x86_64' if ARCH == 'x86_64' then
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
depends_on 'alien' => :build
depends_on 'gtk3' depends_on 'gtk3'
depends_on 'sommelier' depends_on 'sommelier'
source_url "https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_#{version}_amd64.deb"
source_sha256 '30182e5d940993061956a7fd188ca56fbf3bc0852f7c6e8e6a46d44460db63c4'
end end
binary_url ({ def self.preinstall
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/skype-8.68.76.35-chromeos-x86_64.tar.xz', FileUtils.ln_s "#{CREW_PREFIX}/bin/skypeforlinux", 'usr/bin/skype'
})
binary_sha256 ({
x86_64: 'a81fe08610a71e5b3f1b9d45384c58a405ec6c94f36a88ec0dd7d257240feb26',
})
def self.build
system 'curl https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_8.68.76.35_amd64.deb -#o skype.deb'
puts "Archive downloaded".lightgreen
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('skype.deb') ) == '701449b86ff1c10ee800cc017033c7c2e9b31023fcc1a9058590babf070ce3bb'
system 'alien -tc skype.deb'
system "tar xvf skypeforlinux-#{version}.tgz"
end end
def self.install def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}" FileUtils.mkdir_p CREW_DEST_PREFIX
FileUtils.mv 'usr/bin', "#{CREW_DEST_PREFIX}" FileUtils.mv Dir.glob('usr/*'), CREW_DEST_PREFIX
FileUtils.mv 'usr/share', "#{CREW_DEST_PREFIX}"
FileUtils.ln_s "#{CREW_PREFIX}/bin/skypeforlinux", "#{CREW_DEST_PREFIX}/bin/skype"
end end
end end
require 'package' require 'package'
class Startup_notification < Package class Startup_notification < Package
description 'Library for tracking application startup' description 'Monitor and display application startup'
homepage 'http://www.freedesktop.org' homepage 'https://www.freedesktop.org'
version '0.12-1' @_ver = '0.12'
version "#{@_ver}-2"
compatibility 'all' compatibility 'all'
source_url 'https://freedesktop.org/software/startup-notification/releases/startup-notification-0.12.tar.gz' source_url "https://www.freedesktop.org/software/startup-notification/releases/startup-notification-#{@_ver}.tar.gz"
source_sha256 '3c391f7e930c583095045cd2d10eb73a64f085c7fde9d260f2652c7cb3cfbe4a' source_sha256 '3c391f7e930c583095045cd2d10eb73a64f085c7fde9d260f2652c7cb3cfbe4a'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/startup_notification-0.12-1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/startup_notification-0.12-2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/startup_notification-0.12-1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/startup_notification-0.12-2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/startup_notification-0.12-1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/startup_notification-0.12-2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/startup_notification-0.12-1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/startup_notification-0.12-2-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'c6a0bf1e9af0ac20da92a9c4e2bde6fa48cfbdc7a5b6e436aaf2814472ec9914', aarch64: '8bd6a0275356eb6dd22ff8b5352354873cbba0e57f99864a52e853de3f9284c2',
armv7l: 'c6a0bf1e9af0ac20da92a9c4e2bde6fa48cfbdc7a5b6e436aaf2814472ec9914', armv7l: '8bd6a0275356eb6dd22ff8b5352354873cbba0e57f99864a52e853de3f9284c2',
i686: '23ed0fa58d54e3d04c068e4cf591c292a5ae1ee56093349e35adb7eab47e5f7e', i686: '028205aa25c3c3a082dbe1046a2c5c7b7e59e0ae38b819b6511c942cff2f19e2',
x86_64: 'b8fa364b3a6cd8c9f9c1cf18782086de55cea6354200448aa5c6d96f4f840b38', x86_64: '85ac878ff6afeaa64b599b8a20b2615f95dbeb99f046c8f52bde474697d357ab'
}) })
depends_on 'libx11'
depends_on 'xcb_util' depends_on 'xcb_util'
def self.patch
system "sed -i -e '/AC_PATH_XTRA/d' configure.in"
end
def self.build def self.build
system "./configure #{CREW_OPTIONS}" system 'autoreconf --force --install'
system "env CFLAGS='-flto=auto' \
CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--localstatedir=/var \
--sysconfdir=#{CREW_PREFIX}/etc"
system 'make' system 'make'
end end
def self.install def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system "make DESTDIR=#{CREW_DEST_DIR} install"
end end
end end
# Not supported on 32-bit architectures.
require 'package'
class Svt_av1 < Package
description 'Scalable Video Technology AV1 encoder and decoder'
homepage 'https://gitlab.com/AOMediaCodec/SVT-AV1'
@_ver = '0.8.6'
version @_ver
compatibility 'x86_64'
source_url "https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v#{@_ver}/SVT-AV1-v#{@_ver}.tar.bz2"
source_sha256 'e942959be6b062f4adea33fd5dbfbd5581b178ce87b4baf9bd84283fbc8203e1'
binary_url({
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/svt_av1-0.8.6-chromeos-x86_64.tar.xz'
})
binary_sha256({
x86_64: 'aae2d184ceaefd583dc310342497e01f334d6abf65bfd123a96ea8d4d535a8e0'
})
def self.build
Dir.mkdir 'builddir'
Dir.chdir 'builddir' do
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto -I#{CREW_PREFIX}/include/harfbuzz' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=ON \
-DNATIVE=OFF \
.."
end
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
require 'package'
class Symlinks < Package
description 'scan/change symbolic links'
homepage 'https://metadata.ftp-master.debian.org/changelogs//main/s/symlinks/symlinks_1.4-4_copyright'
@_ver = '1.4-4'
version @_ver
compatibility 'all'
source_url "https://salsa.debian.org/debian/symlinks/-/archive/debian/#{@_ver}/symlinks-debian-#{@_ver}.tar.bz2"
source_sha256 'f4469a9f366ccfaa7273b1f78bd540b8a6fa96f8b2b81a95d131944fb77efdd4'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/symlinks-1.4-4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/symlinks-1.4-4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/symlinks-1.4-4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/symlinks-1.4-4-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '75676c7daebaa9a32ddf2053a47fde8e9cfb19ef774388b577b352514d98925d',
armv7l: '75676c7daebaa9a32ddf2053a47fde8e9cfb19ef774388b577b352514d98925d',
i686: '94c62cf190ad07a4c38c9fe15875ba819b17d9be306ed907aa4643a7a24d1e49',
x86_64: '39fe5a53a1c557aa71cfd6d7760e069c0421931e3e5345c57696e1cf79bf8e39'
})
def self.patch
system('for i in `cat debian/patches/series`; do patch -p 1 < debian/patches/$i; done')
system "sed -i 's,/usr/local,#{CREW_DEST_PREFIX},g' Makefile"
end
def self.build
system 'make'
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_MAN_PREFIX}/man8"
FileUtils.install 'symlinks', "#{CREW_DEST_PREFIX}/bin/symlinks", mode: 0o755
FileUtils.install 'symlinks.8', "#{CREW_DEST_MAN_PREFIX}/man8/symlinks.8", mode: 0o644
end
end
...@@ -4,31 +4,38 @@ class Tcl < Package ...@@ -4,31 +4,38 @@ class Tcl < Package
description 'Tcl (Tool Command Language) is a very powerful but easy to learn dynamic programming language, suitable for a very wide range of uses, including web and desktop applications, networking, administration, testing and many more.' description 'Tcl (Tool Command Language) is a very powerful but easy to learn dynamic programming language, suitable for a very wide range of uses, including web and desktop applications, networking, administration, testing and many more.'
homepage 'http://www.tcl.tk/' homepage 'http://www.tcl.tk/'
@_ver = '8.6.11' @_ver = '8.6.11'
version @_ver @_ver_prelastdot = @_ver.rpartition('.')[0]
version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url "https://downloads.sourceforge.net/project/tcl/Tcl/#{@_ver}/tcl#{@_ver}-src.tar.gz" source_url "https://downloads.sourceforge.net/project/tcl/Tcl/#{@_ver}/tcl#{@_ver}-src.tar.gz"
source_sha256 '8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258' source_sha256 '8c0486668586672c5693d7d95817cb05a18c5ecca2f40e2836b9578064088258'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.11-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.11-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.11-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.11-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.11-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.11-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.11-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/tcl-8.6.11-1-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: 'd1a9f91c71af31f9c862ae92836a9ec4c84c9d0213c1ce85d996a69213e1be7c', aarch64: '82ae2b101306c3a450a81a44e3b9d5e05b2a5f6bcfaba6bbe9907a26b04914aa',
armv7l: 'd1a9f91c71af31f9c862ae92836a9ec4c84c9d0213c1ce85d996a69213e1be7c', armv7l: '82ae2b101306c3a450a81a44e3b9d5e05b2a5f6bcfaba6bbe9907a26b04914aa',
i686: '6581a445fa9c0a57b66bd4f32cac09f6b9e3a002b377e97163cfba10ff73f230', i686: '52dbbca5c17fc69ced4ae740c00f5c992dd0a7495753c9c32c2ffe6a0ce3f052',
x86_64: '502238e6785c264e145b19fec1267104a839ecd4ab6cce9e21802810c601e591' x86_64: '2a7b7348a8b4c83b3bd5b6e6d584911ebba10db0b1485f974888ec4f5734f27f'
}) })
# tk breaks if tcl is built with lto # tk breaks if tcl is built with lto
def self.build def self.build
FileUtils.chdir('unix') do FileUtils.chdir('unix') do
if ARCH == 'x86_64' if ARCH == 'x86_64'
system "./configure #{CREW_OPTIONS} --enable-64bit" system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE' \
./configure #{CREW_OPTIONS} --enable-64bit"
else else
system "./configure #{CREW_OPTIONS} --disable-64bit" system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE' \
./configure #{CREW_OPTIONS} --disable-64bit"
end end
system 'make' system 'make'
end end
...@@ -38,18 +45,7 @@ class Tcl < Package ...@@ -38,18 +45,7 @@ class Tcl < Package
FileUtils.chdir('unix') do FileUtils.chdir('unix') do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install-private-headers' system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install-private-headers'
FileUtils.ln_s "#{CREW_PREFIX}/bin/tclsh8.6", "#{CREW_DEST_PREFIX}/bin/tclsh" FileUtils.ln_s "#{CREW_PREFIX}/bin/tclsh#{@_ver_prelastdot}", "#{CREW_DEST_PREFIX}/bin/tclsh"
FileUtils.ln_s "#{CREW_LIB_PREFIX}/itcl4.2.0/libitcl4.2.0.so", "#{CREW_DEST_LIB_PREFIX}/libitcl4.2.0.so"
FileUtils.ln_s "#{CREW_LIB_PREFIX}/tdbc1.1.1/libtdbc1.1.1.so", "#{CREW_DEST_LIB_PREFIX}/libtdbc1.1.1.so"
FileUtils.ln_s "#{CREW_LIB_PREFIX}/thread2.8.5/libthread2.8.5.so", "#{CREW_DEST_LIB_PREFIX}/libthread2.8.5.so"
FileUtils.ln_s "#{CREW_LIB_PREFIX}/tdbcodbc1.1.1/libtdbcodbc1.1.1.so",
"#{CREW_DEST_LIB_PREFIX}/libtdbcodbc1.1.1.so"
FileUtils.ln_s "#{CREW_LIB_PREFIX}/sqlite3.30.1.2/libsqlite3.30.1.2.so",
"#{CREW_DEST_LIB_PREFIX}/libsqlite3.30.1.2.so"
FileUtils.ln_s "#{CREW_LIB_PREFIX}/tdbcmysql1.1.1/libtdbcmysql1.1.1.so",
"#{CREW_DEST_LIB_PREFIX}/libtdbcmysql1.1.1.so"
FileUtils.ln_s "#{CREW_LIB_PREFIX}/tdbcpostgres1.1.1/libtdbcpostgres1.1.1.so",
"#{CREW_DEST_LIB_PREFIX}/libtdbcpostgres1.1.1.so"
end end
end end
end end
require 'package'
class Telepathy_glib < Package
description 'GLib bindings for the Telepathy D-Bus protocol'
homepage 'https://telepathy.freedesktop.org'
@_ver = '0.24.2'
version @_ver
compatibility 'all'
source_url "https://telepathy.freedesktop.org/releases/telepathy-glib/telepathy-glib-#{@_ver}.tar.gz"
source_sha256 'b0a374d771cdd081125f38c3abd079657642301c71a543d555e2bf21919273f0'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/telepathy_glib-0.24.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/telepathy_glib-0.24.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/telepathy_glib-0.24.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/telepathy_glib-0.24.2-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '5b6f9a8f1de97a29cb13f82fd8647a4416e974fadfaa4ad3f2c1f5181cecc40c',
armv7l: '5b6f9a8f1de97a29cb13f82fd8647a4416e974fadfaa4ad3f2c1f5181cecc40c',
i686: '62adb61813dc3e203125939fdce5d04b2253af1669ccad009160bc6ec066a4b3',
x86_64: '816ac47c89d6d65c01e40ce4f0b43c6110000bbf0e5a87cfd866904128a5394f'
})
depends_on 'dbus_glib'
depends_on 'libxslt' => ':build'
depends_on 'vala' => ':build'
depends_on 'gobject_introspection' => ':build'
def self.build
system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--libexecdir=#{CREW_LIB_PREFIX}/telepathy \
--enable-vala-bindings"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
...@@ -30,6 +30,11 @@ class Template < Package ...@@ -30,6 +30,11 @@ class Template < Package
# depends_on '*' # depends_on '*'
# #
# Function to perform pre-flight operations prior to dependency checks.
def self.preflight
end
# Function to perform patch operations prior to build from source. # Function to perform patch operations prior to build from source.
def self.patch def self.patch
......
...@@ -4,22 +4,23 @@ class Tk < Package ...@@ -4,22 +4,23 @@ class Tk < Package
description 'Tk is a graphical user interface toolkit that takes developing desktop applications to a higher level than conventional approaches.' description 'Tk is a graphical user interface toolkit that takes developing desktop applications to a higher level than conventional approaches.'
homepage 'http://www.tcl.tk/' homepage 'http://www.tcl.tk/'
@_ver = '8.6.11' @_ver = '8.6.11'
version @_ver @_ver_prelastdot = @_ver.rpartition('.')[0]
version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url "https://downloads.sourceforge.net/project/tcl/Tcl/#{@_ver}/tk#{@_ver}-src.tar.gz" source_url "https://downloads.sourceforge.net/project/tcl/Tcl/#{@_ver}/tk#{@_ver}-src.tar.gz"
source_sha256 '5228a8187a7f70fa0791ef0f975270f068ba9557f57456f51eb02d9d4ea31282' source_sha256 '5228a8187a7f70fa0791ef0f975270f068ba9557f57456f51eb02d9d4ea31282'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/tk-8.6.11-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/tk-8.6.11-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/tk-8.6.11-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/tk-8.6.11-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/tk-8.6.11-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/tk-8.6.11-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/tk-8.6.11-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/tk-8.6.11-1-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: 'a8866147a504c56cd834f71e078d6ca080f52873e673cbc55c7a7939991c6d3b', aarch64: '45f352f6979be6011f5f1d4a8ee6caef842ae2d8579f2d3ae69bf361a41e320d',
armv7l: 'a8866147a504c56cd834f71e078d6ca080f52873e673cbc55c7a7939991c6d3b', armv7l: '45f352f6979be6011f5f1d4a8ee6caef842ae2d8579f2d3ae69bf361a41e320d',
i686: '8a4afe834eaf7fb966714513becbde55e10125e1c3018e2db61aabb5565526fe', i686: '13d38ebfee7bec6dc28f0785fed724d459b22e3dbf8e8f2c7483c05ee75e0c25',
x86_64: 'dac36fa0385f8958676b71ee2dc10278fa7e5ebf7aa6ae3a3e04ea1b85fa9443' x86_64: '05b1753d45c1820ec8f51e28fe523376efaf04589b93bcefd38fc83752587390'
}) })
depends_on 'xorg_lib' depends_on 'xorg_lib'
...@@ -28,18 +29,18 @@ class Tk < Package ...@@ -28,18 +29,18 @@ class Tk < Package
def self.build def self.build
FileUtils.chdir('unix') do FileUtils.chdir('unix') do
if ARCH == 'x86_64' if ARCH == 'x86_64'
system "env CFLAGS='-flto=auto -pipe -fuse-ld=gold' \ system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-flto=auto -pipe -fuse-ld=gold' \ CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-flto=auto' \ LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure \ ./configure \
#{CREW_OPTIONS} \ #{CREW_OPTIONS} \
--with-tcl=#{CREW_LIB_PREFIX} \ --with-tcl=#{CREW_LIB_PREFIX} \
--enable-threads \ --enable-threads \
--enable-64bit" --enable-64bit"
else else
system "env CFLAGS='-flto=auto -pipe -fuse-ld=gold' \ system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-flto=auto -pipe -fuse-ld=gold' \ CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-flto=auto' \ LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure \ ./configure \
#{CREW_OPTIONS} \ #{CREW_OPTIONS} \
--with-tcl=#{CREW_LIB_PREFIX} \ --with-tcl=#{CREW_LIB_PREFIX} \
...@@ -53,7 +54,7 @@ class Tk < Package ...@@ -53,7 +54,7 @@ class Tk < Package
def self.install def self.install
FileUtils.chdir('unix') do FileUtils.chdir('unix') do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.ln_s "#{CREW_PREFIX}/bin/wish8.6", "#{CREW_DEST_PREFIX}/bin/wish" FileUtils.ln_s "#{CREW_PREFIX}/bin/wish#{@_ver_prelastdot}", "#{CREW_DEST_PREFIX}/bin/wish"
end end
end end
end end
require 'package'
class Torbrowser < Package
description "'The Onion Router' browser"
homepage 'https://www.torproject.org/'
compatibility 'x86_64'
@_ver = '10.0.13'
version @_ver
case ARCH
when 'x86_64'
@_url = "https://www.torproject.org/dist/torbrowser/#{@_ver}"
@_name = "tor-browser-linux64-#{@_ver}_en-US.tar.xz"
source_url "#{@_url}/#{@_name}"
source_sha256 `curl -Ls '#{@_url}/sha256sums-signed-build.txt' | grep '#{@_name}' | cut -d' ' -f1`.chomp
depends_on 'gtk3'
depends_on 'sommelier'
end
def self.build
@tor = <<~EOF
#!/bin/sh -e
cd #{CREW_PREFIX}/share/
./start-tor-browser.desktop "$@"
EOF
File.write('tor', @tor)
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share"
FileUtils.mv 'Browser/', "#{CREW_DEST_PREFIX}/share/"
FileUtils.mv 'start-tor-browser.desktop', "#{CREW_DEST_PREFIX}/share"
FileUtils.install 'tor', "#{CREW_DEST_PREFIX}/bin/tor", mode: 0755
end
def self.postinstall
puts
puts 'Set Tor as your default browser? [Y/n]: '
case STDIN.gets.chomp
when "\n", 'Y', 'y', 'yes'
Dir.chdir("#{CREW_PREFIX}/bin") do
FileUtils.ln_sf 'tor', 'x-www-browser'
end
else
puts 'No change has been made.'
puts
end
puts
puts "Type 'tor' to get started.".lightblue
puts
end
def self.remove
Dir.chdir("#{CREW_PREFIX}/bin") do
FileUtils.rm 'x-www-browser' if File.realpath('x-www-browser') == "#{CREW_PREFIX}/bin/tor"
end
end
end
require 'package'
class Unicode_character_database < Package
description 'Unicode Character Database'
homepage 'https://www.unicode.org/'
@_ver = '13.0.0'
version @_ver
compatibility 'all'
source_url "https://www.unicode.org/Public/zipped/#{@_ver}/UCD.zip"
source_sha256 '2f76973b4d36ae45584f5a45ec65b47138932d777dd23a5669c89535ef3da951'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_character_database-13.0.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_character_database-13.0.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_character_database-13.0.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_character_database-13.0.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '68f18a9c671f5879fccebc536c730e28610eaa3b62615faac64c2aa240c0dfbe',
armv7l: '68f18a9c671f5879fccebc536c730e28610eaa3b62615faac64c2aa240c0dfbe',
i686: '95e4261e757d50b90268c50be6075c5bd339fc187fcda549d12bc953bc79b971',
x86_64: '84dcb02569be48cedfbd149e8bd03507e66278615722a5f365b64a124c53a60b'
})
depends_on 'libarchive' => :build
def self.build
system "curl -Ls https://www.unicode.org/Public/zipped/#{@_ver}/Unihan.zip | bsdtar --no-same-owner --no-same-permissions -xf -"
end
def self.install
FileUtils.mkdir_p("#{CREW_DEST_PREFIX}/share/unicode")
FileUtils.cp_r('.', "#{CREW_DEST_PREFIX}/share/unicode")
end
end
require 'package'
class Unicode_cldr < Package
description 'Unicode Common Locale Data Repository'
homepage 'http://cldr.unicode.org/'
@_ver = '38.0'
@_ver_prelastdot = @_ver.rpartition('.')[0]
version @_ver
compatibility 'all'
source_url "https://unicode.org/Public/cldr/#{@_ver_prelastdot}/cldr-common-#{@_ver}.zip"
source_sha256 '19689be1352eafc2f034f065d4f70fe55136aed381c2d1e506d9ed49333ee9f8'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_cldr-38.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_cldr-38.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_cldr-38.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_cldr-38.0-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'fe2d83d790608a23da19f1bbd5dd6b155e4d180b68ffe15deea1b23624efd8d0',
armv7l: 'fe2d83d790608a23da19f1bbd5dd6b155e4d180b68ffe15deea1b23624efd8d0',
i686: 'b295112aa7398afb08f3f7f3d95d1f5e9bb675f96513187e91e2986d72cf526a',
x86_64: '2fbdc1ae0a2b56f81fc4e84cd08ea790404369bceaee7428c60daa9a2986a60f'
})
def self.install
FileUtils.mkdir_p("#{CREW_DEST_PREFIX}/share/unicode/cldr/common")
FileUtils.cp_r('common/.', "#{CREW_DEST_PREFIX}/share/unicode/cldr/common")
FileUtils.chmod_R(0o755, "#{CREW_DEST_PREFIX}/share/unicode/cldr/common")
end
end
require 'package'
class Unicode_emoji < Package
description 'Unicode Emoji Data Files'
homepage 'https://www.unicode.org/emoji/'
@_ver = '13.1'
version @_ver
compatibility 'all'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_emoji-13.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_emoji-13.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_emoji-13.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/unicode_emoji-13.1-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '9829b6a211e83f87db2d57bd1acb7c27fc9617f0eba167555813775de0aea844',
armv7l: '9829b6a211e83f87db2d57bd1acb7c27fc9617f0eba167555813775de0aea844',
i686: '893e3b5b6463a2806339f16e0a44ffa41edad6a31cb8fc8b3ad8b7170fd85042',
x86_64: '7082341530a8b5d27dda94db2ec5cfec2e4d7f5448b50bdd0ac351126f925843'
})
depends_on 'unicode_character_database'
def self.install
FileUtils.mkdir_p("#{CREW_DEST_PREFIX}/share/unicode/emoji")
system "curl -Lf https://www.unicode.org/Public/emoji/#{@_ver}/emoji-sequences.txt -o #{CREW_DEST_PREFIX}/share/unicode/emoji/emoji-sequences.txt"
system "curl -Lf https://www.unicode.org/Public/emoji/#{@_ver}/emoji-test.txt -o #{CREW_DEST_PREFIX}/share/unicode/emoji/emoji-test.txt"
system "curl -Lf https://www.unicode.org/Public/emoji/#{@_ver}/emoji-zwj-sequences.txt -o #{CREW_DEST_PREFIX}/share/unicode/emoji/emoji-zwj-sequences.txt"
end
end
require 'package'
class Upower < Package
description 'Abstraction for enumerating power devices, listening to device events and querying history and statistics'
homepage 'https://upower.freedesktop.org'
@_ver = '0.99.11'
@_ver_ = @_ver.gsub(/[.]/, '_')
version @_ver
compatibility 'all'
source_url "https://gitlab.freedesktop.org/upower/upower/-/archive/UPOWER_#{@_ver_}/upower-UPOWER_#{@_ver_}.tar.bz2"
source_sha256 'd50961ff6d2c5bc5e9b8ef6611a12dc8933f722ebf7de245b97fbe72999ebd9b'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/upower-0.99.11-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/upower-0.99.11-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/upower-0.99.11-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/upower-0.99.11-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'f424ee9ea8fa6d96c9765983fb3ba67564ac7ce4531ba3302b28a7dc2c54c9f5',
armv7l: 'f424ee9ea8fa6d96c9765983fb3ba67564ac7ce4531ba3302b28a7dc2c54c9f5',
i686: 'ce0952caa0be85214e627dbc1f910d5aba538b1e53e0ae459a329b85ed962ae9',
x86_64: '1a6543c4260568e9224dc1497cca57d99c0a1f0bd54ddd95267ea28b420fad1c'
})
depends_on 'libusb'
depends_on 'libgudev'
depends_on 'docbook_xsl' => ':build'
depends_on 'gobject_introspection' => ':build'
depends_on 'gtk_doc' => ':build'
def self.build
system 'NOCONFIGURE=1 ./autogen.sh'
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
LDFLAGS='-flto=auto' \
./configure \
#{CREW_OPTIONS} \
--sysconfdir=#{CREW_PREFIX}/etc \
--localstatedir=#{CREW_PREFIX}/var \
--libexecdir=#{CREW_PREFIX}/libexec \
--enable-gtk-doc"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
end
...@@ -3,29 +3,34 @@ require 'package' ...@@ -3,29 +3,34 @@ require 'package'
class Util_macros < Package class Util_macros < Package
description 'The util-macros package contains the m4 macros used by all of the Xorg packages' description 'The util-macros package contains the m4 macros used by all of the Xorg packages'
homepage 'https://www.linuxfromscratch.org/blfs/view/svn/util-macros.html' homepage 'https://www.linuxfromscratch.org/blfs/view/svn/util-macros.html'
version '1.19.2' @_ver = '1.19.3'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://www.x.org/archive/individual/util/util-macros-1.19.2.tar.bz2' source_url "https://xorg.freedesktop.org/releases/individual/util/util-macros-#{@_ver}.tar.bz2"
source_sha256 'd7e43376ad220411499a79735020f9d145fdc159284867e99467e0d771f3e712' source_sha256 '0f812e6e9d2786ba8f54b960ee563c0663ddbe2434bf24ff193f5feab1f31971'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/util_macros-1.19.2-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/util_macros-1.19.3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/util_macros-1.19.2-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/util_macros-1.19.3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/util_macros-1.19.2-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/util_macros-1.19.3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/util_macros-1.19.2-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/util_macros-1.19.3-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '13b77fca072e19dec38d98c18ac41a1574a1ef87c7b59266dd0f8ebf5bc93689', aarch64: 'e97980e3df0457a1067a42e907f68c31b6be5fa7199cd259ab2ff318c0358246',
armv7l: '13b77fca072e19dec38d98c18ac41a1574a1ef87c7b59266dd0f8ebf5bc93689', armv7l: 'e97980e3df0457a1067a42e907f68c31b6be5fa7199cd259ab2ff318c0358246',
i686: 'd1940387af9ebedd3153b18c7b3a1f0618c9fa2992877bc47396089e3ce4c6ac', i686: 'd1d50eb7b3cdbec100fd3d91a3e86400e9abc8fbc648c97423b5678a783cf5f2',
x86_64: '88f9f8686f46ec54844d02d140a1db97dabbd48a615a90c4388d1e5b7c63b644', x86_64: 'fdf6e08157bac20b6bae42bd63b3ddbe99d67604a63fee47bd405e2c5fac71ec'
}) })
def self.build def self.build
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}" system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure #{CREW_OPTIONS}"
system 'make'
end end
def self.install def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system "make DESTDIR=#{CREW_DEST_DIR} install"
end end
end end
...@@ -3,61 +3,76 @@ require 'package' ...@@ -3,61 +3,76 @@ require 'package'
class Vim < Package class Vim < Package
description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.' description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.'
homepage 'http://www.vim.org/' homepage 'http://www.vim.org/'
version '8.2.1976' @_ver = '8.2.2580'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/vim/vim/archive/v8.2.1976.tar.gz' source_url 'https://github.com/vim/vim/archive/v8.2.2580.tar.gz'
source_sha256 'd2d8bc28e28e9c5a63be570cdb44be39470621bb57dcbace5abbd86e15690678' source_sha256 'd0a508ca9726c8ff69bc5f5ab1ebe251c256e01e730f7b36afd03a66c89fcf79'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.1976-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.2580-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.1976-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.2580-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.1976-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.2580-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.1976-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vim-8.2.2580-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'd7f92124ba6fc6d6188ab872205fe8e9a866475b6dec9e4a7e88933620284068', aarch64: 'fc753eff299bb106dde43f55f7b52d40852f3f2b0651eb869afad92eb1c5132c',
armv7l: 'd7f92124ba6fc6d6188ab872205fe8e9a866475b6dec9e4a7e88933620284068', armv7l: 'fc753eff299bb106dde43f55f7b52d40852f3f2b0651eb869afad92eb1c5132c',
i686: '4439db5c399b4ed5a82128c2a97ca16125be842f0bad4a234566083c239ccd96', i686: 'a830cb5b36fe8752b90829f5b97dc382868d7dfda4462ed7cb3e37eebd27939a',
x86_64: '7e5660fa1d751e53a6012727fed17e3b4dea23ec3adc1750a1189d9b5908e579', x86_64: '27f86977743855f0f77f9797a80674eda93977a4309a02bff399364237984104'
}) })
depends_on 'vim_runtime' depends_on 'vim_runtime'
def self.preinstall def self.preflight
abort('Please remove libiconv before building.') if File.exist?("#{CREW_LIB_PREFIX}/libcharset.so")
gvim = `which gvim 2> /dev/null`.chomp gvim = `which gvim 2> /dev/null`.chomp
abort "gvim version #{version} already installed.".lightgreen unless "#{gvim}" == "" abort "gvim version #{version} already installed.".lightgreen unless gvim.to_s == ''
end end
def self.patch def self.patch
# set the system-wide vimrc path # set the system-wide vimrc path
FileUtils.cd('src') do FileUtils.cd('src') do
system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h" system 'sed', '-i', "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|",
system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h" 'feature.h'
system 'sed', '-i', "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|",
'feature.h'
system 'autoconf' system 'autoconf'
end end
end end
def self.build def self.build
system './configure', system './configure --help'
"--prefix=#{CREW_PREFIX}", system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--localstatedir=#{CREW_PREFIX}/var/lib/vim", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--with-features=huge', LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--with-compiledby='Chromebrew'", ./configure \
'--with-x=no', #{CREW_OPTIONS} \
'--disable-gui', --localstatedir=#{CREW_PREFIX}/var/lib/vim \
'--enable-multibyte', --with-features=huge \
'--enable-cscope', --with-compiledby='Chromebrew' \
'--enable-fontset', --enable-gpm \
'--enable-perlinterp=dynamic', --enable-acl \
'--enable-pythoninterp=dynamic', --with-x=no \
'--enable-python3interp=dynamic', --disable-gui \
'--enable-rubyinterp=dynamic', --enable-multibyte \
'--disable-selinux' --enable-cscope \
--enable-netbeans \
--enable-perlinterp=dynamic \
--enable-pythoninterp=dynamic \
--enable-python3interp=dynamic \
--enable-rubyinterp=dynamic \
--enable-luainterp=dynamic \
--enable-tclinterp=dynamic \
--disable-canberra \
--disable-selinux \
--disable-nls"
system 'make' system 'make'
end end
def self.install def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", "VIMRCLOC=#{CREW_PREFIX}/etc", 'install' system 'make', "DESTDIR=#{CREW_DEST_DIR}", "VIMRCLOC=#{CREW_PREFIX}/etc", 'install'
FileUtils.ln_s "#{CREW_PREFIX}/bin/vim", "#{CREW_DEST_PREFIX}/bin/vi"
# these are provided by 'vim_runtime' # these are provided by 'vim_runtime'
FileUtils.rm_r "#{CREW_DEST_PREFIX}/share/vim" FileUtils.rm_r "#{CREW_DEST_PREFIX}/share/vim"
...@@ -70,9 +85,9 @@ class Vim < Package ...@@ -70,9 +85,9 @@ class Vim < Package
def self.postinstall def self.postinstall
puts puts
puts "The config files are located in #{CREW_PREFIX}/etc.".lightblue puts "The config files are located in #{CREW_PREFIX}/etc.".lightblue
puts "User-specific configuration should go in ~/.vimrc.".lightblue puts 'User-specific configuration should go in ~/.vimrc.'.lightblue
puts puts
puts "If you are upgrading from an earlier version, edit ~/.bashrc".orange puts 'If you are upgrading from an earlier version, edit ~/.bashrc'.orange
puts "and remove the 'export VIMRUNTIME' and 'export LC_ALL=C' lines.".orange puts "and remove the 'export VIMRUNTIME' and 'export LC_ALL=C' lines.".orange
puts puts
end end
......
...@@ -3,49 +3,66 @@ require 'package' ...@@ -3,49 +3,66 @@ require 'package'
class Vim_runtime < Package class Vim_runtime < Package
description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. (shared runtime)' description 'Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. (shared runtime)'
homepage 'http://www.vim.org/' homepage 'http://www.vim.org/'
version '8.2.1976' @_ver = '8.2.2580'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/vim/vim/archive/v8.2.1976.tar.gz' source_url 'https://github.com/vim/vim/archive/v8.2.2580.tar.gz'
source_sha256 'd2d8bc28e28e9c5a63be570cdb44be39470621bb57dcbace5abbd86e15690678' source_sha256 'd0a508ca9726c8ff69bc5f5ab1ebe251c256e01e730f7b36afd03a66c89fcf79'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.1976-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.2580-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.1976-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.2580-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.1976-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.2580-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.1976-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vim_runtime-8.2.2580-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '681fbb6f06cfb300a1a1ba529bc9596ae3fc183e5ccc5e77a8bfb5869da4c281', aarch64: '8cc4833ea1a19af223e899b5aa7edfa7a7258f33080008d39783acf92d22e2e3',
armv7l: '681fbb6f06cfb300a1a1ba529bc9596ae3fc183e5ccc5e77a8bfb5869da4c281', armv7l: '8cc4833ea1a19af223e899b5aa7edfa7a7258f33080008d39783acf92d22e2e3',
i686: 'd6c5b6b3518c4a7856df53fac5f18af5bf6d48094bf1dc11d46018ba92cb2298', i686: '1cefc1026dfdac9d039bb82629ab9287c2bd9a6704f4929f120766d436e7c237',
x86_64: '588ce10bf392d363ce9de709f763ab79ef35a5e8e5eb67e278eec894b6fa04ed', x86_64: '9b8e3d8e1e7455d049000342972c9dfb09ad1fb0b98ef665dde381aa646f9951'
}) })
def self.preflight
abort('Please remove libiconv before building.') if File.exist?("#{CREW_LIB_PREFIX}/libcharset.so")
end
def self.patch def self.patch
# set the system-wide vimrc path # set the system-wide vimrc path
FileUtils.cd('src') do FileUtils.cd('src') do
system "sed", "-i", "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|", "feature.h" system 'sed', '-i', "s|^.*#define SYS_VIMRC_FILE.*$|#define SYS_VIMRC_FILE \"#{CREW_PREFIX}/etc/vimrc\"|",
system "sed", "-i", "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|", "feature.h" 'feature.h'
system 'sed', '-i', "s|^.*#define SYS_GVIMRC_FILE.*$|#define SYS_GVIMRC_FILE \"#{CREW_PREFIX}/etc/gvimrc\"|",
'feature.h'
system 'autoconf' system 'autoconf'
end end
end end
def self.build def self.build
system "./configure", system './configure --help'
"--prefix=#{CREW_PREFIX}", system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--localstatedir=#{CREW_PREFIX}/var/lib/vim", CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
'--with-features=huge', LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
"--with-compiledby='Chromebrew'", ./configure \
'--with-x=no', #{CREW_OPTIONS} \
'--disable-gui', --localstatedir=#{CREW_PREFIX}/var/lib/vim \
'--enable-multibyte', --with-features=huge \
'--enable-cscope', --with-compiledby='Chromebrew' \
'--enable-fontset', --enable-gpm \
'--enable-perlinterp=dynamic', --enable-acl \
'--enable-pythoninterp=dynamic', --with-x=no \
'--enable-python3interp=dynamic', --disable-gui \
'--enable-rubyinterp=dynamic', --enable-multibyte \
'--disable-selinux' --enable-cscope \
--enable-netbeans \
--enable-perlinterp=dynamic \
--enable-pythoninterp=dynamic \
--enable-python3interp=dynamic \
--enable-rubyinterp=dynamic \
--enable-luainterp=dynamic \
--enable-tclinterp=dynamic \
--disable-canberra \
--disable-selinux \
--disable-nls"
system 'make' system 'make'
end end
...@@ -107,7 +124,7 @@ class Vim_runtime < Package ...@@ -107,7 +124,7 @@ class Vim_runtime < Package
def self.postinstall def self.postinstall
vimrc = "#{CREW_PREFIX}/etc/vimrc" vimrc = "#{CREW_PREFIX}/etc/vimrc"
# keep user changes by writing to a new file # keep user changes by writing to a new file
vimrc += ".new" if File.exists?(vimrc) vimrc += '.new' if File.exist?(vimrc)
# by default we will load the global config # by default we will load the global config
File.write(vimrc, <<~EOF) File.write(vimrc, <<~EOF)
" System-wide defaults are in #{CREW_PREFIX}/share/vim/vimfiles/chromebrew.vim " System-wide defaults are in #{CREW_PREFIX}/share/vim/vimfiles/chromebrew.vim
......
...@@ -3,23 +3,23 @@ require 'package' ...@@ -3,23 +3,23 @@ require 'package'
class Vulkan_headers < Package class Vulkan_headers < Package
description 'Vulkan header files' description 'Vulkan header files'
homepage 'https://github.com/KhronosGroup/Vulkan-Headers' homepage 'https://github.com/KhronosGroup/Vulkan-Headers'
@_ver = '1.2.170' @_ver = '1.2.171'
version @_ver version @_ver
compatibility 'all' compatibility 'all'
source_url "https://github.com/KhronosGroup/Vulkan-Headers/archive/v#{@_ver}.tar.gz" source_url "https://github.com/KhronosGroup/Vulkan-Headers/archive/v#{@_ver}.tar.gz"
source_sha256 '6fa84897197bd72cf4b1a686c903df67fc0fe108e4ed02e6adb3d72c468f1c1f' source_sha256 'b86266544ab1d6780c5ee6cdf10f24ba9ec4c97bc83d2229e0fb8142c36e52ac'
binary_url({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.170-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.171-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.170-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.171-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.170-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.171-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.170-chromeos-x86_64.tar.xz' x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vulkan_headers-1.2.171-chromeos-x86_64.tar.xz'
}) })
binary_sha256({ binary_sha256({
aarch64: 'c91cdf5912c17199838f36df1cfb8f1c225a747f177ef81383c0fbef330974d4', aarch64: 'f0795e78f27c10ab4180743b4f1f46b566007da4fd348b4cdf6e35ee4c3fb72b',
armv7l: 'c91cdf5912c17199838f36df1cfb8f1c225a747f177ef81383c0fbef330974d4', armv7l: 'f0795e78f27c10ab4180743b4f1f46b566007da4fd348b4cdf6e35ee4c3fb72b',
i686: '325276ef0c915d261c9745b587667e7f316379fc697fd7747ecf63733e39584a', i686: '285dbac0bfd1e95262b2d60a0b9ff3dc5c300b794777871552d104a4e7f68549',
x86_64: '7d53e53b6ec7afc74e8b4d5dea6b57a6b2debdd6d4be72a72e48601272c4caa8' x86_64: 'f054e13240784b5c989d0a046a36dcffed794b1d6cbd3ff3998c2d70d32b0234'
}) })
def self.build def self.build
......
...@@ -4,22 +4,22 @@ class Wget < Package ...@@ -4,22 +4,22 @@ class Wget < Package
description 'GNU Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS.' description 'GNU Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS.'
homepage 'https://www.gnu.org/software/wget/' homepage 'https://www.gnu.org/software/wget/'
@_ver = '1.21.1' @_ver = '1.21.1'
version @_ver version "#{@_ver}-1"
compatibility 'all' compatibility 'all'
source_url "https://ftpmirror.gnu.org/wget/wget-#{@_ver}.tar.lz" source_url "https://ftpmirror.gnu.org/wget/wget-#{@_ver}.tar.lz"
source_sha256 'db9bbe5347e6faa06fc78805eeb808b268979455ead9003a608569c9d4fc90ad' source_sha256 'db9bbe5347e6faa06fc78805eeb808b268979455ead9003a608569c9d4fc90ad'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/wget-1.21.1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/wget-1.21.1-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/wget-1.21.1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/wget-1.21.1-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/wget-1.21.1-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/wget-1.21.1-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/wget-1.21.1-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/wget-1.21.1-1-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: 'c365e53c36d6927b761ed7c1293f2506e289d13694fa5de9882087e5444cf185', aarch64: '407cb0b92209fe7c9f967a9b2b68134ba747bbbbd622328a89353bad524739c4',
armv7l: 'c365e53c36d6927b761ed7c1293f2506e289d13694fa5de9882087e5444cf185', armv7l: '407cb0b92209fe7c9f967a9b2b68134ba747bbbbd622328a89353bad524739c4',
i686: '399d68710cf8bb0924cad818f85bb38c2ba3d68d2a3dff494f21e9727a7069fe', i686: '342544c5ac5b6634edc3323c94a94d16a3cd8e5c7d4d695e5481e51d0608dc52',
x86_64: '583bd6f6a1f1aacbd0faafcd5d9ffa6405825ea2c0d41aa7bd2e134a8a67f6c4', x86_64: 'bd779500c54435989731f1f40918a7bd58065f6da5ea562f332412fa88dc833d'
}) })
depends_on 'gnutls' depends_on 'gnutls'
...@@ -27,17 +27,27 @@ class Wget < Package ...@@ -27,17 +27,27 @@ class Wget < Package
depends_on 'libxdmcp' depends_on 'libxdmcp'
depends_on 'libmetalink' depends_on 'libmetalink'
depends_on 'pcre2' depends_on 'pcre2'
depends_on 'ca_certificates'
def self.build def self.build
system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' ./configure #{CREW_OPTIONS} --sysconfdir=#{CREW_PREFIX}/etc" raise StandardError, 'Please remove libiconv before building.' if File.exist?("#{CREW_LIB_PREFIX}/libcharset.so")
system "env CFLAGS='-pipe -flto=auto' \
CXXFLAGS='-pipe -flto=auto' \
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--sysconfdir=#{CREW_PREFIX}/etc\
--with-metalink \
--without-libiconv-prefix"
system 'make' system 'make'
end end
def self.check def self.check
#system 'make', 'check' # system 'make', 'check'
end end
def self.install def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "echo \"ca_directory=#{CREW_PREFIX}/etc/ssl/certs\" >> #{CREW_DEST_PREFIX}/etc/wgetrc"
end end
end end
...@@ -3,29 +3,31 @@ require 'package' ...@@ -3,29 +3,31 @@ require 'package'
class Zlibpkg < Package class Zlibpkg < Package
description 'zlib is a massively spiffy yet delicately unobtrusive compression library.' description 'zlib is a massively spiffy yet delicately unobtrusive compression library.'
homepage 'http://www.zlib.net/' homepage 'http://www.zlib.net/'
version '1.2.11-3' @_ver = '1.2.11'
version "#{@_ver}-4"
compatibility 'all' compatibility 'all'
source_url 'http://www.zlib.net/zlib-1.2.11.tar.gz' source_url "http://www.zlib.net/zlib-#{@_ver}.tar.gz"
source_sha256 'c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1' source_sha256 'c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/zlibpkg-1.2.11-3-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/zlibpkg-1.2.11-4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/zlibpkg-1.2.11-3-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/zlibpkg-1.2.11-4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/zlibpkg-1.2.11-3-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/zlibpkg-1.2.11-4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/zlibpkg-1.2.11-3-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/zlibpkg-1.2.11-4-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '32adce95047eab53e31ee93794255159cc839ef5cdac1da46ed0ff5a15812df4', aarch64: '4b9c8b7ae88784f0c2744f268cc31afa1bb467f2ea964a7cb601509f12fceee7',
armv7l: '32adce95047eab53e31ee93794255159cc839ef5cdac1da46ed0ff5a15812df4', armv7l: '4b9c8b7ae88784f0c2744f268cc31afa1bb467f2ea964a7cb601509f12fceee7',
i686: 'd74959077aadf86030e2acd969923d23fa042d67bf5f1fe1cc91af09816f70e6', i686: 'fdd119fa2214635decf1a926a762cffc6e76a9ee4986d3a601c2afee05b150b8',
x86_64: '8fab32aaf18449efe4140af1cd2af1abaf7543314524508b888d7ef4019d581f', x86_64: '16c5a9c26c5ba526ae48dfaf277bb31c471bde9982747035f3e7594f4da710e8'
}) })
def self.build def self.build
system './configure', system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
"--prefix=#{CREW_PREFIX}", LDFLAGS='-flto=auto' \
"--libdir=#{CREW_LIB_PREFIX}" ./configure \
--prefix=#{CREW_PREFIX} \
--libdir=#{CREW_LIB_PREFIX}"
system 'make' system 'make'
end end
......
...@@ -8,30 +8,48 @@ class Zoneinfo < Package ...@@ -8,30 +8,48 @@ class Zoneinfo < Package
source_url 'https://data.iana.org/time-zones/releases/tzdb-2021a.tar.lz' source_url 'https://data.iana.org/time-zones/releases/tzdb-2021a.tar.lz'
source_sha256 '21bf125de7b0c486cb57f1ba61b39584c949b2e6cac0a03a6425435d9bff37d0' source_sha256 '21bf125de7b0c486cb57f1ba61b39584c949b2e6cac0a03a6425435d9bff37d0'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/zoneinfo-2021a-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/zoneinfo-2021a-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/zoneinfo-2021a-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/zoneinfo-2021a-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '90df3fefec5c3a6c74dc8f5ebc9c71eedafe4d8640c4925bbe06add4a860c4b4',
armv7l: '90df3fefec5c3a6c74dc8f5ebc9c71eedafe4d8640c4925bbe06add4a860c4b4',
i686: '90525ed6a5f9ffd5428c626c24e1cf57442568720388a646846ceb86a1c725d2',
x86_64: '09996f9d306829c341d5959bb2a8c59064c2e89c547b160edc6b0244f54bf0d7'
})
def self.patch def self.patch
system "sed -i 's:TZDEFAULT = $(TOPDIR)/etc/localtime:TZDEFAULT = #{CREW_PREFIX}/etc/localtime:g' Makefile" system "sed -i 's:TZDEFAULT = $(TOPDIR)/etc/localtime:TZDEFAULT = #{CREW_PREFIX}/etc/localtime:g' Makefile"
system "sed -i 's:USRDIR = usr:USRDIR = usr/local:g' Makefile" system "sed -i 's:USRDIR = usr:USRDIR = usr/local:g' Makefile"
end end
def self.build def self.build
system "make" system "env CFLAGS='-pipe -flto=auto' CXXFLAGS='-pipe -flto=auto' \
LDFLAGS='-flto=auto' \
make ALL"
# This fixed failure of make check on i686 & armv7l.
system 'make force_tzs'
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'INSTALL'
end end
def self.check def self.check
system "make", "check" system 'make', 'check'
end end
def self.postinstall def self.postinstall
system "tzselect" # Do not run tzselect if shell is non-interactive.
system('tty -s || tzselect ;;')
puts puts
puts "Add `TZ='<timezone>'` to your ~/.bashrc file".lightblue puts "Add `TZ='<timezone>'` to your ~/.bashrc file".lightblue
puts "Where <timezone> is the timezone displayed above".lightblue puts 'Where <timezone> is the timezone displayed above'.lightblue
puts "e.g. `TZ=America/New_York` or `TZ=Etc/UTC`".lightblue puts 'e.g. `TZ=America/New_York` or `TZ=Etc/UTC`'.lightblue
puts "This won't affect the timezone of non-chromebrew ChromeOS apps." puts "This won't affect the timezone of non-chromebrew ChromeOS apps.".lightblue
puts puts
end end
end end
...@@ -3,35 +3,56 @@ require 'package' ...@@ -3,35 +3,56 @@ require 'package'
class Zstd < Package class Zstd < Package
description 'Zstandard - Fast real-time compression algorithm' description 'Zstandard - Fast real-time compression algorithm'
homepage 'http://www.zstd.net' homepage 'http://www.zstd.net'
version '1.4.7' @_ver = '1.4.9'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://github.com/facebook/zstd/archive/v1.4.7.tar.gz' source_url "https://github.com/facebook/zstd/archive/v#{@_ver}.tar.gz"
source_sha256 '085500c8d0b9c83afbc1dc0d8b4889336ad019eba930c5d6a9c6c86c20c769c8' source_sha256 'acf714d98e3db7b876e5b540cbf6dee298f60eb3c0723104f6d3f065cd60d6a8'
binary_url ({ binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/zstd-1.4.7-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/zstd-1.4.9-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/zstd-1.4.7-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/zstd-1.4.9-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/zstd-1.4.7-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/zstd-1.4.9-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/zstd-1.4.7-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/zstd-1.4.9-chromeos-x86_64.tar.xz'
}) })
binary_sha256 ({ binary_sha256({
aarch64: '4a917969893ff2d985aa498d989219b2c569dd01ff1b198d3e6bd2a770b7d34c', aarch64: 'c94ef7aecad9675d4fdcfc444cfd74c1560f6f8090c851bffe2be2a5250fc4f9',
armv7l: '4a917969893ff2d985aa498d989219b2c569dd01ff1b198d3e6bd2a770b7d34c', armv7l: 'c94ef7aecad9675d4fdcfc444cfd74c1560f6f8090c851bffe2be2a5250fc4f9',
i686: '192b17e599990e94d2d8343095c90be85e0013fe92c8933c6795c51f8ba39d89', i686: 'd59795e6cc367cfb9120e4a7b60df706cfd1746c5b41485767cf2ff75eddb2cb',
x86_64: '017e2d9e5fa613bb50385f6b49bb9642f7b3e6f10453e46b89ea3e4701a39ae7', x86_64: '055c10b86abdb5268f90c28f73ccb7cc1db155ef7d7e14fba97a977ed3886832'
}) })
depends_on 'lz4' => ':build' def self.patch
# Patch from https://github.com/facebook/zstd/issues/2519#issuecomment-790092538
@meson_patch = <<~'MESON_PATCH_EOF'
--- a/build/meson/lib/meson.build~ 2021-03-02 22:20:57.000000000 +0000
+++ b/build/meson/lib/meson.build 2021-03-03 21:56:00.058700361 +0000
@@ -22,6 +22,7 @@
join_paths(zstd_rootdir, 'lib/common/threading.c'),
join_paths(zstd_rootdir, 'lib/common/pool.c'),
join_paths(zstd_rootdir, 'lib/common/zstd_common.c'),
+ join_paths(zstd_rootdir, 'lib/common/zstd_trace.c'),
join_paths(zstd_rootdir, 'lib/common/error_private.c'),
join_paths(zstd_rootdir, 'lib/common/xxhash.c'),
join_paths(zstd_rootdir, 'lib/compress/hist.c'),
MESON_PATCH_EOF
IO.write('meson.patch', @meson_patch)
system 'patch -p1 -i meson.patch'
end
def self.build def self.build
system 'make' Dir.chdir 'build/meson' do
system "meson \
#{CREW_MESON_LTO_OPTIONS} \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
end end
def self.install def self.install
system 'make', Dir.chdir 'build/meson' do
"DESTDIR=#{CREW_DEST_DIR}", system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
"PREFIX=#{CREW_PREFIX}", end
"LIBDIR=#{CREW_LIB_PREFIX}",
'install'
end end
end end
...@@ -24,7 +24,6 @@ git ...@@ -24,7 +24,6 @@ git
glibc glibc
gmp gmp
gnutls gnutls
groff
icu4c icu4c
intltool intltool
isl isl
...@@ -39,7 +38,7 @@ libmetalink ...@@ -39,7 +38,7 @@ libmetalink
libnghttp2 libnghttp2
libpipeline libpipeline
libpsl libpsl
libressl libseccomp
libsigsegv libsigsegv
libssh2 libssh2
libtasn1 libtasn1
...@@ -49,7 +48,6 @@ libunbound ...@@ -49,7 +48,6 @@ libunbound
libunistring libunistring
libxdmcp libxdmcp
libxml2 libxml2
libyaml
linuxheaders linuxheaders
llvm llvm
lz4 lz4
...@@ -70,12 +68,8 @@ openldap ...@@ -70,12 +68,8 @@ openldap
openssl openssl
p11kit p11kit
patch patch
pcre
pcre2 pcre2
perl perl
perl_locale_messages
perl_text_unidecode
perl_unicode_eastasianwidth
perl_xml_parser perl_xml_parser
pkgconfig pkgconfig
python27 python27
...@@ -84,13 +78,9 @@ readline ...@@ -84,13 +78,9 @@ readline
rtmpdump rtmpdump
ruby ruby
sed sed
setuptools
slang slang
sqlite sqlite
swig
texinfo
trousers trousers
uchardet
unzip unzip
util_macros util_macros
wget wget
......
...@@ -444,6 +444,11 @@ url: https://deb.debian.org/debian/pool/main/b/beav/ ...@@ -444,6 +444,11 @@ url: https://deb.debian.org/debian/pool/main/b/beav/
activity: none activity: none
--- ---
kind: url kind: url
name: benchmark
url: https://github.com/google/benchmark/releases
activity: low
---
kind: url
name: berry name: berry
url: https://github.com/JLErvin/berry/releases url: https://github.com/JLErvin/berry/releases
activity: low activity: low
...@@ -684,6 +689,11 @@ url: https://github.com/reynhout/chrx ...@@ -684,6 +689,11 @@ url: https://github.com/reynhout/chrx
activity: low activity: low
--- ---
kind: url kind: url
name: civetweb
url: https://github.com/civetweb/civetweb/releases
activity: low
---
kind: url
name: ck4up name: ck4up
url: http://jue.li/crux/ck4up/ url: http://jue.li/crux/ck4up/
activity: none activity: none
...@@ -794,6 +804,11 @@ url: https://github.com/ojab/BLFS/releases ...@@ -794,6 +804,11 @@ url: https://github.com/ojab/BLFS/releases
activity: low activity: low
--- ---
kind: url kind: url
name: consolekit
url: https://github.com/ConsoleKit2/ConsoleKit2/releases
activity: low
---
kind: url
name: coreutils name: coreutils
url: https://ftp.gnu.org/gnu/coreutils url: https://ftp.gnu.org/gnu/coreutils
activity: low activity: low
...@@ -1209,6 +1224,11 @@ url: http://kernel.ubuntu.com/~cking/tarballs/eventstat ...@@ -1209,6 +1224,11 @@ url: http://kernel.ubuntu.com/~cking/tarballs/eventstat
activity: medium activity: medium
--- ---
kind: url kind: url
name: evolution_data_server
url: https://github.com/GNOME/evolution-data-server/releases
activity: medium
---
kind: url
name: exa name: exa
url: https://github.com/ogham/exa/releases url: https://github.com/ogham/exa/releases
activity: low activity: low
...@@ -1354,6 +1374,11 @@ url: https://ftp.osuosl.org/pub/xiph/releases/flac/ ...@@ -1354,6 +1374,11 @@ url: https://ftp.osuosl.org/pub/xiph/releases/flac/
activity: none activity: none
--- ---
kind: url kind: url
name: flatpak
url: https://github.com/flatpak/flatpak/releases/
activity: medium
---
kind: url
name: flex name: flex
url: https://github.com/westes/flex/releases url: https://github.com/westes/flex/releases
activity: low activity: low
...@@ -1924,11 +1949,21 @@ url: https://gn.googlesource.com/gn/ ...@@ -1924,11 +1949,21 @@ url: https://gn.googlesource.com/gn/
activity: high activity: high
--- ---
kind: url kind: url
name: gnome_autoar
url: https://gitlab.gnome.org/GNOME/gnome-autoar/-/tags
activity: low
---
kind: url
name: gnome_common name: gnome_common
url: https://github.com/GNOME/gnome-common/releases/ url: https://github.com/GNOME/gnome-common/releases/
activity: low activity: low
--- ---
kind: url kind: url
name: gnome_desktop
url: https://github.com/GNOME/gnome-desktop/releases
activity: high
---
kind: url
name: gnome_doc_utils name: gnome_doc_utils
url: https://ftp.gnome.org/pub/gnome/sources/gnome-doc-utils/ url: https://ftp.gnome.org/pub/gnome/sources/gnome-doc-utils/
activity: medium activity: medium
...@@ -1949,6 +1984,21 @@ url: https://ftp.gnome.org/pub/GNOME/sources/gnome-keyring/ ...@@ -1949,6 +1984,21 @@ url: https://ftp.gnome.org/pub/GNOME/sources/gnome-keyring/
activity: low activity: low
--- ---
kind: url kind: url
name: gnome_session
url: https://gitlab.gnome.org/GNOME/gnome-session/-/tags
activity: low
---
kind: url
name: gnome_settings_daemon
url: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/tags
activity: medium
---
kind: url
name: gnome_shell
url: https://github.com/GNOME/gnome-shell/releases
activity: high
---
kind: url
name: gnome_terminal name: gnome_terminal
url: https://github.com/GNOME/gnome-terminal/releases url: https://github.com/GNOME/gnome-terminal/releases
activity: medium activity: medium
...@@ -1959,6 +2009,16 @@ url: https://github.com/GNOME/gnome-themes-extra/releases/ ...@@ -1959,6 +2009,16 @@ url: https://github.com/GNOME/gnome-themes-extra/releases/
activity: medium activity: medium
--- ---
kind: url kind: url
name: gnome_tweaks
url: https://gitlab.gnome.org/GNOME/gnome-tweaks/-/tags
activity: low
---
kind: url
name: gnome_weather
url: https://github.com/GNOME/gnome-weather/releases
activity: low
---
kind: url
name: gnuchess name: gnuchess
url: https://ftpmirror.gnu.org/chess/ url: https://ftpmirror.gnu.org/chess/
activity: low activity: low
...@@ -2039,6 +2099,11 @@ url: https://github.com/gphoto/gphoto2/releases ...@@ -2039,6 +2099,11 @@ url: https://github.com/gphoto/gphoto2/releases
activity: low activity: low
--- ---
kind: url kind: url
name: gpm
url: https://github.com/telmich/gpm/releases
activity: none
---
kind: url
name: gptfdisk name: gptfdisk
url: https://sourceforge.net/projects/gptfdisk/files/gptfdisk/ url: https://sourceforge.net/projects/gptfdisk/files/gptfdisk/
activity: low activity: low
...@@ -2175,13 +2240,23 @@ activity: none ...@@ -2175,13 +2240,23 @@ activity: none
--- ---
kind: url kind: url
name: gtkmm2 name: gtkmm2
url: https://ftp.gnome.org/pub/gnome/sources/gtkmm/ url: https://download.gnome.org/sources/gtkmm/
activity: medium activity: none
--- ---
kind: url kind: url
name: gtkmm3 name: gtkmm3
url: https://ftp.gnome.org/pub/gnome/sources/gtkmm/ url: https://download.gnome.org/sources/gtkmm/
activity: medium activity: none
---
kind: url
name: gtkmm4
url: https://download.gnome.org/sources/gtkmm/
activity: low
---
kind: url
name: gtksharp2
url: https://download.mono-project.com/sources/gtk-sharp212/
activity: none
--- ---
kind: url kind: url
name: gtksourceview name: gtksourceview
...@@ -2409,6 +2484,11 @@ url: https://sourceforge.net/projects/ibmonitor/files/ibmonitor/ ...@@ -2409,6 +2484,11 @@ url: https://sourceforge.net/projects/ibmonitor/files/ibmonitor/
activity: none activity: none
--- ---
kind: url kind: url
name: ibus
url: https://github.com/ibus/ibus/releases/
activity: low
---
kind: url
name: icon_naming_utils name: icon_naming_utils
url: http://tango-project.org/releases/ url: http://tango-project.org/releases/
activity: none activity: none
...@@ -2504,6 +2584,21 @@ url: ftp://iptraf.seul.org/pub/iptraf/ ...@@ -2504,6 +2584,21 @@ url: ftp://iptraf.seul.org/pub/iptraf/
activity: none activity: none
--- ---
kind: url kind: url
name: irrlicht
url: https://sourceforge.net/projects/irrlicht/files/Irrlicht%20SDK/
activity: none
---
kind: url
name: irrlicht_examples
url: https://sourceforge.net/projects/irrlicht/files/Irrlicht%20SDK/
activity: none
---
kind: url
name: irrlicht_tools
url: https://sourceforge.net/projects/irrlicht/files/Irrlicht%20SDK/
activity: none
---
kind: url
name: irssi name: irssi
url: https://github.com/irssi/irssi/releases url: https://github.com/irssi/irssi/releases
activity: low activity: low
...@@ -2899,6 +2994,11 @@ url: https://github.com/strukturag/libde265/releases/ ...@@ -2899,6 +2994,11 @@ url: https://github.com/strukturag/libde265/releases/
activity: medium activity: medium
--- ---
kind: url kind: url
name: libdeflate
url: https://github.com/ebiggers/libdeflate/releases
activity: low
---
kind: url
name: libdmx name: libdmx
url: https://www.x.org/archive/individual/lib/ url: https://www.x.org/archive/individual/lib/
activity: medium activity: medium
...@@ -2939,6 +3039,11 @@ url: https://get.videolan.org/libdvdread/ ...@@ -2939,6 +3039,11 @@ url: https://get.videolan.org/libdvdread/
activity: medium activity: medium
--- ---
kind: url kind: url
name: libeconf
url: https://github.com/openSUSE/libeconf/releases
activity: low
---
kind: url
name: libedit name: libedit
url: http://thrysoee.dk/editline url: http://thrysoee.dk/editline
activity: medium activity: medium
...@@ -3069,6 +3174,11 @@ url: https://mesa.freedesktop.org/archive/glu/ ...@@ -3069,6 +3174,11 @@ url: https://mesa.freedesktop.org/archive/glu/
activity: none activity: none
--- ---
kind: url kind: url
name: libglvnd
url: https://gitlab.freedesktop.org/glvnd/libglvnd/-/tags
activity: low
---
kind: url
name: libgnome_keyring name: libgnome_keyring
url: https://ftp.gnome.org/pub/GNOME/sources/libgnome-keyring/ url: https://ftp.gnome.org/pub/GNOME/sources/libgnome-keyring/
activity: none activity: none
...@@ -3099,11 +3209,21 @@ url: https://download.gnome.org/sources/libgudev/ ...@@ -3099,11 +3209,21 @@ url: https://download.gnome.org/sources/libgudev/
activity: low activity: low
--- ---
kind: url kind: url
name: libgweather
url: https://github.com/GNOME/libgweather/releases
activity: low
---
kind: url
name: libhandy name: libhandy
url: https://gitlab.gnome.org/GNOME/libhandy/-/tags url: https://gitlab.gnome.org/GNOME/libhandy/-/tags
activity: high activity: high
--- ---
kind: url kind: url
name: libhandy1
url: https://gitlab.gnome.org/GNOME/libhandy/-/tags
activity: high
---
kind: url
name: libharu name: libharu
url: https://github.com/libharu/libharu/releases url: https://github.com/libharu/libharu/releases
activity: none activity: none
...@@ -3224,16 +3344,31 @@ url: https://sourceforge.net/projects/lame/files/lame/ ...@@ -3224,16 +3344,31 @@ url: https://sourceforge.net/projects/lame/files/lame/
activity: low activity: low
--- ---
kind: url kind: url
name: libmpeg2
url: https://libmpeg2.sourceforge.io/
activity: none
---
kind: url
name: libmypaint name: libmypaint
url: https://github.com/mypaint/libmypaint/releases url: https://github.com/mypaint/libmypaint/releases
activity: low activity: low
--- ---
kind: url kind: url
name: libndp
url: https://github.com/jpirko/libndp/releases
activity: none
---
kind: url
name: libnet name: libnet
url: https://github.com/libnet/libnet/releases/ url: https://github.com/libnet/libnet/releases/
activity: low activity: low
--- ---
kind: url kind: url
name: libnewt
url: https://releases.pagure.org/newt/
activity: none
---
kind: url
name: libnftnl name: libnftnl
url: https://netfilter.org/projects/libnftnl/files/ url: https://netfilter.org/projects/libnftnl/files/
activity: medium activity: medium
...@@ -3489,6 +3624,11 @@ url: https://sourceforge.net/projects/soxr/files ...@@ -3489,6 +3624,11 @@ url: https://sourceforge.net/projects/soxr/files
activity: low activity: low
--- ---
kind: url kind: url
name: libspatialindex
url: https://github.com/libspatialindex/libspatialindex/releases
activity: none
---
kind: url
name: libspectre name: libspectre
url: https://libspectre.freedesktop.org/releases/ url: https://libspectre.freedesktop.org/releases/
activity: low activity: low
...@@ -3719,6 +3859,11 @@ url: https://www.x.org/archive/individual/lib/ ...@@ -3719,6 +3859,11 @@ url: https://www.x.org/archive/individual/lib/
activity: none activity: none
--- ---
kind: url kind: url
name: libxcrypt
url: https://github.com/besser82/libxcrypt/releases
activity: low
---
kind: url
name: libxcursor name: libxcursor
url: https://www.x.org/archive/individual/lib/ url: https://www.x.org/archive/individual/lib/
activity: none activity: none
...@@ -4039,6 +4184,11 @@ url: https://ftp.gnu.org/gnu/make ...@@ -4039,6 +4184,11 @@ url: https://ftp.gnu.org/gnu/make
activity: none activity: none
--- ---
kind: url kind: url
name: makedepend
url: https://www.x.org/releases/individual/util/
activity: none
---
kind: url
name: mandb name: mandb
url: http://download.savannah.gnu.org/releases/man-db url: http://download.savannah.gnu.org/releases/man-db
activity: medium activity: medium
...@@ -4154,6 +4304,11 @@ url: https://github.com/zyedidia/micro/releases ...@@ -4154,6 +4304,11 @@ url: https://github.com/zyedidia/micro/releases
activity: high activity: high
--- ---
kind: url kind: url
name: minecraft
url: https://launcher.mojang.com/
activity: none
---
kind: url
name: minerd name: minerd
url: https://github.com/pooler/cpuminer/releases/ url: https://github.com/pooler/cpuminer/releases/
activity: none activity: none
...@@ -4204,6 +4359,11 @@ url: https://github.com/GNOME/mm-common/releases ...@@ -4204,6 +4359,11 @@ url: https://github.com/GNOME/mm-common/releases
activity: low activity: low
--- ---
kind: url kind: url
name: mobile_broadband_provider_info
url: https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info/-/tags
activity: low
---
kind: url
name: moc name: moc
url: http://ftp.daper.net/pub/soft/moc/stable/ url: http://ftp.daper.net/pub/soft/moc/stable/
activity: none activity: none
...@@ -4324,6 +4484,11 @@ url: http://ftp.mutt.org/pub/mutt ...@@ -4324,6 +4484,11 @@ url: http://ftp.mutt.org/pub/mutt
activity: medium activity: medium
--- ---
kind: url kind: url
name: mutter
url: https://download.gnome.org/core/
activity: high
---
kind: url
name: mypaint name: mypaint
url: https://github.com/mypaint/mypaint/releases/ url: https://github.com/mypaint/mypaint/releases/
activity: none activity: none
...@@ -4474,6 +4639,11 @@ url: https://ftp.gnu.org/gnu/nettle ...@@ -4474,6 +4639,11 @@ url: https://ftp.gnu.org/gnu/nettle
activity: low activity: low
--- ---
kind: url kind: url
name: networkmanager
url: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/tags
activity: high
---
kind: url
name: newlisp name: newlisp
url: https://github.com/kosh04/newlisp/releases url: https://github.com/kosh04/newlisp/releases
activity: low activity: low
...@@ -4759,6 +4929,11 @@ url: http://kernel.ubuntu.com/~cking/tarballs/pagemon ...@@ -4759,6 +4929,11 @@ url: http://kernel.ubuntu.com/~cking/tarballs/pagemon
activity: medium activity: medium
--- ---
kind: url kind: url
name: pakitheme
url: https://github.com/saltedcoffii/pakitheme/releases
activity: low
---
kind: url
name: pandoc name: pandoc
url: https://github.com/jgm/pandoc/releases/ url: https://github.com/jgm/pandoc/releases/
activity: medium activity: medium
...@@ -5174,6 +5349,11 @@ url: https://sourceforge.net/projects/projectlibre/files/ProjectLibre/ ...@@ -5174,6 +5349,11 @@ url: https://sourceforge.net/projects/projectlibre/files/ProjectLibre/
activity: low activity: low
--- ---
kind: url kind: url
name: prometheus_cpp
url: https://github.com/jupp0r/prometheus-cpp/releases
activity: medium
---
kind: url
name: protobuf name: protobuf
url: https://github.com/google/protobuf/releases url: https://github.com/google/protobuf/releases
activity: medium activity: medium
...@@ -5929,6 +6109,11 @@ url: https://github.com/symfony/cli/releases/ ...@@ -5929,6 +6109,11 @@ url: https://github.com/symfony/cli/releases/
activity: high activity: high
--- ---
kind: url kind: url
name: symlinks
url: https://salsa.debian.org/debian/symlinks/-/tags
activity: none
---
kind: url
name: syncthing name: syncthing
url: https://github.com/syncthing/syncthing/releases url: https://github.com/syncthing/syncthing/releases
activity: high activity: high
...@@ -6109,6 +6294,11 @@ url: https://github.com/tmux/tmux/releases ...@@ -6109,6 +6294,11 @@ url: https://github.com/tmux/tmux/releases
activity: low activity: low
--- ---
kind: url kind: url
name: torbrowser
url: https://dist.torproject.org/torbrowser/
activity: high
---
kind: url
name: tox name: tox
url: https://github.com/tox-dev/tox/releases url: https://github.com/tox-dev/tox/releases
activity: high activity: high
...@@ -6184,6 +6374,21 @@ url: https://github.com/martinpitt/umockdev/releases ...@@ -6184,6 +6374,21 @@ url: https://github.com/martinpitt/umockdev/releases
activity: medium activity: medium
--- ---
kind: url kind: url
name: unicode_character_database
url: https://www.unicode.org/Public/zipped/
activity: low
---
kind: url
name: unicode_cldr
url: https://www.unicode.org/Public/cldr/
activity: low
---
kind: url
name: unicode_emoji
url: https://www.unicode.org/Public/emoji/
activity: low
---
kind: url
name: units name: units
url: https://ftp.gnu.org/gnu/units url: https://ftp.gnu.org/gnu/units
activity: medium activity: medium
...@@ -6214,6 +6419,11 @@ url: https://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/ ...@@ -6214,6 +6419,11 @@ url: https://sourceforge.net/projects/infozip/files/UnZip%206.x%20%28latest%29/
activity: none activity: none
--- ---
kind: url kind: url
name: upower
url: https://gitlab.freedesktop.org/upower/upower/-/tags
activity: none
---
kind: url
name: urlwatch name: urlwatch
url: https://github.com/thp/urlwatch/releases url: https://github.com/thp/urlwatch/releases
activity: high activity: high
...@@ -6464,6 +6674,11 @@ url: https://sourceforge.net/projects/wake-on-lan/files/wol/ ...@@ -6464,6 +6674,11 @@ url: https://sourceforge.net/projects/wake-on-lan/files/wol/
activity: none activity: none
--- ---
kind: url kind: url
name: words
url: https://github.com/saltedcoffii/words/releases
activity: low
---
kind: url
name: wp_cli name: wp_cli
url: https://github.com/wp-cli/wp-cli/releases url: https://github.com/wp-cli/wp-cli/releases
activity: low activity: low
...@@ -6779,6 +6994,11 @@ url: http://www.tortall.net/projects/yasm/releases ...@@ -6779,6 +6994,11 @@ url: http://www.tortall.net/projects/yasm/releases
activity: none activity: none
--- ---
kind: url kind: url
name: yelp
url: https://github.com/GNOME/yelp/releases
activity: medium
---
kind: url
name: yelp_tools name: yelp_tools
url: https://github.com/GNOME/yelp-tools/releases url: https://github.com/GNOME/yelp-tools/releases
activity: low activity: low
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment