2010-06-17 12:39:49 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Upx < Formula
|
2010-06-17 12:39:49 +00:00
|
|
|
homepage 'http://upx.sourceforge.net'
|
2013-05-25 18:42:26 +00:00
|
|
|
url 'http://upx.sourceforge.net/download/upx-3.09-src.tar.bz2'
|
|
|
|
sha1 'df474a9909e6697a4d3240767c34e2dcb39002c1'
|
2013-08-23 23:10:01 +00:00
|
|
|
head 'https://www.pysol.org:4443/hg/upx.hg', :using => :hg
|
2010-06-17 12:39:49 +00:00
|
|
|
|
|
|
|
depends_on 'ucl'
|
|
|
|
|
2013-08-07 03:25:09 +00:00
|
|
|
resource 'lzma' do
|
|
|
|
url 'http://downloads.sourceforge.net/project/sevenzip/LZMA%20SDK/4.65/lzma465.tar.bz2'
|
|
|
|
sha1 '5ec1c4606fec88c770a9712073e83916f8aed173'
|
|
|
|
end
|
|
|
|
|
2010-06-17 12:39:49 +00:00
|
|
|
def install
|
2013-08-07 03:25:09 +00:00
|
|
|
(buildpath/'lzmasdk').install resource('lzma')
|
|
|
|
ENV['UPX_LZMADIR'] = buildpath/'lzmasdk'
|
2012-10-16 21:52:07 +00:00
|
|
|
ENV['UPX_LZMA_VERSION'] = '0x465'
|
2010-06-17 12:39:49 +00:00
|
|
|
system "make all"
|
2012-10-16 21:52:07 +00:00
|
|
|
bin.install 'src/upx.out' => 'upx'
|
|
|
|
man1.install 'doc/upx.1'
|
2010-06-17 12:39:49 +00:00
|
|
|
end
|
|
|
|
end
|