Files
chromebrew/packages/obs.rb
Satadru Pramanik, DO, MPH, MEng b00dfcc06f Update Firefox and fix more circular deps. (#14353)
* Add unbuilt firefox to updater-firefox-147.0.2

* Adjust firefox deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust firefox deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Change all sommelier deps to => :logical deps

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix circular dependencies of docbook_xml and docbook_xml412.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Cleanup docbook circular deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix elogind, ffmpeg circular deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Cleanup more circular deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Mark packages from successful builds as automatically buildable.

* updater-firefox-147.0.2: Package File Update Run on linux/386 container.

* Add filelists and updated packages.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Fix gstreamer deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Handle missing dlist, update pipewire filelist

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* lint

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add rsu_client filelist

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Suggested changes.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust elogind deps.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust docbook heredocs.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2026-01-29 03:07:42 +00:00

66 lines
1.6 KiB
Ruby

require 'package'
class Obs < Package
description 'Free and open source software for video recording and live streaming.'
homepage 'https://obsproject.com/'
version '24.0.5'
license 'GPL-2'
compatibility 'x86_64'
source_url 'https://github.com/obsproject/obs-studio/archive/24.0.5.tar.gz'
source_sha256 'b3d65f36ad2bfcd6ffde1771be64662ce8e8771349fab82bb49f80dbb1f5f2e6'
binary_compression 'tar.xz'
binary_sha256({
x86_64: '854492244415cea4b4874cf3cd2302649d5b538d89366f2fd1ccceda7ff1f3ea'
})
depends_on 'curl'
depends_on 'ffmpeg'
depends_on 'jack'
depends_on 'jansson'
depends_on 'libmbedtls'
depends_on 'luajit'
depends_on 'qt5_svg'
depends_on 'qt5_x11extras'
depends_on 'v4l_utils'
depends_on 'xdg_base'
depends_on 'sommelier' => :logical
def self.build
# Use the gold linker.
old_ld = `ld_default g`.chomp
Dir.mkdir 'build'
Dir.chdir 'build' do
system 'cmake',
'-DCMAKE_BUILD_TYPE=Release',
"-DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX}",
'..'
system 'make'
end
# Restore the original linker.
system 'ld_default', old_ld.to_s
end
def self.install
Dir.chdir 'build' do
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
case ARCH
when 'x86_64'
Dir.chdir CREW_DEST_PREFIX do
FileUtils.mv Dir.glob('lib/*'), 'lib64/'
end
end
end
def self.postinstall
puts
puts "To get started, type 'obs'.".lightblue
puts
puts 'To completely remove, execute the following:'.lightblue
puts 'crew remove obs'.lightblue
puts 'rm -rf ~/.config/obs-studio/'.lightblue
puts
end
end