Fix casks with Utils modules
This commit is contained in:
parent
c1d5a2264e
commit
37112e90c3
|
@ -3,17 +3,17 @@ cask 'ax88179' do
|
|||
sha256 '50b9754649cb9f67a1a911ff07e49c3fc5ac931c49f28dc3235adb95d31e3323'
|
||||
|
||||
module Utils
|
||||
def self.basename
|
||||
"AX88179_178A_Macintosh_10.6_to_10.11_Driver_Installer_v#{Module.nesting.last.version}"
|
||||
def self.basename(version)
|
||||
"AX88179_178A_Macintosh_10.6_to_10.11_Driver_Installer_v#{version}"
|
||||
end
|
||||
end
|
||||
|
||||
url "http://www.asix.com.tw/FrootAttach/driver/#{Utils.basename}.zip"
|
||||
url "http://www.asix.com.tw/FrootAttach/driver/#{Utils.basename(version)}.zip"
|
||||
name 'AX88179'
|
||||
homepage 'http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=131;71;112&PLine=71'
|
||||
license :gratis
|
||||
|
||||
container :nested => "#{Utils.basename}/AX88179_178A.dmg"
|
||||
container :nested => "#{Utils.basename(version)}/AX88179_178A.dmg"
|
||||
|
||||
pkg "AX88179_178A_v#{version[0..-10]}.pkg"
|
||||
|
||||
|
|
|
@ -3,17 +3,17 @@ cask 'ax88772' do
|
|||
sha256 'cc336a77ed35ab6b9972f76fb2a4c77650072c2844fd1632a1875b035a311c6f'
|
||||
|
||||
module Utils
|
||||
def self.basename
|
||||
"AX88772C_772B_772A_760_772_Macintosh_10.5_to_10.11_Driver_Installer_v#{Module.nesting.last.version}"
|
||||
def self.basename(version)
|
||||
"AX88772C_772B_772A_760_772_Macintosh_10.5_to_10.11_Driver_Installer_v#{version}"
|
||||
end
|
||||
end
|
||||
|
||||
url "http://www.asix.com.tw/FrootAttach/driver/#{Utils.basename}.zip"
|
||||
url "http://www.asix.com.tw/FrootAttach/driver/#{Utils.basename(version)}.zip"
|
||||
name 'AX88772'
|
||||
homepage 'http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=86;71;101&PLine=71'
|
||||
license :unknown # TODO: change license and remove this comment; ':unknown' is a machine-generated placeholder
|
||||
|
||||
container :nested => "#{Utils.basename}/AX88772.dmg"
|
||||
container :nested => "#{Utils.basename(version)}/AX88772.dmg"
|
||||
|
||||
pkg "AX88772_v#{version.major_minor_patch}.pkg"
|
||||
|
||||
|
|
|
@ -3,17 +3,17 @@ cask 'mcs783x' do
|
|||
sha256 'd86bdf6107cec7d3990f6967a5be782f7945cb722f22789cb04051514ba87a10'
|
||||
|
||||
module Utils
|
||||
def self.basename
|
||||
"MCS783x_Mac_OSX_10.5_to_10.10_driver_v#{Module.nesting.last.version}"
|
||||
def self.basename(version)
|
||||
"MCS783x_Mac_OSX_10.5_to_10.10_driver_v#{version}"
|
||||
end
|
||||
end
|
||||
|
||||
url "http://www.asix.com.tw/FrootAttach/driver/#{Utils.basename}.zip"
|
||||
url "http://www.asix.com.tw/FrootAttach/driver/#{Utils.basename(version)}.zip"
|
||||
name 'ASIX MCS7830/7832 USB to Ethernet Controller Driver'
|
||||
homepage 'http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=108;71;101&PLine=71'
|
||||
license :unknown # TODO: change license and remove this comment; ':unknown' is a machine-generated placeholder
|
||||
|
||||
container :nested => "#{Utils.basename}/MCS7830_v#{version.major_minor_patch}.dmg"
|
||||
container :nested => "#{Utils.basename(version)}/MCS7830_v#{version.major_minor_patch}.dmg"
|
||||
|
||||
pkg "MCS7830 v#{version.major_minor_patch}.pkg"
|
||||
|
||||
|
|
Loading…
Reference in New Issue