Skip to content

Commit

Permalink
add Formula
Browse files Browse the repository at this point in the history
  • Loading branch information
lejenome committed May 4, 2015
1 parent 9a88989 commit 1cf0ab2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions res/Mastermind.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
class Mastermind < Formula
version "0.1.2"
url "https://github.com/lejenome/mastermind/archive/v#{version}.tar.gz"
head "https://github.com/lejenome/mastermind.git", :using => :git
homepage "https://github.com/lejenome/mastermind/"
sha256 ""

depends_on "cmake" => :build
depends_on "readline" => :recommended
depends_on "gettext" => :build
depends_on "sdl2"
depends_on "sdl2_ttf"

def install
system "cmake", "-DCMAKE_INSTALL_PREFIX=#{HOMEBREW_PREFIX}", "-DCMAKE_BUILD_TYPE=Release", "."
# system "cmake", ".", *std_cmake_args
system "make", "all", "translations"
system "make", "install"
end
end

0 comments on commit 1cf0ab2

Please sign in to comment.