Skip to content

Commit e4bbbb0

Browse files
committed
tpix 1.0.3 (new formula)
1 parent a3ce9a6 commit e4bbbb0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Formula/t/tpix.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class Tpix < Formula
2+
desc "Simple terminal image viewer using the Kitty graphics protocol"
3+
homepage "https://github.com/jesvedberg/tpix"
4+
url "https://github.com/jesvedberg/tpix/archive/refs/tags/v1.0.3.tar.gz"
5+
sha256 "2d9fb663a9aea3137d2d56fd470e2862ee752beac5aef2988755d2ad06808dd9"
6+
license "MIT"
7+
head "https://github.com/jesvedberg/tpix.git", branch: "master"
8+
9+
depends_on "nim" => :build
10+
11+
def install
12+
system "nimble", "build", "-y", "-d:release", "--verbose"
13+
14+
bin.install "tpix"
15+
end
16+
17+
test do
18+
assert_match version.to_s, shell_output("#{bin}/tpix --version")
19+
assert_match "\x1b", pipe_output("#{bin}/tpix", test_fixtures("test.png").read)
20+
pdf_output = pipe_output("#{bin}/tpix", test_fixtures("test.pdf").read)
21+
assert_match "Error: Unsupported image file format", pdf_output
22+
end
23+
end

0 commit comments

Comments
 (0)