{{if eq .PackageDescriptor.Package.Type "debian"}}

{{.locale.Tr "packages.installation"}}

sudo curl  -o /etc/apt/trusted.gpg.d/gitea-{{$.PackageDescriptor.Owner.Name}}.asc
echo "deb  <distribution> <component>" | sudo tee -a /etc/apt/sources.list.d/gitea.list
sudo apt update

{{.locale.Tr "packages.debian.registry.info" | Safe}}

sudo apt install {{$.PackageDescriptor.Package.Name}}={{$.PackageDescriptor.Version.Version}}

{{.locale.Tr "packages.debian.repository"}}

{{.locale.Tr "packages.debian.repository.distributions"}}
{{Join .Distributions ", "}}
{{.locale.Tr "packages.debian.repository.components"}}
{{Join .Components ", "}}
{{.locale.Tr "packages.debian.repository.architectures"}}
{{Join .Architectures ", "}}
{{if .PackageDescriptor.Metadata.Description}}

{{.locale.Tr "packages.about"}}

{{.PackageDescriptor.Metadata.Description}}
{{end}} {{if .PackageDescriptor.Metadata.Dependencies}}

{{.locale.Tr "packages.dependencies"}}

{{range .PackageDescriptor.Metadata.Dependencies}} {{end}}
{{.}}
{{end}} {{end}}