upx: use resource
This commit is contained in:
parent
afdc91a8e0
commit
50eb24d057
1 changed files with 7 additions and 7 deletions
|
@ -1,10 +1,5 @@
|
|||
require 'formula'
|
||||
|
||||
class Lzma < Formula
|
||||
url 'http://downloads.sourceforge.net/project/sevenzip/LZMA%20SDK/4.65/lzma465.tar.bz2'
|
||||
sha1 '5ec1c4606fec88c770a9712073e83916f8aed173'
|
||||
end
|
||||
|
||||
class Upx < Formula
|
||||
homepage 'http://upx.sourceforge.net'
|
||||
url 'http://upx.sourceforge.net/download/upx-3.09-src.tar.bz2'
|
||||
|
@ -13,9 +8,14 @@ class Upx < Formula
|
|||
|
||||
depends_on 'ucl'
|
||||
|
||||
resource 'lzma' do
|
||||
url 'http://downloads.sourceforge.net/project/sevenzip/LZMA%20SDK/4.65/lzma465.tar.bz2'
|
||||
sha1 '5ec1c4606fec88c770a9712073e83916f8aed173'
|
||||
end
|
||||
|
||||
def install
|
||||
Lzma.new.brew {(buildpath+'lzmasdk').install Dir['*']}
|
||||
ENV['UPX_LZMADIR'] = (buildpath+'lzmasdk')
|
||||
(buildpath/'lzmasdk').install resource('lzma')
|
||||
ENV['UPX_LZMADIR'] = buildpath/'lzmasdk'
|
||||
ENV['UPX_LZMA_VERSION'] = '0x465'
|
||||
system "make all"
|
||||
bin.install 'src/upx.out' => 'upx'
|
||||
|
|
Loading…
Reference in a new issue