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

{{ctx.Locale.Tr "packages.installation"}}

sudo curl  -o /etc/apt/keyrings/forgejo-{{$.PackageDescriptor.Owner.Name}}.asc
echo "deb [signed-by=/etc/apt/keyrings/forgejo-{{$.PackageDescriptor.Owner.Name}}.asc]  $distribution $component" | sudo tee -a /etc/apt/sources.list.d/forgejo.list
sudo apt update

{{ctx.Locale.Tr "packages.debian.registry.info" | Safe}}

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

{{ctx.Locale.Tr "packages.debian.repository"}}

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

{{ctx.Locale.Tr "packages.about"}}

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

{{ctx.Locale.Tr "packages.dependencies"}}

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