Skip to content

Commit

Permalink
Add AUR support
Browse files Browse the repository at this point in the history
  • Loading branch information
umlx5h committed Jan 21, 2024
1 parent a973172 commit 915de06
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
23 changes: 22 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,26 @@ brews:
name: homebrew-tap
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
homepage: "https://github.com/umlx5h/gtrash"
description: "Trash CLI Manager written in Go"
description: "A Trash CLI manager written in Go"
license: "MIT"

aurs:
-
name: gtrash-bin
homepage: "https://github.com/umlx5h/gtrash"
description: "A Trash CLI manager written in Go"
license: "MIT"
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://aur@aur.archlinux.org/gtrash-bin.git'
package: |-
# bin
install -Dm755 "./gtrash" "${pkgdir}/usr/bin/gtrash"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
./gtrash completion bash | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/gtrash"
./gtrash completion zsh | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_gtrash"
./gtrash completion fish | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/gtrash.fish"
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# gtrash

<h5 align="center">A Modern Trash CLI manager for Linux system trash written in Go</h5>

![demo](doc/image/demo.gif)

`gtrash` is a trash CLI manager that fully complies with the [FreeDesktop.org specification](https://specifications.freedesktop.org/trash-spec/trashspec-latest.html).
Expand Down Expand Up @@ -72,7 +70,15 @@ chmod a+x ./gtrash
sudo mv ./gtrash /usr/local/bin/gtrash
```

### Homebrew
### AUR (Arch User Repository)

with any AUR helpers
```
yay -S gtrash-bin
paru -S gtrash-bin
```

### Homebrew (macOS)

```
brew install umlx5h/tap/gtrash
Expand Down

0 comments on commit 915de06

Please sign in to comment.