aboutsummaryrefslogtreecommitdiffstats
path: root/main/libimagequant/APKBUILD
blob: 36e2c55caa1448d7e69d2c27454d1424ea2d95ae (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
27
28
29
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=libimagequant
pkgver=2.12.6
pkgrel=0
pkgdesc="Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images."
url="https://pngquant.org/lib/"
arch="all"
license="GPL-3.0-or-later"
options="!check" # No test suite
makedepends="bash"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ImageOptim/libimagequant/archive/$pkgver.tar.gz"

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

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="457a3ab4b6c05415b110a5b570c3122f256a543cbd15ec61ff5a1df9a493a390e898dcf9ad83457f1dab13a22e1bfc1c8ce28c49530093e1d500ff0abf181788  libimagequant-2.12.6.tar.gz"