I wanted a way to easily download source files for quick editing. Sure abs and numerous AUR-helpers do it but I wanted a simple all-together program/script that could do it, and it turned out to be pretty easy. I wanted to be able to define the repository, and then the package and I did it!
pacpull extra/a52dec
aur/ can be used here as well as the other repositories. I set up /etc/abs.conf and $XDG_CONFIG_HOME/cower/config to use my pkgbuilds directory ~/.arch/pkgbuild (ABSROOT="/home/todd/.arch/pkgbuild", TargetDir = /home/todd/.arch/pkgbuild/aur respectively) so it looks pretty nice:
ls aur extra own testing
If the repository is wrong it will list the available repositories:
pacpull extar/a52dec Not a valid repository: core extra community multilib testing community-testing multilib-testing
And it’s nice and it’s basic:
Nice! Very handy little script. How about throwing it in the AUR? :)
Guess I could, will have to think about it a little more to see if I covered everything.
But you now about pacman’s “-w” switch?
pacman -Sw extra/a52dec – it will just download package to /var/cache/pacman/pkg/ without installation
pacpull is for downloading the source-files (that is, for building the package(s)) not the packages themselves.