# Contributor: Maxim Karasev # Maintainer: Maxim Karasev pkgname=oxipng pkgver=8.0.0 pkgrel=1 pkgdesc="Multithreaded PNG optimizer written in Rust" url="https://github.com/shssoichiro/oxipng" # armhf: does not build here, and useless arch="all !armhf" license="MIT" makedepends="cargo cargo-auditable" source="https://github.com/shssoichiro/oxipng/archive/v$pkgver/oxipng-$pkgver.tar.gz" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen } check() { cargo test --frozen } package() { install -Dm755 target/release/oxipng -t "$pkgdir"/usr/bin/ } sha512sums=" e8a45082f65c392d7c4caff10911e52958c671e86850681c281aaaadd24f50a153919cf714626326028769f3627b1664c420ba17cfc8fec86d82a8e81a7ab9ca oxipng-8.0.0.tar.gz "