Skip to content

Commit 6e4f6b3

Browse files
committed
build: add aur target
1 parent e99e6c8 commit 6e4f6b3

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
args: release --clean
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
AUR_KEY: ${{ secrets.AUR_KEY }}
3031

3132
release-darwin:
3233
needs: release-linux

.goreleaser-darwin.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ archives:
2525
{{- .Version }}_
2626
{{- .Os }}_
2727
{{- .Arch }}
28+
files:
29+
- LICENSE
30+
- README.md
2831

2932
release:
3033
github:

.goreleaser.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ archives:
3333
{{- .Os }}_
3434
{{- .Arch }}
3535
{{- if .Arm }}v{{ .Arm }}{{ end }}
36+
files:
37+
- LICENSE
38+
- README.md
3639

3740
checksum:
3841
name_template: "checksums.txt"
@@ -61,6 +64,27 @@ nfpms:
6164
- rpm
6265
- apk
6366

67+
aurs:
68+
- name: snitch-bin
69+
homepage: https://github.com/karol-broda/snitch
70+
description: a friendlier ss/netstat for humans
71+
maintainers:
72+
- "Karol Broda <me@karolbroda.com>"
73+
license: MIT
74+
private_key: "{{ .Env.AUR_KEY }}"
75+
git_url: "ssh://aur@aur.archlinux.org/snitch-bin.git"
76+
depends:
77+
- glibc
78+
provides:
79+
- snitch
80+
conflicts:
81+
- snitch
82+
package: |-
83+
install -Dm755 "./snitch" "${pkgdir}/usr/bin/snitch"
84+
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/snitch/LICENSE"
85+
commit_msg_template: "Update to {{ .Tag }}"
86+
skip_upload: auto
87+
6488
release:
6589
github:
6690
owner: karol-broda

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ nix profile install github:karol-broda/snitch
2828
# then use: inputs.snitch.packages.${system}.default
2929
```
3030

31+
### arch linux (aur)
32+
33+
```bash
34+
# with yay
35+
yay -S snitch-bin
36+
37+
# with paru
38+
paru -S snitch-bin
39+
```
40+
3141
### binary
3242

3343
download from [releases](https://github.com/karol-broda/snitch/releases):

0 commit comments

Comments
 (0)