Files
chromebrew/packages/ferdi.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

57 lines
1.6 KiB
Ruby

require 'package'
class Ferdi < Package
description 'All your apps in one place'
homepage 'https://getferdi.com/'
version '5.8.0'
license 'Apache-2.0'
compatibility 'x86_64'
source_url 'https://github.com/getferdi/ferdi/releases/download/v5.8.0/Ferdi-5.8.0.AppImage'
source_sha256 '74e6f1f4bd7d429ac51460e4f48713d72ad9a3fbcbc8b2ecfa318dbc1a9a6efb'
depends_on 'gtk3'
depends_on 'xdg_base'
depends_on 'sommelier' => :logical
def self.patch
system "sed -i 's,AppRun,ferdi,' ferdi.desktop"
end
def self.build
ferdi = <<~EOF
#!/bin/bash
cd #{CREW_PREFIX}/share/ferdi
GDK_BACKEND=x11 ./AppRun "$@"
EOF
File.write('ferdi.sh', ferdi)
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.cp_r 'usr/share', CREW_DEST_PREFIX
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/ferdi"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/applications"
FileUtils.mv 'ferdi.desktop', "#{CREW_DEST_PREFIX}/share/applications"
FileUtils.install 'ferdi.sh', "#{CREW_DEST_PREFIX}/bin/ferdi", mode: 0o755
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/ferdi"
end
def self.postinstall
puts "\nType 'ferdi' to get started.\n".lightblue
end
def self.postremove
config_dir = "#{HOME}/.config/autostart"
if Dir.exist? config_dir
print "Would you like to remove the config directory #{config_dir}? [y/N] "
case $stdin.gets.chomp.downcase
when 'y', 'yes'
FileUtils.rm_rf config_dir
puts "#{config_dir} removed.".lightred
else
puts "#{config_dir} saved.".lightgreen
end
end
end
end