# Maintainer: Hugo Osvaldo Barrera pkgname=shotman pkgver=0.4.3 pkgrel=2 pkgdesc="Uncompromising screenshot GUI for Wayland" url="https://git.sr.ht/~whynothugo/shotman" # s390x: nix/libc crate arch="all !s390x" license="ISC" depends="slurp" makedepends="cargo libxkbcommon-dev scdoc cargo-auditable" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="shotman-$pkgver.tar.gz::https://git.sr.ht/~whynothugo/shotman/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-v$pkgver" options="net" # fetch dependencies prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { export SHOTMAN_VERSION=$pkgver cargo auditable build --release --frozen scdoc < shotman.1.scd > shotman.1 ./target/release/shotman_completions bash > $pkgname.bash ./target/release/shotman_completions fish > $pkgname.fish ./target/release/shotman_completions zsh > $pkgname.zsh } check() { cargo test --frozen } package() { install -Dm 0755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname" install -Dm 0644 shotman.1 "$pkgdir/usr/share/man/man1/$pkgname.1" install -Dm644 $pkgname.bash \ "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -Dm644 $pkgname.fish \ "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish install -Dm644 $pkgname.zsh \ "$pkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums=" 3bbe6a2f76281ced769156568a32646659681b450d98c3848a0c523918aef57d3db4d9e19c3a08ee8d4684786dacebe8be9a42e0e9f2d2e1ad7d2f6ff41c4a1c shotman-0.4.3.tar.gz "