# Contributor: Sam Nystrom # Maintainer: Sam Nystrom pkgname=lutgen pkgver=0.8.3 pkgrel=0 pkgdesc="Blazingly fast interpolated LUT generator and applicator for arbitrary and popular color palettes" url="https://github.com/ozwaldorf/lutgen-rs" arch="all" license="MIT" makedepends="cargo cargo-auditable" subpackages=" $pkgname-bash-completion $pkgname-zsh-completion $pkgname-fish-completion " source="$pkgname-$pkgver.tar.gz::https://github.com/ozwaldorf/lutgen-rs/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/lutgen-rs-$pkgver" options="net" # cargo fetch prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen mkdir -p completions ./target/release/lutgen completions bash > completions/lutgen ./target/release/lutgen completions zsh > completions/_lutgen ./target/release/lutgen completions fish > completions/lutgen.fish } check() { cargo test --frozen } package() { install -Dm755 target/release/lutgen "$pkgdir"/usr/bin/lutgen install -Dm644 completions/lutgen "$pkgdir"/usr/share/bash-completion/completions/lutgen install -Dm644 completions/_lutgen "$pkgdir"/usr/share/zsh/site-functions/_lutgen install -Dm644 completions/lutgen.fish "$pkgdir"/usr/share/fish/vendor_completions.d/lutgen.fish } sha512sums=" 12138156afdc1b68984a890b71bedf429f35b7fca68ae611710a3e9352cb46ad87be13f61d17b1ec873b4635d997acaf0c470ae87a6905b19ba275b2a7fd8412 lutgen-0.8.3.tar.gz "