~ubuntu-branches/ubuntu/raring/surfraw/raring

« back to all changes in this revision

Viewing changes to elvi/aur

  • Committer: Bazaar Package Importer
  • Author(s): Ian Beckwith
  • Date: 2009-03-01 02:30:59 UTC
  • mfrom: (1.1.3 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090301023059-5i9s1j5pjy3ae2sd
Tags: 2.2.4-1
* New upstream version.
* postrm: add 'set -e'.
* debian/copyright:
  + Update copyright years to include 2009.
  + point to right GPL link (NB only the file 'missing' is GPLed, most
    of the package is PD).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# AUTHOR: René Reigel based on piratebay by J.R. Mauro
 
4
#
 
5
# DATE: Tue, 20 Jan 2009 05:48:21 +0100
 
6
#
 
7
# DESC: Elvi to search the Arch User Repository
 
8
# elvis: aur            -- Search aur.archlinux.org for PKGBUILDS
 
9
. surfraw || exit 1
 
10
 
 
11
w3_usage_hook () {
 
12
    cat <<EOF
 
13
Usage: $w3_argv0 [options] [search words]...
 
14
Description:
 
15
  Search aur.archlinux.org for PKGBUILDS
 
16
EOF
 
17
    w3_global_usage
 
18
}
 
19
 
 
20
w3_config
 
21
w3_parse_args "$@"
 
22
# w3_args now contains a list of arguments
 
23
if test -z "$w3_args"; then
 
24
    w3_browse_url "http://aur.archlinux.org/packages"
 
25
else
 
26
    escaped_args=`w3_url_of_arg $w3_args`
 
27
    w3_browse_url "http://aur.archlinux.org/packages.php?O=0&L=0&C=0&K=${escaped_args}&SeB=nd&SB=a&SO=d&PP=100&do_Search=Go"
 
28
fi