# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=pngquant
pkgver=2.11.2
pkgrel=1
pkgdesc="Lossy PNG compressor"
url="https://pngquant.org/"
arch="all"
license="GPL"
makedepends="libpng-dev lcms2-dev bash"
subpackages="$pkgname-doc"
source="http://pngquant.org/$pkgname-$pkgver-src.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr
	make
}

check() {
	cd "$builddir"
	./pngquant --help > /dev/null
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="2ef2f45b3bc67dfa178083321299dcdc47bc83e1165cf73f3104ae1d716a7756b721ad20e40583448667461ca8e96b8080c5f47707892ab049fcc471a739833f  pngquant-2.11.2-src.tar.gz"
