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

48 lines
1.7 KiB
Ruby

require 'package'
class Brackets < Package
description 'A modern, open source text editor that understands web design.'
homepage 'https://brackets.io/'
version '1.14.1'
license 'MPL-2.0'
compatibility 'x86_64'
source_url 'https://github.com/adobe/brackets/archive/release-1.14.1.tar.gz'
source_sha256 '9a07fc80a155d2490be4eff77a2622539012325cef18e89305b8bc45c4c3833d'
binary_compression 'tar.xz'
binary_sha256({
x86_64: 'ddcef49b895b1d132ceef90406044ce7699cc21dfa1d048e059bafa2945399bc'
})
depends_on 'alien' => :build
depends_on 'gtk2'
depends_on 'libgconf'
depends_on 'xdg_base'
depends_on 'sommelier' => :logical
def self.build
case ARCH
when 'x86_64'
arch = '64-bit'
sha256 = 'dd8346ee7061e8820ecb7859f5cdccb6f199b144dd17192c217dd49512c4452b'
when 'i686'
arch = '32-bit'
sha256 = '6ef1567b75a197236b3d35785afa744752a28b74cfa51b93b7b78d0a50acbfd4'
end
package = "Brackets.Release.#{version}.#{arch}.deb"
system "curl -#LO https://github.com/adobe/brackets/releases/download/release-#{version}/#{package}"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest(File.read(package)) == sha256
system "alien -tc #{package}"
system "tar xvf brackets-#{version}.tgz"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_HOME}/.config/Brackets"
FileUtils.mv 'usr/share', CREW_DEST_PREFIX
FileUtils.mv 'opt/brackets', "#{CREW_DEST_PREFIX}/share"
FileUtils.ln_s "#{CREW_PREFIX}/share/brackets/Brackets", "#{CREW_DEST_PREFIX}/bin/brackets"
system "touch #{CREW_DEST_HOME}/.config/Brackets/window.ini"
end
end