=head1 NAME WWW::AUR::Package - Query, download, and build AUR
packages. =head1 SYNOPSIS use WWW::AUR; my $aurobj =
WWW::AUR->new(); my $pkg = $aurobj->find( 'perl-www-aur' ); # or
using WWW::AUR::Package directly ... use WWW::AUR::Package; my
$pkg = WWW::AUR::Package->new( 'perl-www-aur' ); #--------------
-------------------------------------------------------- #
Accessors exist for package info fields... printf "ID: %d --
Name: %s -- Version: %s\n", $pkg->id, $pkg->name, $pkg->version;
# Or retrieve the info as a hash, easier for printing... my
%info = $pkg->info; print "ID: $info{id} -- Name: $info{name} --
Version: $info{version}" # Before extracting, pkgbuild() gets
the PKGBUILD from the webpage... my %pkgbuild = $pkg->pkgbuild;
print "pkgname: $pkgbuild{pkgname}\npkgver:
$pkgbuild{pkgver}\n"; #-----------------------------------------
----------------------------- # Check the source package file
size before downloading... my $dlsize = $pkg->download_size;
print "Source package size is $dlsize bytes.\n";