Even supplied with a correct package name artixpkg git clone bash
will fail as it's using ssh and a normal user lacks authorisation.
As mentioned above you can git clone https://gitea.artixlinux.org/packages/bash
Or you can create a bash function for brevity if desired.
in ~/.bashrc
getpkgbuild() (
git clone https://gitea.artixlinux.org/packages/$1
)
$ getpkgbuild bash
Cloning into 'bash'...
remote: Enumerating objects: 222, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 222 (delta 0), reused 0 (delta 0), pack-reused 218
Receiving objects: 100% (222/222), 35.54 KiB | 35.54 MiB/s, done.
Resolving deltas: 100% (97/97), done.
That will work for most packages except the few with names that differ between the repo and gitea.
eg. pkgbase=libxml++ is libxmlplusplus on gitea
Edit: For those of us who use fish (I just decided to implement this for myself)
In ~/.config/fish/config.fish
function getpkg
git clone https://gitea.artixlinux.org/packages/$argv[1]
end