Remote Dependency Fetching
edogawaconan came to me today with a rather pitiful story. While Australian internet is notoriously fucked, it does maintain fairly OK speed, at an average of 1.5mbit or so. Indonesia lacks our silly bandwidth allocation but really lacks in the speed dept, to the point where downloading 35MB of makedeps or deps for a PKGBUILD takes forever. I think part of the problem is because Linux is generally faster than Windows, one tends to notice the internet being slower than the rest of the system.
So to combat this, I wrote a small bashscript that when pointed to a PKGBUILD file and given an output, it will get the URL’s for the deps and makedeps and cat them to a file. The script can easily be modified to SSH into your university and download for you, or just take the output file along with you to uni and run a wget -i output. Take the downloads deps/makedeps and either copy them to /var/cache/pacman/pkg and run something like makepkg -sri to install deps, compile and install the app, and remove makedeps.
I could of course add more functionality to the script but I don’t really care, and like always there is no help or support or whatever else I guess. Syntax and link below:
getdeps /path/to/PKGBUILD /path/to/output
I would recommend chmodding it +x and possibly sticking it in /usr/bin/ for ease of use, and of course this only works in Arch (including Chakra and Ophion,) and POSSIBLY Arch derivatives. The above example assumes it is in /usr/bin/, but if not and it’s in your current working dir for example, ./getdeps.sh in out and whatever.
EDIT: Updated with edogawaconan’s helper stuff, because I don’t care for helpful announces on failed syntax.
http://ophion.pastebin.com/f79a80758
Comments
One Response to “Remote Dependency Fetching”
Leave a Reply
lol thanks.