aboutsummaryrefslogtreecommitdiffstats
path: root/community/dssim/APKBUILD
blob: b3297f40f118db07a7581a3f38e9f0d63e45458e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Adam Jensen <adam@acj.sh>
# Maintainer: Adam Jensen <adam@acj.sh>
pkgname=dssim
pkgver=3.3.1
pkgrel=0
pkgdesc="Tool for image similarity comparison, simulating human perception"
url="https://kornel.ski/dssim"
# arm* / ppc64le: Tries to compile mozjpeg-sys with 'with_simd'
# s390x: incompatible with load_image crate
arch="all !s390x !ppc64le !armv7 !armhf"
license="AGPL-3.0-only"
makedepends="cargo cargo-auditable"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/kornelski/dssim/archive/$pkgver.tar.gz"

build() {
	cargo auditable build --release
}

check() {
	cargo test --release
}

package() {
	install -Dm755 "target/release/dssim" "$pkgdir/usr/bin/dssim"
}

sha512sums="
1f114575d4fdc0b580b01334266ba833aeaa1aff57a8c17c9773afda318793c88950662a3c15264a2b34e193089b7805017b1261ed13209097d4ebb043383f89  dssim-3.3.1.tar.gz
"