Support webex updates

This commit is contained in:
Eugen Wissner 2022-12-23 17:47:14 +01:00
parent f4ebad4394
commit 5b26e7dca8
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0

View File

@ -6,6 +6,7 @@
require 'digest/md5'
require 'net/http'
require 'open3'
require_relative 'config/config'
require_relative 'lib/package'
require_relative 'lib/download'
@ -105,3 +106,24 @@ task :ioncube do
update_slackbuild_version 'development/ioncube-loader', package.version
commit 'development/ioncube-loader', package.version
end
task :webex do
tarball = 'slackbuilds/network/webex/Webex.deb'
uri = 'https://binaries.webex.com/WebexDesktop-Ubuntu-Official-Package/Webex.deb'
checksum = download URI(uri), tarball
last_stdout, = Open3.pipeline_r ['ar', 'p', tarball, 'control.tar.gz'], ['tar', 'zxO', './control']
version = last_stdout.read.lines
.find { |line| line.start_with? 'Version: ' }
.split.last
package = Package.new 'network/webex',
version: version,
homepage: 'https://www.webex.com'
write_info package,
downloads: [Download.new(uri, checksum, is64: true)]
update_slackbuild_version 'network/webex', package.version
commit 'network/webex', package.version
end