Talk:PKGBUILD

From ArchWiki
Jump to: navigation, search

array writing style

When talking about arrays, should we separate them from variables with: array=(), e.g. makedepends, source_x86_64 vs. makedepends=(), source_x86_64=()? --Dettalk 06:52, 6 February 2015 (UTC)

Judging from [1] it should be the former, but does this mean if all arrays were converted to the name=() style, then it would be fine? —Dettalk 21:58, 6 February 2015 (UTC)
It would be fine consistency-wise, but I don't see the need to do it: it's not that there can be a non-array variable with the same name of an array one, so adding =() would only be redundant. I would consider instead using the first instances of variables in each section as anchors for links to other sections, e.g. #source, but I'd like to hear other opinions about this possibility. — Kynikos (talk) 04:49, 7 February 2015 (UTC)

relative path in the local source files

Phrase "These paths are resolved relative to the directory of the PKGBUILD." is confusing because there is no possible relative paths, just files placed in the same directory as PKGBUILD. According to makepkg script source and man PKGBUILD: "Source files must either reside in the same directory as the PKGBUILD, or be a fully-qualified URL..." Maybe it will be better to remove this phrase?

—This unsigned comment is by Validname (talk) 08:29, 27 October 2015‎. Please sign your posts with ~~~~!

Uh, true, I've just tested it, you can update the article. — Kynikos (talk) 07:54, 28 October 2015 (UTC)