Commit a6b0bb48 authored by Chris Thurber's avatar Chris Thurber Committed by GitHub

Merge pull request #2898 from uberhacker/add-pngcheck-package

Add pngcheck package
parents 9e9065a4 8841702d
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment