I am unable to update to the latest build (2.0.0) because of invalid sha256sums.
==> Making package: trashy 2.0.0-2 (Mon Feb 23 00:04:50 2026)
==> Retrieving sources...
-> Found trashy-2.0.0.tar.gz
-> Found Cargo.lock
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
trashy-2.0.0.tar.gz ... FAILED
Cargo.lock ... Passed
==> ERROR: One or more files did not pass the validity check!
-> error downloading sources: /home/rw/.cache/yay/trashy
context: exit status 1
:: (1/1) Parsing SRCINFO: trashy
==> Making package: trashy 2.0.0-2 (Mon Feb 23 00:04:51 2026)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found trashy-2.0.0.tar.gz
-> Found Cargo.lock
==> Validating source files with sha256sums...
trashy-2.0.0.tar.gz ... FAILED
Cargo.lock ... Passed
==> ERROR: One or more files did not pass the validity check!
-> error making: trashy-exit status 1
-> Failed to install the following packages. Manual intervention is required:
trashy - exit status 1
Why is the binary installed as trash? The README of trashy project states the command as trashy, it's also in the man page and help text of trash -h. This is very confusing.
It can't download sources for a few days.
curl: (56) Recv failure: Connection timed out
==> ERROR: Failure while downloading https://static.crates.io/crates/trashy/trashy-2.0.0.crate
Aborting...
Below is a patch to install the shell completions and manpage. Apply with git apply <patch_file>. Completions just don't seem to work for zsh currently, but that's a problem of trashy, not this package
diff --git a/PKGBUILD b/PKGBUILD
index c83b68d..91b0934 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,6 +27,11 @@ build() {
CARGO_TARGET_DIR='target' \
cargo build --frozen --release --all-features
+
+ target/release/trash completions zsh > _trash
+ target/release/trash completions bash > trash.bash
+ target/release/trash completions fish > trash.fish
+ target/release/trash manpage > trash.1
}
package() {
@@ -34,5 +39,10 @@ package() {
install -Dm0755 -t "$pkgdir/usr/bin" target/release/trash
+ install -Dm644 _trash "$pkgdir/usr/share/zsh/site-functions/_trash"
+ install -Dm644 trash.bash "$pkgdir/usr/share/bash-completion/completions/trash"
+ install -Dm644 trash.fish "$pkgdir/usr/share/fish/vendor_completions.d/trash.fish"
+ install -Dm644 trash.1 "$pkgdir/usr/share/man/man1/trash.1"
+
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE-{APACHE,MIT}
}