2023-06-20 20:08:48 +00:00
{{ if eq .PackageDescriptor .Package .Type "arch" }}
<h4 class="ui top attached header"> {{ .locale .Tr "packages.installation" }} </h4>
<div class="ui attached segment">
<div class="ui form">
<div class="field">
<label> {{ svg "octicon-note" }} {{ .locale .Tr "packages.arch.pacmanconf" }} </label>
2023-07-24 10:33:45 +00:00
<div class="markup"><pre class="code-block"><code>[ {{ .PackageDescriptor .Owner .LowerName }} . {{ .RegistryHost }} ]
2023-07-24 09:07:53 +00:00
SigLevel = Optional TrustAll
2023-07-27 10:55:09 +00:00
Server = <gitea-origin-url data-url=" {{ AppSubUrl }} /api/packages/ {{ .PackageDescriptor .Owner .Name }} /arch/$distribution/$arch"></gitea-origin-url></code></pre></div>
2023-06-20 20:08:48 +00:00
</div>
<div class="field">
<label> {{ svg "octicon-clock" }} {{ .locale .Tr "packages.arch.pacmansync" }} </label>
2023-06-24 15:08:18 +00:00
<div class="markup"><pre class="code-block"><code>pacman -Sy {{ .PackageDescriptor .Package .LowerName }} </code></pre></div>
2023-06-20 20:08:48 +00:00
</div>
<div class="field">
2023-07-26 13:31:00 +00:00
<label> {{ .locale .Tr "packages.arch.documentation" "https://docs.gitea.io/en-us/usage/packages/arch/" | Safe }} </label>
2023-06-20 20:08:48 +00:00
</div>
</div>
</div>
<h4 class="ui top attached header"> {{ .locale .Tr "packages.arch.properties" }} </h4>
<div class="ui attached segment">
<table class="ui single line very basic table">
<tbody>
<tr>
<td class="collapsing"><h5>Description</h5></td>
<td> {{ .PackageDescriptor .Metadata .Description }} </td>
</tr>
2023-06-22 08:43:30 +00:00
2023-06-20 20:08:48 +00:00
<tr>
<td class="collapsing"><h5>Packager</h5></td>
<td> {{ .PackageDescriptor .Metadata .Packager }} </td>
</tr>
2023-07-03 13:39:45 +00:00
<tr>
<td class="collapsing"><h5>Compressed size</h5></td>
<td> {{ FileSize .PackageDescriptor .Metadata .CompressedSize }} </td>
</tr>
<tr>
<td class="collapsing"><h5>Installed size</h5></td>
<td> {{ FileSize .PackageDescriptor .Metadata .InstalledSize }} </td>
</tr>
<tr>
<td class="collapsing"><h5>Build date</h5></td>
<td> {{ DateTime "short" .PackageDescriptor .Metadata .BuildDate }} </td>
</tr>
2023-07-10 17:50:44 +00:00
2023-07-26 15:42:00 +00:00
{{ if .PackageDescriptor .Metadata .Provides }}
2023-06-20 20:08:48 +00:00
<tr>
<td class="collapsing"><h5>Provides</h5></td>
2023-07-26 15:42:00 +00:00
<td> {{ StringUtils .Join $ .PackageDescriptor .Metadata .Provides " " }} </td>
2023-06-20 20:08:48 +00:00
</tr>
{{ end }}
2023-07-26 15:42:00 +00:00
{{ if .PackageDescriptor .Metadata .Arch }}
2023-06-20 20:08:48 +00:00
<tr>
<td class="collapsing"><h5>Architecture</h5></td>
2023-07-26 15:42:00 +00:00
<td> {{ StringUtils .Join $ .PackageDescriptor .Metadata .Arch " " }} </td>
2023-06-20 20:08:48 +00:00
</tr>
{{ end }}
2023-07-26 15:42:00 +00:00
{{ if .PackageDescriptor .Metadata .Depends }}
2023-06-20 20:08:48 +00:00
<tr>
<td class="collapsing"><h5>Depends</h5></td>
2023-07-26 15:42:00 +00:00
<td> {{ StringUtils .Join $ .PackageDescriptor .Metadata .Depends " " }} </td>
2023-06-20 20:08:48 +00:00
</tr>
{{ end }}
2023-07-26 15:42:00 +00:00
{{ if .PackageDescriptor .Metadata .OptDepends }}
2023-06-20 20:08:48 +00:00
<tr>
<td class="collapsing"><h5>Optional depends</h5></td>
2023-07-26 15:42:00 +00:00
<td> {{ StringUtils .Join $ .PackageDescriptor .Metadata .OptDepends " " }} </td>
2023-06-20 20:08:48 +00:00
</tr>
{{ end }}
2023-07-26 15:42:00 +00:00
{{ if .PackageDescriptor .Metadata .MakeDepends }}
2023-06-20 20:08:48 +00:00
<tr>
<td class="collapsing"><h5>Make depends</h5></td>
2023-07-26 15:42:00 +00:00
<td> {{ StringUtils .Join $ .PackageDescriptor .Metadata .MakeDepends " " }} </td>
2023-06-20 20:08:48 +00:00
</tr>
{{ end }}
2023-07-26 15:42:00 +00:00
{{ if .PackageDescriptor .Metadata .CheckDepends }}
2023-06-20 20:08:48 +00:00
<tr>
<td class="collapsing"><h5>Check depends</h5></td>
2023-07-26 15:42:00 +00:00
<td> {{ StringUtils .Join $ .PackageDescriptor .Metadata .CheckDepends " " }} </td>
2023-06-20 20:08:48 +00:00
</tr>
{{ end }}
2023-07-26 15:42:00 +00:00
{{ if .PackageDescriptor .Metadata .Backup }}
2023-06-20 20:08:48 +00:00
<tr>
<td class="collapsing"><h5>Backup file</h5></td>
2023-07-26 15:42:00 +00:00
<td> {{ StringUtils .Join $ .PackageDescriptor .Metadata .Backup " " }} </td>
2023-06-20 20:08:48 +00:00
</tr>
{{ end }}
2023-07-23 17:18:26 +00:00
2023-07-26 15:42:00 +00:00
{{ if .PackageDescriptor .Metadata .DistroArch }}
2023-07-23 17:18:26 +00:00
<tr>
2023-07-26 15:42:00 +00:00
<td class="collapsing"><h5>Available for</h5></td>
<td> {{ StringUtils .Join $ .PackageDescriptor .Metadata .DistroArch " " }} </td>
2023-07-23 17:18:26 +00:00
</tr>
{{ end }}
2023-06-20 20:08:48 +00:00
</tbody>
</table>
</div>
{{ end }}