homebrew-core/Formula/unyaffs.rb
Jiayong Ou 0012735c22 New Formula: unyaffs
Unyaffs is a program to extract files from a yaffs file system image.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-01 12:28:54 -08:00

14 lines
329 B
Ruby

require 'formula'
class Unyaffs <Formula
head 'http://unyaffs.googlecode.com/svn/trunk/'
homepage 'http://code.google.com/p/unyaffs/'
def install
cc_args = ENV['CFLAGS'].split(' ')
(cc_args << ['-o', 'unyaffs', 'unyaffs.c']).flatten!
system ENV.cc, *cc_args
bin.install 'unyaffs'
end
end