You are not logged in.

#1 2020-10-27 06:40:39

followait
Banned
Registered: 2019-11-01
Posts: 58

[SOLVED] PKGBUILD grammar

In AUR https://aur.archlinux.org/cgit/aur.git/ … f-ms-win10,
some lines like

source=(${_ttf_ms_win10[@]/#/file://}
               ${_ttf_ms_win10_japanese[@]/#/file://}
               ${_ttf_ms_win10_korean[@]/#/file://}

I've read https://wiki.archlinux.org/index.php/PKGBUILD, no answer.
Where can I find the doc for the grammar?

Thanks

Last edited by followait (2020-10-27 08:00:41)

Offline

#2 2020-10-27 07:28:07

loqs
Member
Registered: 2014-03-06
Posts: 19,042

Re: [SOLVED] PKGBUILD grammar

man bash

As all PKGBUILDs are bash scripts.
${_ttf_ms_win10[@]/#/file://} appends file:// to the start of each entry in the array _ttf_ms_win10 by substituting file:// for an empty match at the start of the string.

Offline

#3 2020-10-27 08:01:54

followait
Banned
Registered: 2019-11-01
Posts: 58

Re: [SOLVED] PKGBUILD grammar

loqs wrote:
man bash

As all PKGBUILDs are bash scripts.
${_ttf_ms_win10[@]/#/file://} appends file:// to the start of each entry in the array _ttf_ms_win10 by substituting file:// for an empty match at the start of the string.

Alright, thanks.

Offline

Board footer

Powered by FluxBB