AURlizer

By Giorgio Gilestro Last update Nov 1, 2009 — Installed 529 times.

Script Summary: Transform package names in AUR link in the AUR database



Needed:
- yaourt
- Firefox with greasemonkey (https://addons.mozilla.org/addon/748) or any greasemonkey-scripts accepting browser.

Steps:

1. Create a small bash script called aur_opener.sh containing the following code:
Code:

#!/usr/bin/env bash
gnome-terminal -x /usr/bin/yaourt -S ${1//aur:\/\//}

2. Make the script executable

3. Open about:config in Firefox and add the following variable:
Code:

network.protocol-handler.app.aur

with value:
Code:

yaourt

4. Install the greasemonkey script AURlizer (http://userscripts.org/scripts/show/61015).

5. Visit any page on the AUR db. A new symbol [↓] will appear next to the package name. Click on it and you will be asked which program to use. Point Firefox to wherever aur_opener.sh is. install!

Note.
From now on, every time you click on a link like the following: aur://pkgname yaourt will start.