Date: Saturday, June 6, 2015 @ 19:36:50 Author: anthraxx Revision: 134912
addpng pngcrush 1.7.85-1 Added: pngcrush/ pngcrush/repos/ pngcrush/trunk/ pngcrush/trunk/LICENSE pngcrush/trunk/PKGBUILD ----------+ LICENSE | 42 ++++++++++++++++++++++++++++++++++++++++++ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) Added: pngcrush/trunk/LICENSE =================================================================== --- pngcrush/trunk/LICENSE (rev 0) +++ pngcrush/trunk/LICENSE 2015-06-06 17:36:50 UTC (rev 134912) @@ -0,0 +1,42 @@ + +NOTICES + +If you have modified this source, you may insert additional notices +immediately after this sentence. + +COPYRIGHT: + +Copyright (C) 1998-2002,2006-2009 Glenn Randers-Pehrson + (glennrp at users.sf.net) +Copyright (C) 2005 Greg Roelofs + +DISCLAIMERS: + +The pngcrush computer program is supplied "AS IS". The Author disclaims all +warranties, expressed or implied, including, without limitation, the +warranties of merchantability and of fitness for any purpose. The +Author assumes no liability for direct, indirect, incidental, special, +exemplary, or consequential damages, which may result from the use of +the computer program, even if advised of the possibility of such damage. +There is no warranty against interference with your enjoyment of the +computer program or against infringement. There is no warranty that my +efforts or the computer program will fulfill any of your particular purposes +or needs. This computer program is provided with all faults, and the entire +risk of satisfactory quality, performance, accuracy, and effort is with +the user. + +LICENSE: + +Permission is hereby irrevocably granted to everyone to use, copy, modify, +and distribute this source code, or portions hereof, or executable programs +compiled from it, for any purpose, without payment of any fee, subject to +the following restrictions: + +1. The origin of this source code must not be misrepresented. + +2. Altered versions must be plainly marked as such and must not be + misrepresented as being the original source. + +3. This Copyright notice, disclaimer, and license may not be removed + or altered from any source or altered source distribution. + Added: pngcrush/trunk/PKGBUILD =================================================================== --- pngcrush/trunk/PKGBUILD (rev 0) +++ pngcrush/trunk/PKGBUILD 2015-06-06 17:36:50 UTC (rev 134912) @@ -0,0 +1,36 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Anton Bazhenov <anton.bazhenov at gmail> +# Contributor: HuntXu <[email protected]> +# Contributor: Stefan Husmann <[email protected]> + +pkgname=pngcrush +pkgver=1.7.85 +pkgrel=2 +pkgdesc="A tool for optimizing the compression of PNG files" +url="http://pmt.sourceforge.net/pngcrush" +arch=('i686' 'x86_64') +license=('custom') +depends=('libpng') +source=(http://downloads.sourceforge.net/pmt/${pkgname}-${pkgver}-nolib.tar.xz + LICENSE) +sha512sums=('7b959fc6a8839fb0dab6471b13e866e11d5fefa072d6b135c7f621bd4b475765c2e8d0b471f074b6df7d6ccd8b5c33938e1143fb2e013986c4e8e5fada68c8ca' + 'f18613b9da9b4f31a317411e726def5122246087ff57887fba6b46f0a7a7fae7109388ecb2ce049bbe992cc6ef0a3fbbe0f5c5bc816705efd7583836cbd4e69d') + +prepare() { + cd ${pkgname}-${pkgver}-nolib + sed -r "s/^(CFLAGS = .*)$/\\1 ${CFLAGS}/" -i Makefile + sed -r "s/^(LDFLAGS =*)$/\\1 ${LDFLAGS}/" -i Makefile +} + +build() { + cd ${pkgname}-${pkgver}-nolib + make +} + +package() { + cd ${pkgname}-${pkgver}-nolib + make DESTDIR="${pkgdir}" install + install -Dm 644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set ts=2 sw=2 et:
