1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00

feat: make goreleaser.deb pass lintian validations (#2883)

* feat: make pkg pass lintian validations

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: lintian issues

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: bash completions

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2022-02-05 18:02:06 -03:00 committed by GitHub
parent e3997f8802
commit 750d520638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 5 deletions

View File

@ -210,19 +210,41 @@ nfpms:
- file_name_template: '{{ .ConventionalFileName }}'
id: packages
homepage: https://goreleaser.com
description: Deliver Go binaries as fast and easily as possible
maintainer: Carlos Alexandro Becker <root@carlosbecker.com>
description: |-
Deliver Go binaries as fast and easily as possible.
GoReleaser allows you to release easily build, package, publish and
announce to several places at one go.
maintainer: Carlos Alexandro Becker <carlos@becker.software>
license: MIT
vendor: GoReleaser
bindir: /usr/bin
section: utils
contents:
- src: ./completions/goreleaser.bash
dst: /etc/bash_completion.d/goreleaser
dst: /usr/share/bash-completion/completions/goreleaser
file_info:
mode: 0644
- src: ./completions/goreleaser.fish
dst: /usr/share/fish/completions/goreleaser.fish
file_info:
mode: 0644
- src: ./completions/goreleaser.zsh
dst: /usr/local/share/zsh/site-functions/_goreleaser
dst: /usr/share/zsh/vendor-completions/_goreleaser
file_info:
mode: 0644
- src: ./manpages/goreleaser.1.gz
dst: /usr/share/man/man1/goreleaser.1.gz
file_info:
mode: 0644
- src: ./LICENSE.md
dst: /usr/share/doc/goreleaser/copyright
file_info:
mode: 0644
- src: .lintian-overrides
dst: ./usr/share/lintian/overrides/goreleaser
packager: deb
file_info:
mode: 0644
formats:
- apk
- deb

2
.lintian-overrides Normal file
View File

@ -0,0 +1,2 @@
goreleaser: statically-linked-binary
goreleaser: changelog-file-missing-in-native-package

View File

@ -2,4 +2,4 @@
set -e
rm -rf manpages
mkdir manpages
go run . man | gzip -c >manpages/goreleaser.1.gz
go run . man | gzip -c -9 >manpages/goreleaser.1.gz