Verified Commit 9c8de4d9 authored by Varun Chari's avatar Varun Chari Committed by Yurii Kolesnykov
Browse files

Merge KDE Connect Cask

Closes !13



Signed-off-by: Yurii Kolesnykov's avatarYurii Kolesnykov <root@yurikoles.com>
parent 894cd832
../Formula/kdeconnect-kde.rb
\ No newline at end of file
cask "kdeconnect" do
version :latest
sha256 :no_check
url do
require 'open-uri'
base_url = "https://binary-factory.kde.org/view/MacOS/job/kdeconnect-kde_Release_macos/lastStableBuild"
version = URI(base_url.to_s)
.open
.read
.scan(/href=.*?kdeconnect-kde[._-]v?(\d+(?:[.-]\d+)+)-macos-64-clang\.dmg/i)
.flatten
.first # should only be one mach
file = "kdeconnect-kde-#{version}-macos-64-clang.dmg"
"#{base_url}/artifact/#{file}"
end
name "KDE Connect"
desc "Enabling communication between all your devices"
homepage "https://kdeconnect.kde.org/"
livecheck do
url "https://binary-factory.kde.org/job/kdeconnect-kde_Release_macos/lastStableBuild/artifact/"
regex(/href=.*?kdeconnect-kde[._-]v?(\d+(?:[.-]\d+)+)-macos-64-clang\.dmg/i)
end
app "kdeconnect-indicator.app", target: "KDE Connect.app"
binary "#{appdir}/KDE Connect.app/Contents/MacOS/kdeconnect-cli",
target: "kdeconnect"
uninstall quit: "org.kde.kdeconnect"
zap trash: [
"~/Library/Application Support/kpeoplevcard",
"~/Library/Caches/kdeconnect.sms",
"~/Library/Preferences/kdeconnect",
"~/Library/Preferences/kdeconnect_runcommand",
"~/Library/Preferences/kdeconnect_sendnotifications",
"~/Library/Preferences/kdeconnect_share",
"~/Library/Preferences/org.kde.kdeconnect.plist",
]
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment