mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-31 21:41:44 +01:00
42 lines
932 B
Plaintext
42 lines
932 B
Plaintext
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: TBK <alpine@jjtc.eu>
|
|
pkgname=libimagequant
|
|
pkgver=2.15.1
|
|
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() {
|
|
local _conf
|
|
case $CARCH in
|
|
riscv64) _conf=--disable-sse ;;
|
|
esac
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
$_conf
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
rm -f "$pkgdir"/usr/lib/*.a
|
|
}
|
|
|
|
sha512sums="
|
|
56bc8b73859908774ce0a218cfbec81bfb8432c02ddce83880990b5f5ac89ac253ae64ecde43a9664aab3ac69d309bb9ef8ba2201be6c93aacb731b3214ff4b8 libimagequant-2.15.1.tar.gz
|
|
"
|