Skip to content
This repository
Browse code

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.
  • Loading branch information...
commit dd69d0ad927827de0dfa74ae389d6b4cdb489104 1 parent 9ab3d89
authored mxcl committed

Showing 1 changed file with 20 additions and 0 deletions. Show diff stats Hide diff stats

  1. 20  Library/Formula/unp.rb
20  Library/Formula/unp.rb
... ...
@@ -0,0 +1,20 @@
  1
+require 'brewkit'
  2
+
  3
+class Unp <Formula
  4
+  @url='http://ftp.de.debian.org/debian/pool/main/u/unp/unp_1.0.11.tar.gz'
  5
+  @homepage='http://packages.debian.org/de/etch/unp'
  6
+  @md5='ecea662bd7e7efe7f7e2213bf21d9646'
  7
+
  8
+ def deps
  9
+   BinaryDep.new 'p7zip'
  10
+ end
  11
+
  12
+  def install
  13
+    bin.install %w[unp ucat]
  14
+    man1.install "debian/unp.1"
  15
+
  16
+    FileUtils.mv 'debian/README.debian', 'README'
  17
+    FileUtils.mv 'debian/copyright', 'COPYING'
  18
+    FileUtils.mv 'debian/changelog', 'ChangeLog'
  19
+  end
  20
+end

0 notes on commit dd69d0a

Please sign in to comment.
Something went wrong with that request. Please try again.