ALR/.goreleaser.yaml

99 lines
2.5 KiB
YAML
Raw Normal View History

2024-01-22 10:36:06 +00:00
before:
hooks:
- go mod tidy
builds:
2024-05-05 10:32:08 +00:00
- id: alr
2024-01-22 10:36:06 +00:00
env:
- CGO_ENABLED=0
2024-05-05 10:32:08 +00:00
binary: alr
2024-01-22 10:36:06 +00:00
ldflags:
- -X gitea.plemya-x.ru/xpamych/ALR/src/branch/master/internal/config.Version={{.Version}}
2024-01-22 10:36:06 +00:00
goos:
- linux
goarch:
- amd64
- 386
- arm64
- arm
- riscv64
archives:
- name_template: >-
{{- .ProjectName}}-
{{- .Version}}-
{{- .Os}}-
{{- if .Arch | eq "amd64"}}x86_64
{{- else if .Arch | eq "386"}}i386
{{- else if .Arch | eq "arm64"}}aarch64
{{- else }}{{ .Arch }}{{ end -}}
files:
- scripts/completion/*
nfpms:
2024-05-05 10:32:08 +00:00
- id: alr
2024-01-22 10:36:06 +00:00
package_name: linux-user-repository
file_name_template: >-
{{- .PackageName}}-
{{- .Version}}-
{{- .Os}}-
{{- if .Arch | eq "amd64"}}x86_64
{{- else if .Arch | eq "386"}}i386
{{- else if .Arch | eq "arm64"}}aarch64
{{- else }}{{ .Arch }}{{ end -}}
2024-05-05 10:32:08 +00:00
description: "Any Linux Repository"
homepage: 'https://gitea.plemya-x.ru/xpamych/ALR'
2024-05-05 10:32:08 +00:00
maintainer: 'Евгений Храмов <xpamych@yandex.ru>'
2024-01-22 10:36:06 +00:00
license: GPLv3
formats:
- apk
- deb
- rpm
- archlinux
provides:
- linux-user-repository
conflicts:
- linux-user-repository
recommends:
- aria2
contents:
- src: scripts/completion/bash
2024-05-05 10:32:08 +00:00
dst: /usr/share/bash-completion/completions/alr
2024-01-22 10:36:06 +00:00
- src: scripts/completion/zsh
2024-05-05 10:32:08 +00:00
dst: /usr/share/zsh/site-functions/_alr
2024-01-22 10:36:06 +00:00
aurs:
- name: linux-user-repository-bin
homepage: 'https://gitea.plemya-x.ru/xpamych/ALR'
2024-05-05 10:32:08 +00:00
description: "Any Linux Repository"
2024-01-22 10:36:06 +00:00
maintainers:
2024-05-05 10:32:08 +00:00
- 'Евгений Храмов <xpamych@yandex.ru>'
2024-01-22 10:36:06 +00:00
license: GPLv3
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://aur@aur.archlinux.org/linux-user-repository-bin.git'
provides:
2024-05-07 13:42:10 +00:00
- alr
2024-01-22 10:36:06 +00:00
conflicts:
2024-05-07 13:42:10 +00:00
- alr
2024-01-22 10:36:06 +00:00
depends:
- sudo
- pacman
optdepends:
- 'aria2: for downloading torrent sources'
package: |-
# binaries
2024-05-05 10:32:08 +00:00
install -Dm755 ./alr "${pkgdir}/usr/bin/alr"
2024-01-22 10:36:06 +00:00
# completions
2024-05-05 10:32:08 +00:00
install -Dm755 ./scripts/completion/bash ${pkgdir}/usr/share/bash-completion/completions/alr
install -Dm755 ./scripts/completion/zsh ${pkgdir}/usr/share/zsh/site-functions/_alr
2024-01-22 10:36:06 +00:00
release:
gitea:
2024-05-05 10:32:08 +00:00
owner: alr
name: alr
2024-01-22 10:36:06 +00:00
gitea_urls:
api: 'https://gitea.elara.ws/api/v1/'
download: 'https://gitea.elara.ws'
skip_tls_verify: false
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc