homebrew-core/Formula/nbimg.rb

36 lines
2.0 KiB
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"
license "GPL-3.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "542f99d9f78e4a9820b6ea2fa1e265d5e261d0d6fdfe98e08af41327d16bdb5e"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0d03cde2be335d6c4b096090f9c61b9f2af639fe7e10b9d25ca876bcb2613aed"
sha256 cellar: :any_skip_relocation, monterey: "906607cb9db983c3fc6db43774e66a1e33d19ceaacc5814dad554a9cf38364a5"
sha256 cellar: :any_skip_relocation, big_sur: "59cb045e4e21e2e205b0b51bbbaa189838c212741fdbbed061596e924286ec97"
sha256 cellar: :any_skip_relocation, catalina: "50cafca29cd1fb950794b9f240da2813dbd7dc682dfdb8c75c091cdc9666737e"
sha256 cellar: :any_skip_relocation, mojave: "f78297721594cdf2c825c589c193fc29f01bfd2e3bfe6f63c3c788ed2699fcc5"
sha256 cellar: :any_skip_relocation, high_sierra: "20d4ae1588773f9ccd4ff2181def08297ea1119ca70f39392ef11648cb72270f"
sha256 cellar: :any_skip_relocation, sierra: "75fd1505a68d1c499ddcf73e912947910659d9bd127c208cafeb3e8899664fbd"
sha256 cellar: :any_skip_relocation, el_capitan: "402904e3588fe5a8ae00d7131fe29821880f31a8ec19fb89e70a79f76e067452"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d4c91a552e56c4f2e78422c8a4721d7ffbb54bb0bdb326e983f9989c5c9500ce"
end
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