@@ -0,0 +1,32 @@
1+{ stdenv, fetchurl, zlib }:
2+
3+stdenv.mkDerivation rec {
4+ name = "pngcheck-2.3.0";
5+
6+ src = fetchurl {
7+ url = "mirror://sourceforge/png-mng/${name}.tar.gz";
8+ sha256 = "0pzkj1bb4kdybk6vbfq9s0wzdm5szmrgixkas3xmbpv4mhws1w3p";
9+ };
10+
11+ # configurePhase = ''
12+ # sed -i s,/usr,$out, Makefile
13+ # '';
14+
15+ makefile = "Makefile.unx";
16+ makeFlags = "ZPATH=${zlib}/lib";
17+
18+ buildInputs = [ zlib ];
19+
20+ installPhase = ''
21+ mkdir -p $out/bin/
22+ cp pngcheck $out/bin/pngcheck
23+ '';
24+
25+ meta = {
26+ homepage = http://pmt.sourceforge.net/pngcrush;
27+ description = "Verifies the integrity of PNG, JNG and MNG files";
28+ license = stdenv.lib.licenses.free;
29+ platforms = with stdenv.lib.platforms; linux;
30+ maintainers = with stdenv.lib.maintainers; [ the-kenny ];
31+ };
32+}