mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-02 01:11:31 +01:00
this is a million times faster new only in rust 1.68, and fails on older versions, but we have only latest in aports and don't support anything else, so it's okay.
31 lines
862 B
Plaintext
31 lines
862 B
Plaintext
# Contributor: Adam Jensen <adam@acj.sh>
|
|
# Maintainer: Adam Jensen <adam@acj.sh>
|
|
pkgname=dssim
|
|
pkgver=3.2.3
|
|
pkgrel=0
|
|
pkgdesc="Tool for image similarity comparison, simulating human perception"
|
|
url="https://kornel.ski/dssim"
|
|
arch="all !s390x !riscv64" # limited by rust/cargo
|
|
arch="$arch !ppc64le !armv7 !armhf" # Tries to compile mozjpeg-sys with 'with_simd'
|
|
license="AGPL-3.0-only"
|
|
makedepends="cargo"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/kornelski/dssim/archive/$pkgver.tar.gz"
|
|
|
|
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
|
|
|
build() {
|
|
cargo build --release
|
|
}
|
|
|
|
check() {
|
|
cargo test --release
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 "target/release/dssim" "$pkgdir/usr/bin/dssim"
|
|
}
|
|
|
|
sha512sums="
|
|
fc95c3c094874cba9f6092629001d266e705a2353e9b723c89ba44e6d5bcb77e5a02619312e474ba9aa7ca3ec9a88f1b3ee640eb2a3e18e03314e6611826fbb9 dssim-3.2.3.tar.gz
|
|
"
|