aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/github-release.rb
diff options
context:
space:
mode:
authorColin Dean2014-06-25 19:43:24 -0400
committerMike McQuaid2014-06-26 21:36:38 +0100
commit323b1c6c06d5911fbb413928aa5496b62fdf1a56 (patch)
tree69ffb926d072de24e2d06efa63c8ca50f07cd6ba /Library/Formula/github-release.rb
parentcdad2b43a99a85eff50826ecccbb7b3f78258350 (diff)
downloadhomebrew-323b1c6c06d5911fbb413928aa5496b62fdf1a56.tar.bz2
github-release 0.5.2
Diffstat (limited to 'Library/Formula/github-release.rb')
-rw-r--r--Library/Formula/github-release.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/github-release.rb b/Library/Formula/github-release.rb
new file mode 100644
index 000000000..71634f7c6
--- /dev/null
+++ b/Library/Formula/github-release.rb
@@ -0,0 +1,20 @@
+require "formula"
+
+class GithubRelease < Formula
+ homepage "https://github.com/aktau/github-release"
+ url "https://github.com/aktau/github-release/archive/v0.5.2.tar.gz"
+ sha1 "684391c8bfbb80e43e9aa328b640aaca10345bd7"
+
+ head "https://github.com/aktau/github-release.git"
+ depends_on "go" => :build
+
+ def install
+ ENV["GOPATH"] = buildpath
+ system "make"
+ bin.install "github-release"
+ end
+
+ test do
+ system "#{bin}/github-release", "info", "--user", "aktau", "--repo", "github-release", "--tag", "v#{version}"
+ end
+end