2014-11-14 01:25:26 +08:00
|
|
|
cask :v1 => 'bankid' do
|
2014-09-17 19:42:38 +08:00
|
|
|
version :latest
|
2014-09-09 01:41:07 +08:00
|
|
|
sha256 :no_check
|
2014-06-27 08:00:59 +08:00
|
|
|
|
2014-09-09 01:41:07 +08:00
|
|
|
url 'https://install.bankid.com/FileDownloader?fileId=Mac'
|
2015-01-06 10:28:16 +08:00
|
|
|
name 'BankID'
|
2014-06-27 08:00:59 +08:00
|
|
|
homepage 'http://www.bankid.com/'
|
2014-12-20 21:45:47 +08:00
|
|
|
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
|
2014-06-27 08:00:59 +08:00
|
|
|
|
2014-10-03 22:42:40 +08:00
|
|
|
container :type => :naked
|
2014-09-09 20:55:26 +08:00
|
|
|
preflight do
|
2014-11-21 22:37:55 +08:00
|
|
|
system '/bin/mv', '--', staged_path.join('FileDownloader'), staged_path.join('bankid-latest.pkg')
|
2014-09-09 01:41:07 +08:00
|
|
|
end
|
|
|
|
|
2014-09-10 23:36:59 +08:00
|
|
|
pkg 'bankid-latest.pkg'
|
2014-11-22 22:12:36 +08:00
|
|
|
|
2014-01-22 07:35:58 +08:00
|
|
|
uninstall :pkgutil => 'com.bankid.bankid.BankID.pkg'
|
|
|
|
end
|