DEV Community

rndmh3ro
rndmh3ro

Posted on • Originally published at zufallsheld.de on

HumbleBundle Downloadagent (hib-dlagent) on Arch Linux

I purchased nearly all Humble Indie Bundles from the HumbleBundle-guys. I also do not want to manually download and install the games from the site, because after all, I use Linux and a decent package-manager, pacman. Luckily, there’s the AUR and the hib-dlagent, which lets me install and update games via pacman. humble-bundle-logo

The hib-dlagent is a “Tool to download Humble Indie Bundle binaries by file name”. It is integrated with the package build utility makepkg, “a script to automate the building of packages”. Makepkg is used to download and install packages from the AUR.

To install the hib-dlagent, enter the following in your favorite shell:

pakku -S hib-dlagent-git
Enter fullscreen mode Exit fullscreen mode

Then you have to edit the makepgk.conf (/etc/makepkg.conf) so when installing games from the AUR, the hib-dlagent is used. Append the following to the “DLAGENTS”-section:

'hib::/usr/bin/hib-dlagent -u $YOUREMAIL -p $YOURPASSWORD -o %o %u'
Enter fullscreen mode Exit fullscreen mode

Insert your email address and password you use for logging in to the HumbleBundle-site. In the end, the section should look like this:

#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
      'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
      'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
      'rsync::/usr/bin/rsync --no-motd -z %u %o'
      'scp::/usr/bin/scp -C %u %o'
      'hib::/usr/bin/hib-dlagent -u $YOUREMAIL -p $YOURPASSWORD -o %o $(echo %u | cut -c 7-)')
Enter fullscreen mode Exit fullscreen mode

When you’re done, you can install games from the AUR as usual, for example, to install the very good FTL, use:

pakku -S ftl
Enter fullscreen mode Exit fullscreen mode

Top comments (0)