Skip to content

Commit

Permalink
makeself 2.2.0 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#32023.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
woodruffw authored and MikeMcQuaid committed Sep 2, 2014
1 parent fa99cda commit 2741b80
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Formula/makeself.rb
@@ -0,0 +1,25 @@
require "formula"

class Makeself < Formula
homepage "http://www.megastep.org/makeself/"
url "https://github.com/megastep/makeself/archive/release-2.2.0.tar.gz"
sha1 "e512745f7aa5becea4f4f85a8dc0aa6fd6ca38aa"

head 'https://github.com/megastep/makeself.git', :branch => 'master'

def install
libexec.install "makeself-header.sh"
# moved makeself-header.sh to libexec so change its location in makeself.sh
inreplace "makeself.sh" do |f|
f.gsub! '`dirname "$0"`', "#{libexec}"
end
bin.install "makeself.sh" => "makeself"
man1.install "makeself.1"
end

test do
touch "testfile"
system "tar", "cvzf", "testfile.tar.gz", "testfile"
system "makeself", ".", "testfile.run", "\"A test file\"", "echo"
end
end

0 comments on commit 2741b80

Please sign in to comment.