From 8841702dda025ba08dc6456bc6d2f865f392af5d Mon Sep 17 00:00:00 2001 From: Ed Reel Date: Wed, 28 Nov 2018 16:34:51 -0600 Subject: [PATCH] Add pngcheck package --- packages/pngcheck.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/pngcheck.rb diff --git a/packages/pngcheck.rb b/packages/pngcheck.rb new file mode 100644 index 000000000..caf5ddd78 --- /dev/null +++ b/packages/pngcheck.rb @@ -0,0 +1,22 @@ +require 'package' + +class Pngcheck < Package + description 'pngcheck verifies the integrity of PNG, JNG and MNG files' + homepage 'http://www.libpng.org/pub/png/apps/pngcheck.html' + version '2.3.0' + source_url 'https://prdownloads.sourceforge.net/project/png-mng/pngcheck/2.3.0/pngcheck-2.3.0.tar.gz' + source_sha256 '77f0a039ac64df55fbd06af6f872fdbad4f639d009bbb5cd5cbe4db25690f35f' + + binary_url ({ + }) + binary_sha256 ({ + }) + + def self.build + system "gcc -O -DUSE_ZLIB -I#{CREW_PREFIX}/include -o pngcheck pngcheck.c -L#{CREW_LIB_PREFIX} -lz" + end + + def self.install + system "install -Dm755 pngcheck #{CREW_DEST_PREFIX}/bin/pngcheck" + end +end