mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
23 lines
659 B
Ruby
23 lines
659 B
Ruby
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
|