[Slackbuilds-users] .info file variable expansion

B. Watson urchlay at slackware.uk
Sat Feb 25 05:03:28 UTC 2023


Maintainers, please don't use $PRGNAM, $VERSION, etc in .info file keys.

Examples:

DOWNLOAD="https://github.com/kovmir/$PRGNAM/archive/v$VERSION/$PRGNAM-$VERSION.tar.gz"

DOWNLOAD_x86_64="https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/$VERSION-1/LibreWolf.x86_64.AppImage"

I know the .info file looks like valid shell script code (and it
is), but it's also used by things that aren't shells, which don't do
variable substitution. Things like, the SBo database itself, and the
sbosrcarch downloader.

Because someone will ask... No, the guidelines on the website don't
say anything about this, but the examples clearly don't use it. It
never occurred to us that someone would do this, which is why there
hasn't been a written policy about it.


More information about the SlackBuilds-users mailing list