aboutsummaryrefslogtreecommitdiffstats
path: root/community/pngquant/APKBUILD
blob: 7c446c528551cc4072a3feede31993c8adf018dd (plain) (blame)
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
27
28
29
30
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=pngquant
pkgver=2.13.1
pkgrel=0
pkgdesc="Lossy PNG compressor"
url="https://pngquant.org"
arch="all"
license="GPL-3.0-or-later"
makedepends="libpng-dev lcms2-dev libimagequant-dev"
checkdepends="bash"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/kornelski/pngquant/archive/$pkgver/pngquant-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--with-openmp
	make
}

check() {
	make test
}

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

sha512sums="1e1b521252b7c555be967b1ceee613f1b3f884de31a41562a26369047123d2bab855662188b27889e7f0babf5b0e7bc342a83b4343e2ded7de9d68e4785e8c51  pngquant-2.13.1.tar.gz"