mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* 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>
40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Advanced_rest_client < Package
|
|
description 'Advanced REST Client - Desktop application'
|
|
homepage 'https://github.com/advanced-rest-client/arc-electron'
|
|
version '17.0.9'
|
|
license 'Apache-2.0'
|
|
compatibility 'x86_64'
|
|
source_url 'https://github.com/advanced-rest-client/arc-electron/releases/download/v17.0.9/arc-linux-17.0.9-x86_64.AppImage'
|
|
source_sha256 '0461eb86ffad7ee733964a527c1b85e06154454f655631d7bef5ea5b111577d5'
|
|
|
|
depends_on 'gtk3'
|
|
depends_on 'sommelier' => :logical
|
|
|
|
no_shrink
|
|
|
|
def self.build
|
|
File.write 'arc.sh', <<~EOF
|
|
#!/bin/bash
|
|
export APPDIR=#{CREW_PREFIX}/share/advanced-rest-client
|
|
cd $APPDIR
|
|
GDK_BACKEND=x11 ./AppRun --no-sandbox "$@"
|
|
EOF
|
|
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/advanced-rest-client"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/applications"
|
|
FileUtils.mv 'advanced-rest-client.desktop', "#{CREW_DEST_PREFIX}/share/applications"
|
|
FileUtils.install 'arc.sh', "#{CREW_DEST_PREFIX}/bin/arc", mode: 0o755
|
|
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/advanced-rest-client"
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'arc' to get started.\n".lightblue
|
|
end
|
|
end
|