2013-07-10 10:38:33 +08:00
|
|
|
class Soundflower < Cask
|
|
|
|
version '1.6.6b'
|
2014-02-24 20:52:32 +08:00
|
|
|
sha256 '61ca31d7478d057e32caaeac3c739f965ba9eb2a27570b3cc715e706d4740dfb'
|
2014-06-27 08:01:44 +08:00
|
|
|
|
2014-09-26 20:09:12 +08:00
|
|
|
url "https://soundflower.googlecode.com/files/Soundflower-#{version}.dmg"
|
2014-06-27 08:01:44 +08:00
|
|
|
homepage 'https://code.google.com/p/soundflower/'
|
2014-10-01 23:33:57 +08:00
|
|
|
license :oss
|
2014-06-27 08:01:44 +08:00
|
|
|
|
2014-09-10 23:37:06 +08:00
|
|
|
pkg 'Soundflower.pkg', :allow_untrusted => true
|
2014-10-01 23:22:28 +08:00
|
|
|
postflight do
|
|
|
|
system '/usr/bin/sudo', '-E', '--',
|
|
|
|
'/sbin/kextload', '-b', 'com.Cycling74.driver.Soundflower'
|
2014-02-03 22:55:59 +08:00
|
|
|
end
|
2014-10-08 22:39:51 +08:00
|
|
|
# early_script is a workaround for a slowly unloading kext, see private-eye Cask
|
2014-10-01 23:22:28 +08:00
|
|
|
uninstall :early_script => {
|
|
|
|
:executable => '/sbin/kextunload',
|
|
|
|
:args => ['-b', 'com.Cycling74.driver.Soundflower'],
|
|
|
|
:must_succeed => false,
|
|
|
|
},
|
|
|
|
:pkgutil => 'com.cycling74.soundflower.*',
|
|
|
|
:delete => '/Applications/Soundflower',
|
|
|
|
:kext => 'com.Cycling74.driver.Soundflower'
|
2013-07-10 10:38:33 +08:00
|
|
|
end
|