21 lines
719 B
Ruby
21 lines
719 B
Ruby
class Nbimg < Formula
|
|
desc "Smartphone boot splash screen converter for Android and winCE"
|
|
homepage "https://github.com/poliva/nbimg"
|
|
url "https://github.com/poliva/nbimg/archive/v1.2.1.tar.gz"
|
|
sha256 "f72846656bb8371564c245ab34550063bd5ca357fe8a22a34b82b93b7e277680"
|
|
|
|
def install
|
|
inreplace "Makefile", "all: nbimg win32", "all: nbimg"
|
|
system "make", "prefix=#{prefix}",
|
|
"bindir=#{bin}",
|
|
"docdir=#{doc}",
|
|
"mandir=#{man}",
|
|
"install"
|
|
end
|
|
|
|
test do
|
|
curl "https://gist.githubusercontent.com/staticfloat/8253400/raw/41aa4aca5f1aa0a82c85c126967677f830fe98ee/tiny.bmp", "-O"
|
|
system "#{bin}/nbimg", "-Ftiny.bmp"
|
|
end
|
|
end
|