# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=git-warp-time pkgver=0.4.11 pkgrel=0 pkgdesc="Reset timestamps of Git repository files to the time of the last modifying commit" url="https://github.com/alerque/git-warp-time" license="GPL-3.0-only" arch="all !s390x !riscv64" # blocked by rust/cargo makedepends="cargo cargo-auditable" subpackages="$pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion" source="https://github.com/alerque/git-warp-time/archive/v$pkgver/git-warp-time-$pkgver.tar.gz" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release } check() { cargo test --frozen } package() { install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/ # shell completions find target/release -name $pkgname.bash \ -exec install -Dm644 {} "$pkgdir"/usr/share/bash-completion/completions/$pkgname \; find target/release -name $pkgname.fish \ -exec install -Dm644 {} "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish \; find target/release -name _$pkgname \ -exec install -Dm644 {} "$pkgdir"/usr/share/zsh/site-functions/_$pkgname \; } sha512sums=" 0c9b763a3a6f6822840da8f48f0a0eb53327927e88f12d50cb141b29402023727974e4cb8b95ce609d1d9d95ed85e4831f97d28aba78f926aa18f23de499f720 git-warp-time-0.4.11.tar.gz "