Universal unpacker (unp) formula
unp is a small perl script which makes extraction of any archive files a bit easier. It support several compressors and archiver programs, chooses the right one(s) automatically and extracts one or more files in one go. Signed Off By: Max Howell <max@methylblue.com> I amended the formula slightly to use Homebrew's install functions, and Homebrew's automatic installation for README, etc. files.
This commit is contained in:
parent
e969a9d8bf
commit
32ec3665a6
1 changed files with 20 additions and 0 deletions
20
Formula/unp.rb
Normal file
20
Formula/unp.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
require 'brewkit'
|
||||
|
||||
class Unp <Formula
|
||||
@url='http://ftp.de.debian.org/debian/pool/main/u/unp/unp_1.0.11.tar.gz'
|
||||
@homepage='http://packages.debian.org/de/etch/unp'
|
||||
@md5='ecea662bd7e7efe7f7e2213bf21d9646'
|
||||
|
||||
def deps
|
||||
BinaryDep.new 'p7zip'
|
||||
end
|
||||
|
||||
def install
|
||||
bin.install %w[unp ucat]
|
||||
man1.install "debian/unp.1"
|
||||
|
||||
FileUtils.mv 'debian/README.debian', 'README'
|
||||
FileUtils.mv 'debian/copyright', 'COPYING'
|
||||
FileUtils.mv 'debian/changelog', 'ChangeLog'
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue