paru icon indicating copy to clipboard operation
paru copied to clipboard

Allow period ('.') character in name of custom PKGBUILD packages

Open jasyip opened this issue 1 year ago • 3 comments

Affected Version

paru -V paru v2.0.0 - libalpm v13.0.2

Description

The new feature of specifying custom PKGBUILDs in paru.conf does not allow package names to have a period in them, even if your package name needs a period. There are many AUR packages whose names have periods in them.

Output

paru.conf:

[whisper.cpp-clblast]
Path = ~/aur/whisper.cpp-clblast

Command:

~ paru
error: section can not be called whisper.cpp-clblast

jasyip avatar Nov 27 '23 15:11 jasyip

The error is the repo name [whisper.cpp-clblast]. You can name this bit whatever you want despite the names of the packages in the repo. Period is currently reserved as it may be used in future to restrict options to packages or scopes.

such as [options.spotify] or [env.spotify].

Morganamilo avatar Nov 27 '23 20:11 Morganamilo

How about representing a literal period with %2E in the section name?

jasyip avatar Nov 28 '23 18:11 jasyip

not sure why we'd use url encoding. The repo name is basically just visual so I'd just use a - personally.

Morganamilo avatar Nov 28 '23 18:11 Morganamilo