swindlesmccoop / aureate

An AUR helper written in C
https://youtu.be/lamPvoJxTsM
17 stars 5 forks source link

feature: local aur #10

Open lokrok opened 4 months ago

lokrok commented 4 months ago

to extend off #4 I have a lot of local PKGBUILDs I use that aren't on the AUR or are edits. For stable version ones, this is fine since I have to edit them anyway, but I have to just constantly check if there are updates for git PKGBUILDs. It would be really nice, convenient, and a big weight off my back from digging through soylang helpers if there was a way to define a "local aur" to check and update from. something as simple as a folder to throw PKGBUILDs of your own in and have it sync with them would be nice.

thanks

swindlesmccoop commented 4 months ago

Do other AUR helpers have this feature? I'll chefk it out if so. Otherwise you'd probably be better served if you just made a script with a for loop that iterated through every directory in your local repository and ran makepkg -si on all of them. Unless I'm misunderstanding your request.

lokrok commented 4 months ago

Most of them do not, which is why I am annoyed with them. A 'for loop' as you described would be a waste of time and inefficient for the simple task of checking if there are updates. Plus, makepkg -si would still reinstall the package regardless if it is the latest version or not.

There is a legitimate use case for this that isn't just my own. There are plenty of people who have their own varients of git AUR PKGBUILDs for their specific needs. I am not sure how they all manage them but having an option to define a "local AUR" that is checked for updates just as easily as the existing AUR way would save so much time and energy.

swindlesmccoop commented 4 months ago

My idea for checking if a PKGBUILD got an update was to just get an md5 of what is currently stored on machine vs what the remote is serving, however if there is only one file then I'd probably have to keep some sort of db, which I can check out. This is kind of an esoteric feature however so I can't guarantee I'll work on it any time super soon but I'll draft it up.