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>
50 lines
1.8 KiB
Ruby
50 lines
1.8 KiB
Ruby
require 'package'
|
|
|
|
class Audacity < Package
|
|
description "Audacity is the world's most popular audio editing and recording app"
|
|
homepage 'https://www.audacityteam.org/'
|
|
version '3.7.7'
|
|
license 'GPL-3'
|
|
compatibility 'x86_64'
|
|
min_glibc '2.30'
|
|
source_url "https://github.com/audacity/audacity/releases/download/Audacity-#{version}/audacity-linux-#{version}-x64-22.04.AppImage"
|
|
source_sha256 '45c4445fb6670cc5fe40d31c7cea979724d2605bca53b554c32520acbf901ef0'
|
|
|
|
depends_on 'gtk3'
|
|
depends_on 'libthai'
|
|
depends_on 'sommelier' => :logical
|
|
|
|
no_shrink
|
|
no_compile_needed
|
|
|
|
def self.build
|
|
File.write 'audacity.sh', <<~EOF
|
|
#!/bin/bash
|
|
export APPDIR=#{CREW_PREFIX}/share/audacity/usr
|
|
export LD_LIBRARY_PATH="#{CREW_PREFIX}/share/audacity/lib:#{CREW_LIB_PREFIX}"
|
|
cd $APPDIR
|
|
GDK_BACKEND=x11 ./AppRun "$@"
|
|
EOF
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.rm_rf 'usr/share/glib-2.0'
|
|
FileUtils.mkdir_p CREW_DEST_PREFIX.to_s
|
|
FileUtils.mv 'usr/share', CREW_DEST_PREFIX.to_s
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/audacity"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/applications"
|
|
FileUtils.install 'audacity.sh', "#{CREW_DEST_PREFIX}/bin/audacity", mode: 0o755
|
|
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/audacity"
|
|
%w[libatk-1.0.so.0 libatk-bridge-2.0.so.0 libcairo-gobject.so.2 libcairo.so.2 libgio-2.0.so.0 \
|
|
libglib-2.0.so.0 libgmodule-2.0.so.0 libgobject-2.0.so.0 libgthread-2.0.so.0 libjack.so.0 \
|
|
libpango-1.0.so.0 libpixman-1.so.0 libportaudio.so librsvg-2.so.2].each do |library|
|
|
FileUtils.ln_sf "#{CREW_PREFIX}/share/audacity/fallback/#{library}/#{library}",
|
|
"#{CREW_DEST_PREFIX}/share/audacity/lib/#{library}"
|
|
end
|
|
end
|
|
|
|
def self.postinstall
|
|
ExitMessage.add "\nType 'audacity' to get started.\n"
|
|
end
|
|
end
|