aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pngquant/APKBUILD
blob: 3b07eebcfde18a2ed1543eabc6f6605bb9ad1172 (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
30
31
32
33
34
35
36
37
38
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=pngquant
pkgver=2.6.0
pkgrel=0
pkgdesc="Lossy PNG compressor"
url="https://pngquant.org/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev libpng-dev bash"
install=""
subpackages="$pkgname-doc"
source="pngquant-$pkgver.tar.gz::https://github.com/pornel/pngquant/archive/$pkgver.tar.gz"

_builddir="$srcdir"/pngquant-$pkgver
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

md5sums="52541b98380aa247a837ba23ec9ea0d9  pngquant-2.6.0.tar.gz"
sha256sums="ea897936c418c15329914d0dbbbce0a764f808e9f161b3103acf23eb71022e09  pngquant-2.6.0.tar.gz"
sha512sums="e683ed08e6c0740b86073ab3de2a4918b3ae3632bbe83837404a2565362c6225756002b053ff0ea2f35f37ad93ca8e4d57dc0299f965b808f011f5e814a07227  pngquant-2.6.0.tar.gz"