]> cvs.zerfleddert.de Git - proxmark3-svn/blob - proxmark3.rb
syntax suger
[proxmark3-svn] / proxmark3.rb
1 class Proxmark3 < Formula
2 desc "Proxmark3 client, flasher, HID flasher and firmware bundle"
3 homepage "http://www.proxmark.org"
4 url "https://github.com/iceman1001/proxmark3/archive/v1.4.0.tar.gz"
5 sha256 "d8aa8a8b6df887185069fd35364e370689308f191edd9989be64b3575e312254"
6 head "https://github.com/iceman1001/proxmark3.git"
7
8 depends_on "automake" => :build
9 depends_on "readline"
10 depends_on "p7zip" => :build
11 depends_on "libusb"
12 depends_on "libusb-compat"
13 depends_on "pkg-config" => :build
14 depends_on "wget"
15 depends_on "nitsky/stm32/arm-none-eabi-gcc" => :build
16
17 def install
18 ENV.deparallelize
19
20 system "make", "-C", "client/hid-flasher/"
21 system "make", "all", "clean"
22 system "make"
23 bin.mkpath
24 bin.install "client/flasher" => "proxmark3-flasher"
25 bin.install "client/hid-flasher/flasher" => "proxmark3-hid-flasher"
26 bin.install "client/proxmark3" => "proxmark3"
27 bin.install "client/fpga_compress" => "fpga_compress"
28 share.mkpath
29 (share/"firmware").mkpath
30 (share/"firmware").install "armsrc/obj/fullimage.elf" => "fullimage.elf"
31 (share/"firmware").install "bootrom/obj/bootrom.elf" => "bootrom.elf"
32 ohai "Install success! Upgrade devices on HID firmware with proxmark3-hid-flasher, or devices on more modern firmware with proxmark3-flasher."
33 ohai "The latest bootloader and firmware binaries are ready and waiting in the current homebrew Cellar within share/firmware."
34 end
35
36 test do
37 system "proxmark3", "-h"
38 end
39 end
Impressum, Datenschutz