2022-09-01 08:52:46 +00:00
|
|
|
before:
|
|
|
|
hooks:
|
2022-11-18 05:27:36 +00:00
|
|
|
- go generate
|
2022-09-01 08:52:46 +00:00
|
|
|
- go mod tidy
|
|
|
|
builds:
|
|
|
|
- id: itd
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
binary: itd
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- 386
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
2022-11-25 00:16:25 +00:00
|
|
|
goarm:
|
|
|
|
- 7
|
2022-09-01 08:52:46 +00:00
|
|
|
- id: itctl
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
main: ./cmd/itctl
|
|
|
|
binary: itctl
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- 386
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
2022-11-25 00:16:25 +00:00
|
|
|
goarm:
|
|
|
|
- 7
|
2022-09-01 08:52:46 +00:00
|
|
|
archives:
|
2022-11-25 00:16:25 +00:00
|
|
|
- name_template: >-
|
|
|
|
{{- .ProjectName }}-{{.Version}}-{{.Os}}-
|
|
|
|
{{- if eq .Arch "386" }}i386
|
|
|
|
{{- else if eq .Arch "amd64" }}x86_64
|
|
|
|
{{- else if eq .Arch "arm64" }}aarch64
|
|
|
|
{{- else }}{{.Arch}}
|
|
|
|
{{- end }}
|
2022-09-01 08:52:46 +00:00
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
|
|
|
- itd.toml
|
|
|
|
- itd.service
|
|
|
|
nfpms:
|
|
|
|
- id: itd
|
2022-11-25 00:16:25 +00:00
|
|
|
file_name_template: >-
|
|
|
|
{{- .PackageName }}-{{.Version}}-{{.Os}}-
|
|
|
|
{{- if eq .Arch "386" }}i386
|
|
|
|
{{- else if eq .Arch "amd64" }}x86_64
|
|
|
|
{{- else if eq .Arch "arm64" }}aarch64
|
|
|
|
{{- else }}{{.Arch}}
|
|
|
|
{{- end }}
|
2022-09-01 08:52:46 +00:00
|
|
|
description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch"
|
|
|
|
homepage: 'https://gitea.arsenm.dev/Arsen6331/itd'
|
|
|
|
maintainer: 'Arsen Musyaelyan <arsen@arsenm.dev>'
|
|
|
|
license: GPLv3
|
|
|
|
formats:
|
|
|
|
- apk
|
|
|
|
- deb
|
|
|
|
- rpm
|
2022-11-25 00:23:03 +00:00
|
|
|
- archlinux
|
2022-09-01 08:52:46 +00:00
|
|
|
dependencies:
|
|
|
|
- dbus
|
|
|
|
- bluez
|
|
|
|
contents:
|
|
|
|
- src: itd.toml
|
|
|
|
dst: /etc/itd.toml
|
|
|
|
type: "config|noreplace"
|
|
|
|
- src: itd.service
|
|
|
|
dst: /usr/lib/systemd/user/itd.service
|
2022-11-25 00:20:11 +00:00
|
|
|
file_info:
|
|
|
|
mode: 0755
|
2022-09-01 08:52:46 +00:00
|
|
|
aurs:
|
|
|
|
- name: itd-bin
|
|
|
|
homepage: 'https://gitea.arsenm.dev/Arsen6331/itd'
|
|
|
|
description: "Companion daemon for the InfiniTime firmware on the PineTime smartwatch"
|
|
|
|
maintainers:
|
|
|
|
- 'Arsen Musyaelyan <arsen@arsenm.dev>'
|
|
|
|
license: GPLv3
|
|
|
|
private_key: '{{ .Env.AUR_KEY }}'
|
|
|
|
git_url: 'ssh://aur@aur.archlinux.org/itd-bin.git'
|
|
|
|
provides:
|
|
|
|
- itd
|
|
|
|
- itctl
|
|
|
|
conflicts:
|
|
|
|
- itd
|
|
|
|
- itctl
|
|
|
|
depends:
|
|
|
|
- dbus
|
|
|
|
- bluez
|
|
|
|
package: |-
|
|
|
|
# binaries
|
2022-11-25 00:24:45 +00:00
|
|
|
install -Dm755 ./itd "${pkgdir}/usr/bin/itd"
|
|
|
|
install -Dm755 ./itctl "${pkgdir}/usr/bin/itctl"
|
2022-09-01 08:52:46 +00:00
|
|
|
|
|
|
|
# service
|
|
|
|
install -Dm644 "./itd.service" ${pkgdir}/usr/lib/systemd/user/itd.service
|
|
|
|
|
|
|
|
# config
|
|
|
|
install -Dm644 "./itd.toml" ${pkgdir}/etc/itd.toml
|
|
|
|
|
|
|
|
# license
|
|
|
|
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/itd/LICENSE"
|
|
|
|
release:
|
|
|
|
gitea:
|
|
|
|
owner: Arsen6331
|
|
|
|
name: itd
|
|
|
|
gitea_urls:
|
|
|
|
api: 'https://gitea.arsenm.dev/api/v1/'
|
|
|
|
download: 'https://gitea.arsenm.dev'
|
|
|
|
skip_tls_verify: false
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
|
|
name_template: "{{ incpatch .Version }}-next"
|
|
|
|
changelog:
|
|
|
|
sort: asc
|