Hello everyone! It's been a long time that I wanted to do an OpenSearch shortcut to the AUR. I do an extensive use of search engines and keywords in my daily navigation and I was really missing one for AUR. So I wrote one, that was not so complex. :) I tested it using Firefox 3.6, so please test it a little bit more. To include the search engine in a web page for auto discovery, the HTML <head/> element should include a "profile" attribute that contains the value "http://a9.com/-/spec/opensearch/1.1/", and a <link/> tag such as <link rel="search" type="application/opensearchdescription+xml" href="http://path/to/aur-osd.xml" title="AUR Packages" /> (href must contain a complete uri, relative path doesn't seem to be supported)
I set up a page so you can test it: http://www.cilyan.org/aurosd/aur-osd-link.html Once an appropriate keyword is set up in Ff "Manage search engines", finding a package on AUR is now as simple as typing "aur <package>" in the address bar! Best regards, Cilyan
<?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <!-- OpenSearch Description Document for the ArchLinux User Repository --> <!-- All rights given to the AUR Maintenance Team & Arch Community --> <ShortName>AUR Packages</ShortName> <LongName>Arch User Repository Packages</LongName> <Description>Search packages on AUR</Description> <Url type="text/html" template="http://aur.archlinux.org/packages.php?O={startIndex?}&K={searchTerms?}&do_Search=Go&detail=1&C=0&SeB=nd&SB=n&SO=a&PP={count?}" rel="results" indexOffset="0" /> <!-- Address of the OpenSearch description document (for auto-update). To be changed once up on the AUR. --> <Url type="application/opensearchdescription+xml" rel="self" template="http://www.cilyan.org/aurosd/aur-osd.xml" /> <!-- To be changed to the AUR maintainer. --> <Contact>[email protected]</Contact> <Tags>archlinux arch linux aur user package repository</Tags> <Image height="16" width="16" type="image/png">http://aur.archlinux.org/images/favicon.ico</Image> <Query role="example" searchTerms="arch" /> <Developer>Cilyan Olowen</Developer> <!-- To be replaced by the AUR license <Attribution>GNU Public License 2</Attribution> --> <Language>*</Language> <InputEncoding>UTF-8</InputEncoding> <OutputEncoding>UTF-8</OutputEncoding> </OpenSearchDescription>
