aboutsummaryrefslogtreecommitdiffstats
path: root/community/pngquant/APKBUILD
blob: bd62dec31e183e4baf758372d7f42c4994c833c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=pngquant
pkgver=2.9.1
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 || return 1
	make || return 1
}

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

sha512sums="c2f47627395257147857c556e030681e05213eed52d72c314a43e09ce9a84a491acbda2eabae6c3b79a02bde9bdb3a84edd573e63cdd207866f6238322400786  pngquant-2.9.1-src.tar.gz"