2013-07-10 04:34:59 +08:00
|
|
|
class Prepros < Cask
|
2013-12-26 14:36:22 +08:00
|
|
|
url 'http://download.alphapixels.com/Prepros-4.0.1.zip'
|
2013-07-10 04:34:59 +08:00
|
|
|
homepage 'http://alphapixels.com/prepros/'
|
2013-12-26 14:36:22 +08:00
|
|
|
version '4.0.1'
|
2014-02-24 20:52:32 +08:00
|
|
|
sha256 '84510d1252274898b0fc4f95828b60e29a2c946a158bbf7d3188611c62dcd3b1'
|
2013-07-10 04:34:59 +08:00
|
|
|
link 'Prepros.app'
|
2014-02-12 20:30:41 +08:00
|
|
|
after_install do
|
|
|
|
# re: https://github.com/phinze/homebrew-cask/issues/2859,
|
|
|
|
# /usr/bin/unzip loses executable bits in this archive for
|
|
|
|
# unknown reasons
|
|
|
|
system <<-EOBASH
|
|
|
|
/usr/bin/find '#{destination_path}' -type f -print0 | \
|
|
|
|
/usr/bin/xargs -0 /usr/bin/file | \
|
|
|
|
/usr/bin/egrep ' Mach-O (executable|dynamically)' | \
|
|
|
|
/usr/bin/cut -f1 -d: | \
|
|
|
|
/usr/bin/perl -pe 's{\\n}{\\000}' | \
|
|
|
|
/usr/bin/xargs -0 /bin/chmod a+x
|
|
|
|
EOBASH
|
|
|
|
end
|
2013-07-10 04:34:59 +08:00
|
|
|
end
|