diff options
Diffstat (limited to 'community/pngquant/APKBUILD')
-rw-r--r-- | community/pngquant/APKBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/pngquant/APKBUILD b/community/pngquant/APKBUILD new file mode 100644 index 0000000000..bd62dec31e --- /dev/null +++ b/community/pngquant/APKBUILD @@ -0,0 +1,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" |