aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mobiledevice.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/mobiledevice.rb b/Library/Formula/mobiledevice.rb
new file mode 100644
index 000000000..69bd89e63
--- /dev/null
+++ b/Library/Formula/mobiledevice.rb
@@ -0,0 +1,15 @@
+class Mobiledevice < Formula
+ homepage "https://github.com/imkira/mobiledevice"
+ url "https://github.com/imkira/mobiledevice/archive/v2.0.0.tar.gz"
+ sha256 "07b167f6103175c5eba726fd590266bf6461b18244d34ef6d05a51fc4871e424"
+
+ def install
+ system "make", "install", "CC=#{ENV.cc}", "PREFIX=#{prefix}"
+ end
+
+ test do
+ cur_version = shell_output("#{bin}/mobiledevice version").strip
+ assert_match "#{version}", cur_version
+ system("#{bin}/mobiledevice list_devices")
+ end
+end