Files
chromebrew/packages/skype.rb
supechicken 7fd65ee3a0 Update packages (Update packages list on comment) (#4564)
* Update `xclock` `twm` `xterm` `powershell`

* Update `skype` and `screenfetch`

Fixes #4564

* Removed /dev/null

* New Package: bash

* Use https and mirror

* Use  #{CREW_OPTIONS}

* Update xterm.rb

* Add `bash` to `buildessential` as a dependency

* Replace system default bash

* Update `mpfr`

* #{CREW_VERSION} don't work on cloudready

* Update bash.rb

* Update `wine`

* Update mc

* Update opera.rb

* Update nano.rb

* Update gsettings_desktop_schemas.rb

* Update gsettings_desktop_schemas.rb, use meson

* Fix syntax error

* Add dependencies to `wine`

* Remove bash from buildessential.rb

* Update screenfetch.rb

* Update powershell.rb

* Update mpfr.rb

* Remove dependencies duplicate with core packages

* Update twm, use  #{CREW_OPTIONS}

* Update xclock, use  #{CREW_OPTIONS}

* Add --prefix

* Add ffmpeg dependency

* Delete mpfr.rb

* Left mpfr.rb untouch

* Add #{CREW_OPTIONS}, tested on x86_64

* Update Opera

* fix CREW_OPTIONS

* Update wine.rb

* Update bash.rb

* Remove core dependencies
2020-12-01 09:15:24 -06:00

32 lines
1.2 KiB
Ruby

require 'package'
class Skype < Package
description 'Skype is a telecommunications application that specializes in providing video chat and voice calls between devices'
homepage 'https://www.skype.com/'
version '8.65.0.78'
compatibility 'x86_64'
case ARCH
when 'x86_64'
source_url 'file:///dev/null'
source_sha256 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
depends_on 'alien' => :build
depends_on 'gtk3'
depends_on 'sommelier'
end
def self.build
system 'curl https://repo.skype.com/deb/pool/main/s/skypeforlinux/skypeforlinux_8.65.0.78_amd64.deb -#o skype.deb'
puts "Archive downloaded".lightgreen
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('skype.deb') ) == '9026f043697d7d0783e7232701a868229d9a91e91dc0ae86509732c1c7bf0c13'
system 'alien -tc skype.deb'
system "tar xvf skypeforlinux-#{version}.tgz"
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}"
FileUtils.mv 'usr/bin', "#{CREW_DEST_PREFIX}"
FileUtils.mv 'usr/share', "#{CREW_DEST_PREFIX}"
FileUtils.ln_s "#{CREW_PREFIX}/bin/skypeforlinux", "#{CREW_DEST_PREFIX}/bin/skype"
end
end