Commit f12474c9 authored by vincowl's avatar vincowl Committed by GitHub

[firefox] Update to 82.0 (#4473)

* [firefox] Update to 82.0

* modify firefox.rb to get sound, also add apulse for same reason

* Setting user prefs seem to be useless

* Change deps order
parent b1d433b7
......@@ -3,38 +3,43 @@ require 'package'
class Apulse < Package
description 'PulseAudio emulation for ALSA'
homepage 'https://github.com/i-rinat/apulse'
version '0.1.12'
version '0.1.13'
compatibility 'all'
source_url 'https://github.com/i-rinat/apulse/archive/v0.1.12.tar.gz'
source_sha256 'cfcadfe971abd785ed3ca24e576fcbaade185525c1eda76daf32dbf298e52892'
source_url 'https://github.com/i-rinat/apulse/archive/v0.1.13.tar.gz'
source_sha256 '9234ec4e10e408b9c01d5f4ea768ad1fc15494217c932db2c435202a9c7b5efd'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/apulse-0.1.12-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/apulse-0.1.12-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/apulse-0.1.12-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/apulse-0.1.12-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '52eb3f770304cae5b214b6eec6f7d83bc5a268e0d4794672784cc50c5ea72e85',
armv7l: '52eb3f770304cae5b214b6eec6f7d83bc5a268e0d4794672784cc50c5ea72e85',
i686: '16c70c55c189ca558b024ee6d1b95a9e2ae2c9737acc56c58fa94237372546d0',
x86_64: 'ebef3d93e0b8b10b595c830b84c2dfdc8a8bf26e117f83d1ebba8e967e5e0c30',
})
depends_on 'alsa_lib'
depends_on 'alsa_plugins'
depends_on 'glib'
def self.build
Dir.mkdir 'build'
Dir.chdir 'build' do
FileUtils.mkdir_p 'build'
FileUtils.cd('build') do
system "cmake -DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_BUILD_TYPE=Release .."
system 'make'
system "echo 'pcm.plugdmix {' > asoundrc"
system "echo ' type plug' >> asoundrc"
system "echo ' slave.pcm \"dmix\"' >> asoundrc"
system "echo '}' >> asoundrc"
end
end
def self.install
Dir.chdir 'build' do
FileUtils.cd('build') do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system "install -Dm755 asoundrc ~/.asoundrc"
end
end
def self.postinstall
puts "To use apulse, please run the following lines :".lightblue
puts "echo 'export APULSE_PLAYBACK_DEVICE=plugdmix' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
end
end
......@@ -3,27 +3,30 @@ require 'package'
class Firefox < Package
description 'Mozilla Firefox (or simply Firefox) is a free and open-source web browser'
homepage 'https://www.mozilla.org/en-US/firefox/'
version '81.0.1'
version '82.0'
compatibility 'i686,x86_64'
case ARCH
when 'i686'
source_url 'https://archive.mozilla.org/pub/firefox/releases/81.0.1/linux-i686/en-US/firefox-81.0.1.tar.bz2'
source_sha256 'bcb562cb3a367c32710c2c19abaf63ad68846b9892795bf89592b879def917af'
source_url 'https://archive.mozilla.org/pub/firefox/releases/82.0/linux-i686/en-US/firefox-82.0.tar.bz2'
source_sha256 '2039a8e94fcda9bcad97d62059579d64744da522c7d65beac0edcbd2e128a06f'
when 'x86_64'
source_url 'https://archive.mozilla.org/pub/firefox/releases/81.0.1/linux-x86_64/en-US/firefox-81.0.1.tar.bz2'
source_sha256 '7882ce6ece0b1aeb497d68e8aeff2c58eb5a926fb5003472db493c863e3129f9'
source_url 'https://archive.mozilla.org/pub/firefox/releases/82.0/linux-x86_64/en-US/firefox-82.0.tar.bz2'
source_sha256 '4305f43e72aa46ae42882eaa4e436b22c5142a4c9b2dc9f9ccc3292e18a5e39a'
end
case ARCH
when 'i686', 'x86_64'
depends_on 'gtk3'
depends_on 'apulse'
depends_on 'sommelier'
end
# To get sound working, used : https://codelab.wordpress.com/2017/12/11/firefox-drops-alsa-apulse-to-the-rescue/
def self.build
system "echo '#!/bin/bash' > firefox.sh"
system "echo 'cd #{CREW_PREFIX}/firefox' >> firefox.sh"
system "echo './firefox \"\$@\"' >> firefox.sh"
system "echo 'apulse ./firefox \"\$@\"' >> firefox.sh"
end
def self.install
......
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