From 992bc5affbfebc93e4c9f8288cae4a8e6f9713e8 Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Mon, 14 Mar 2011 18:55:08 -0600 Subject: [PATCH] Fixing documentation, syntax, etc. --- modules/AUR.pm | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/modules/AUR.pm b/modules/AUR.pm index 9833f2b..3884733 100644 --- a/modules/AUR.pm +++ b/modules/AUR.pm @@ -9,8 +9,7 @@ use API::Std qw(cmd_add cmd_del trans); use API::IRC qw(notice privmsg); # Initialization subroutine. -sub _init -{ +sub _init { # Create the AUR command. cmd_add('AUR', 0, 0, \%M::AUR::HELP_AUR, \&M::AUR::cmd_aur) or return; # Success. @@ -18,8 +17,7 @@ sub _init } # Void subroutine. -sub _void -{ +sub _void { # Delete the AUR command. cmd_del('AUR') or return; @@ -34,8 +32,7 @@ our %HELP_AUR = ( ); # Callback for AUR command. -sub cmd_aur -{ +sub cmd_aur { my ($src, ($mod)) = @_; # Check for needed parameters. @@ -81,20 +78,28 @@ AUR - AUR package information module. =head1 SYNOPSIS - !aur google-chrome - Results for google-chrome: - ID: 37469 Name: google-chrome Version: 10.0.648.133-1 - Maintainer: t3ddy - URL: https://aur.archlinux.org/packages.php?ID=37469 + !aur autobot-git + Results for autobot-git: + ID: 47329 Name: autobot-git Version: 20110311-1 + Maintainer: iElijah101 + URL: https://aur.archlinux.org/packages.php?ID=47329 =head1 DESCRIPTION -This module adds a command to allow getting information on a package -in AUR. +This module adds a command to allow getting information on a package in the +Arch User Repository at https://aur.archlinux.org. -=head1 INSTALL +=head1 DEPENDENCIES -Before using this module, you will need to get WWW::AUR from cpan. +This module is dependent on the following modules from CPAN: + +=over + +=item L + +Interface to the Arch User Repository. + +=back =head1 AUTHOR