From 5b26e7dca87ca1eea4cc889e4ec1354398d75422 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 23 Dec 2022 17:47:14 +0100 Subject: [PATCH] Support webex updates --- Rakefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Rakefile b/Rakefile index aa1be20..a6e4e0b 100644 --- a/Rakefile +++ b/Rakefile @@ -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