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

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

sudo curl  -o /etc/apt/trusted.gpg.d/forgejo-{{$.PackageDescriptor.Owner.Name}}.asc
echo "deb  $distribution $component" | sudo tee -a /etc/apt/sources.list.d/forgejo.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"}}
{{StringUtils.Join .Distributions ", "}}
{{.locale.Tr "packages.debian.repository.components"}}
{{StringUtils.Join .Components ", "}}
{{.locale.Tr "packages.debian.repository.architectures"}}
{{StringUtils.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}}