# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=gifski pkgver=1.11.0 pkgrel=1 pkgdesc="Highest-quality GIF encoder based on pngquant" url="https://gif.ski/" license="AGPL-3.0-or-later" arch="all" makedepends="cargo clang15-dev ffmpeg-dev cargo-auditable" source="https://github.com/ImageOptim/gifski/archive/$pkgver/gifski-$pkgver.tar.gz" _features="--features=video" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release $_features } check() { cargo test --frozen $_features } package() { install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/ } sha512sums=" 9a150aace008034b1b50904fe8da7423118ddd905aa9cb661986135c98e331a5f61c293b4b75694dd7363c8a5605d06887d3781ee522318bba9b16e466fe42f0 gifski-1.11.0.tar.gz "