From 6223d7f1d0c49513a6e787bd014a17d0546f05a3 Mon Sep 17 00:00:00 2001 From: Vinoth Ramiah Date: Mon, 16 Nov 2015 12:31:42 +0000 Subject: [PATCH] Add 360Controller driver v0.14 Same as d235j-xbox360-controller-driver Cask but repository name changed --- Casks/xbox360-controller-driver-improved.rb | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Casks/xbox360-controller-driver-improved.rb diff --git a/Casks/xbox360-controller-driver-improved.rb b/Casks/xbox360-controller-driver-improved.rb new file mode 100644 index 000000000000..82394cb44dc5 --- /dev/null +++ b/Casks/xbox360-controller-driver-improved.rb @@ -0,0 +1,28 @@ +cask :v1 => 'xbox360-controller-driver-improved' do + version '0.14' + sha256 'a7efe48fae89aa592e904d1dc3ba9a73b2d644362eac88feb5e73a774e3fcf88' + + url "https://github.com/360Controller/360Controller/releases/download/v#{version}-unofficial/360ControllerInstall_#{version}_unofficial.dmg" + appcast 'https://github.com/360Controller/360Controller/releases.atom' + name 'TattieBogle Xbox 360 Driver with improvements' + homepage 'https://github.com/360Controller/360Controller' + license :gpl + + pkg 'Install 360 Controller.pkg' + + uninstall :pkgutil => 'com.mice.pkg.Xbox360controller', + :launchctl => 'com.mice.360Daemon', + :kext => [ + 'com.mice.Xbox360ControllerForceFeedback', + 'com.mice.driver.Xbox360Controller', + 'com.mice.driver.Wireless360Controller', + 'com.mice.driver.WirelessGamingReceiver' + ], + # Symlink to kext in /Library/Extensions is not removed + # during :pkgutil phase of uninstall, so we delete it here. + :delete => '/System/Library/Extensions/360Controller.kext' + + caveats do + reboot + end +end