mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* Python => 3.13 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix VER variables in const.rb Signed-off-by: Satadru Pramanik <satadru@gmail.com> * bugfixes Signed-off-by: Satadru Pramanik <satadru@gmail.com> * More plumbing changes... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust py3_pip and py3_setuptools to not error during python3 preinstall. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix hash error Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add no_binaries_needed Signed-off-by: Satadru Pramanik <satadru@gmail.com> * bugfixes... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to pip.rb to fix python 3.13 builds. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add workaround for missing binaries... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update cmake Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add lots of package updates. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add py3_bcrypt, rename asciidoc, add more package builds. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * More updates Signed-off-by: Satadru Pramanik <satadru@gmail.com> * revert postgresql update Signed-off-by: Satadru Pramanik <satadru@gmail.com> * final updates? Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update curl Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add curl to essential packages to try to prevent unit test failure on i686. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * updates Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> * fix accidental change to docker package. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Fiz condition of no new updates leavimg a message with CREW_UNATTENDED set. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more updates, add missing libabigail binaries Signed-off-by: Satadru Pramanik <satadru@gmail.com> * rebuild py3_dbus_python Signed-off-by: Satadru Pramanik <satadru@gmail.com> * add arm build for 5.10 musl_linuxheaders Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add builds for openimageio. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust ruby buildsystem slightly to use cache more, adjust unit tests to properly invoke setarch, add py3_pynacl, update libsodium. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Ruby adjustments... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * unit test adjustments... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * unit test adjustments... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add error message to pip install... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * expand pip error reporting Signed-off-by: Satadru Pramanik <satadru@gmail.com> * More pip adjustments. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add more pip verbose error reporting. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add new workaround for pip failure on i686... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Refactor pip again... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * more refactoring... Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust py3_pip version restriction. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Avoid container jdk dependency in snowflake. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update trove classifiers. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * adjust package fxn exit Signed-off-by: Satadru Pramanik <satadru@gmail.com> * adjust more jdk deps Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
80 lines
2.5 KiB
Ruby
80 lines
2.5 KiB
Ruby
require 'package'
|
|
|
|
class Vuze < Package
|
|
description 'Vuze (formerly Azureus) is an extremely powerful and configurable BitTorrent client.'
|
|
homepage 'https://www.vuze.com/'
|
|
version '5.7.6.0'
|
|
license 'GPLv2'
|
|
compatibility 'x86_64'
|
|
source_url 'https://downloads.sourceforge.net/project/azureus/vuze/Vuze_5760/Vuze_5760_linux.tar.bz2'
|
|
source_sha256 '1c5995ed8a25bac4bf1cea012b583af92af04c15579ab686689bca13e6cad36c'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
x86_64: '062957f74835d906c6788056224dda734b92e64473a4ac330afbd29041d71c74'
|
|
})
|
|
|
|
depends_on 'jdk8' unless CREW_IN_CONTAINER
|
|
depends_on 'gtk3'
|
|
|
|
def self.patch
|
|
system "sed -i 's,~/azScript,#{CREW_PREFIX}/tmp/azScript,g' vuze"
|
|
end
|
|
|
|
def self.build
|
|
vuze = <<~EOF
|
|
#!/bin/bash
|
|
cd #{CREW_PREFIX}/share/vuze
|
|
./vuze "$@"
|
|
EOF
|
|
File.write('vuze.sh', vuze)
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_HOME}/.azureus"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/vuze"
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/applicatons"
|
|
FileUtils.mv ['vuze.desktop', 'vuze.png'], "#{CREW_DEST_PREFIX}/share/applicatons"
|
|
FileUtils.install 'vuze.sh', "#{CREW_DEST_PREFIX}/bin/vuze", mode: 0o755
|
|
FileUtils.rm 'vuze.sh'
|
|
FileUtils.cp_r 'plugins', "#{CREW_DEST_HOME}/.azureus"
|
|
FileUtils.cp_r Dir['.'], "#{CREW_DEST_PREFIX}/share/vuze"
|
|
libraries = ['libswt-gtk-4716.so',
|
|
'libswt-atk-gtk-4716.so',
|
|
'libswt-cairo-gtk-4716.so',
|
|
'libswt-pi-gtk-4716.so',
|
|
'libswt-pi3-gtk-4716.so',
|
|
'libswt-webkit-gtk-4716.so']
|
|
libraries.each do |_lib|
|
|
system './vuze'
|
|
FileUtils.cp Dir["#{HOME}/.swt/lib/linux/x86_64/libswt-*"], "#{CREW_DEST_PREFIX}/share/vuze"
|
|
end
|
|
end
|
|
|
|
def self.postinstall
|
|
puts "\nType 'vuze' to get started.\n".lightblue
|
|
end
|
|
|
|
def self.postremove
|
|
config_dirs = ["#{HOME}/.azureus", "#{HOME}/.swt"]
|
|
config_dirs.each do |config_dir|
|
|
next unless Dir.exist? config_dir
|
|
|
|
system "echo '#{config_dir}'; ls '#{config_dir}'"
|
|
end
|
|
print "\nWould you like to remove the config directories above? [y/N] "
|
|
case $stdin.gets.chomp.downcase
|
|
when 'y', 'yes'
|
|
config_dirs.each do |config_dir|
|
|
next unless Dir.exist? config_dir
|
|
|
|
FileUtils.rm_rf config_dir
|
|
puts "#{config_dir} removed.".lightred
|
|
end
|
|
else
|
|
puts 'Configuration saved.'.lightgreen
|
|
end
|
|
end
|
|
end
|