# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=pngquant
pkgver=2.11.7
pkgrel=0
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="5325577dcb16acf5dff81a5f3bcf8cfa2a12df07a7c2308ebb9a343b74e56ea21184ed3f87819122c8bb97b4a7ffd3b61046c60f7f339da9a93e76dfa17ebee6  pngquant-2.11.7-src.tar.gz"
