Skip to content

Commit

Permalink
ci(srcinfo.sh): new suggests array (pacstall#6309)
Browse files Browse the repository at this point in the history
Co-authored-by: ook37 <[email protected]>
  • Loading branch information
oklopfer and ook37 authored Aug 5, 2024
1 parent 8b79f6d commit 9e95809
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package-repository/
```

You can then use the `pacstall -A` command to add a repository to your `pacstallrepo` list.
Consult the manpage (run `man pacstall 8`) for more info.
Consult the manpage (run `man 8 pacstall` and `man 5 pacstall`) for more info.

## How to setup the environment for pacscript development

Expand Down
6 changes: 3 additions & 3 deletions scripts/srcinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ function srcinfo.write_details() {

function srcinfo.vars() {
local _distros _vars _archs _sums distros \
vars="depends makedepends optdepends pacdeps checkdepends provides conflicts breaks replaces enhances recommends makeconflicts checkconflicts source" \
vars="depends makedepends optdepends pacdeps checkdepends provides conflicts breaks replaces enhances recommends suggests makeconflicts checkconflicts source" \
sums="b2 sha512 sha384 sha256 sha224 sha1 md5"
allvars=(pkgname gives pkgver pkgrel epoch pkgdesc url priority)
allars=(arch depends makedepends checkdepends optdepends pacdeps conflicts makeconflicts checkconflicts breaks replaces provides enhances recommends incompatible compatible backup mask noextract nosubmodules license maintainer repology custom_fields source)
allars=(arch depends makedepends checkdepends optdepends pacdeps conflicts makeconflicts checkconflicts breaks replaces provides enhances recommends suggests incompatible compatible backup mask noextract nosubmodules license maintainer repology custom_fields source)
distros=$(awk '{sub(/\/.*/, "", $1); gsub(/:$/, "", $1); distros=distros $1 " "} END {sub(/ $/, "", distros); print distros}' distrolist)
_distros="{${distros// /,}}" _vars="{${vars// /,}}" _sums="{${sums// /,}}"
eval "allars+=(${_sums}sums ${_vars}_${_distros} ${_sums}sums_${_distros})"
Expand Down Expand Up @@ -238,7 +238,7 @@ function srcinfo.write_global() {
function srcinfo.write_package() {
local singlevalued=(gives pkgdesc url priority)
local multivalued=(arch license depends checkdepends optdepends pacdeps
provides checkconflicts conflicts breaks replaces enhances recommends backup repology)
provides checkconflicts conflicts breaks replaces enhances recommends suggests backup repology)
printf '%s = %s\n' 'pkgname' "$1"
srcinfo.write_details "$1"
}
Expand Down

0 comments on commit 9e95809

Please sign in to comment.