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

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

wget -O sign.gpg 
pacman-key --add sign.gpg
pacman-key --lsign-key '{{$.SignMail}}'

{{- if gt (len $.Groups) 1 -}}
# {{ctx.Locale.Tr "packages.arch.pacman.repo.multi"  $.PackageDescriptor.Package.LowerName}}

{{end -}}
{{- $GroupSize := (len .Groups) -}}
{{-  range $i,$v :=  .Groups -}}
{{- if gt $i 0}}
{{end -}}{{- if gt $GroupSize 1 -}}
# {{ctx.Locale.Tr "packages.arch.pacman.repo.multi.item" .}}
{{end -}}
[{{$.PackageDescriptor.Owner.LowerName}}.{{$.RegistryHost}}]
SigLevel = Required
Server = 
{{end -}}
pacman -Sy {{.PackageDescriptor.Package.LowerName}}

{{ctx.Locale.Tr "packages.arch.version.properties"}}

{{if .PackageDescriptor.Metadata.Groups}} {{end}} {{if .PackageDescriptor.Metadata.Provides}} {{end}} {{if .PackageDescriptor.Metadata.Depends}} {{end}} {{if .PackageDescriptor.Metadata.OptDepends}} {{end}} {{if .PackageDescriptor.Metadata.MakeDepends}} {{end}} {{if .PackageDescriptor.Metadata.CheckDepends}} {{end}} {{if .PackageDescriptor.Metadata.Conflicts}} {{end}} {{if .PackageDescriptor.Metadata.Replaces}} {{end}} {{if .PackageDescriptor.Metadata.Backup}} {{end}}
{{ctx.Locale.Tr "packages.arch.version.description"}}
{{.PackageDescriptor.Metadata.Description}}
{{ctx.Locale.Tr "packages.arch.version.groups"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.Groups ", "}}
{{ctx.Locale.Tr "packages.arch.version.provides"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.Provides ", "}}
{{ctx.Locale.Tr "packages.arch.version.depends"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.Depends ", "}}
{{ctx.Locale.Tr "packages.arch.version.optdepends"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.OptDepends ", "}}
{{ctx.Locale.Tr "packages.arch.version.makedepends"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.MakeDepends ", "}}
{{ctx.Locale.Tr "packages.arch.version.checkdepends"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.CheckDepends ", "}}
{{ctx.Locale.Tr "packages.arch.version.conflicts"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.Conflicts ", "}}
{{ctx.Locale.Tr "packages.arch.version.replaces"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.Replaces ", "}}
{{ctx.Locale.Tr "packages.arch.version.backup"}}
{{StringUtils.Join $.PackageDescriptor.Metadata.Backup ", "}}
{{end}}