Permalink
Browse files

stoken/stoken-gui (new formula)

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
[cernekee: update formula to work with stoken v0.8]
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
  • Loading branch information...
samm-git authored and MikeMcQuaid committed Aug 7, 2014
1 parent a0cba7f commit 2bccb53fe971b4f39c273f797411b7e1271bd18e
Showing with 32 additions and 0 deletions.
  1. +32 −0 Formula/stoken.rb
View
@@ -0,0 +1,32 @@
require "formula"
class Stoken < Formula
homepage "http://stoken.sourceforge.net/"
url "https://downloads.sourceforge.net/project/stoken/stoken-0.81.tar.gz"
sha1 "db36aec5a8bd3f5f92deaebdea08cb639b78da73"
depends_on "gtk+3" => :optional
if build.with? "gtk+3"
depends_on "gnome-icon-theme"
depends_on "hicolor-icon-theme"
end
depends_on "pkg-config" => :build
depends_on "nettle"
def install
args = %W[
--disable-dependency-tracking
--disable-debug
--disable-silent-rules
--prefix=#{prefix}
]
system "./configure", *args
system "make", "check"
system "make", "install"
end
test do
system "#{bin}/stoken", "show", "--random"
end
end

0 comments on commit 2bccb53

Please sign in to comment.