Package Details: trashy 2.0.0-1

Git Clone URL: https://aur.archlinux.org/trashy.git (read-only, click to copy)
Package Base: trashy
Description: a cli system trash manager, alternative to rm and trash-cli
Upstream URL: https://github.com/oberblastmeister/trashy
Licenses: MIT, Apache
Conflicts: trash-cli
Submitter: KokaKiwi
Maintainer: KokaKiwi
Last Packager: KokaKiwi
Votes: 7
Popularity: 0.006172
First Submitted: 2022-08-19 15:29 (UTC)
Last Updated: 2022-10-01 11:40 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

Aftermath commented on 2023-09-10 13:53 (UTC)

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...

RubixDev commented on 2022-08-31 15:28 (UTC)

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}
 }