homebrew-cask/Casks/mcs783x.rb

23 lines
847 B
Ruby
Raw Normal View History

2014-11-14 01:26:21 +08:00
cask :v1 => 'mcs783x' do
version '1.1.0'
sha256 'ea1d6245b5accabf041060886f16cc00b43d3e6e7e032f4154b487e96ab05569'
module Utils
def self.basename
"MCS783x_Mac_OSX_10.5_to_10.7_driver_v#{Module.nesting.last.version}_Binary"
end
end
url "http://www.asix.com.tw/FrootAttach/driver/#{Utils.basename}.zip"
homepage 'http://www.asix.com.tw/products.php?op=ProductList&PLine=74&PSeries=109'
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
2014-10-09 23:40:47 +08:00
container :nested => "#{Utils.basename}/MCS7830_v#{version}.dmg"
2014-09-10 23:37:03 +08:00
pkg "MCS7830 v#{version}.pkg"
# todo, is "uninstal" below (one "l") a typo, or is that really the
# file in the package?
2014-11-22 22:12:42 +08:00
uninstall :script => { :executable => 'uninstal driver' },
:pkgutil => 'asix.com.moschipUsbEthernet.pkg'
end