archlinux-web-0.1: Website maintenance for Arch Linux packages

MaintainerDon Stewart

Distribution.ArchLinux.AUR

Description

Support for querying the AUR database.

Synopsis

Documentation

data AURInfo Source

Type for AUR RPC responses.

Constructors

AURInfo 

Fields

packageID :: Integer

unique ID of the package on AUR

packageURLinAUR :: String

url of AUR package

packageName :: String

string name of package

packageVersion :: Either String (Version, String)

either the AUR version (version,rev) or a string

packageCategory :: Integer

numeric category of the package (e.g. 17 == System)

packageDesc :: String

package synopsis

packageLocation :: Integer

which repository is it stored in (community, AUR etc)

packageURL :: String

url (sanity check: should be hackage url mostly)

packagePath :: FilePath

url path to package source.

packageLicense :: String

type of license

packageVotes :: Integer

votes on package

packageOutOfDate :: Bool

is the package flagged as out of date

info :: String -> IO (Either String AURInfo)Source

Query AUR for information on a package

 $ info "xmonad"

 Right (AURInfo { packageID       = 10593
              , packageName     = "xmonad"
              , packageVersion  = Right (Version {versionBranch = [0,8,1] , versionTags = []},"1.2")i
              , packageCategory = 17
              , packageDesc     = "A lightweight X11 tiled window manager written in Haskell"
              , packageLocation = 3
              , packageURL      = "http://xmonad.org/"
              , packagePath     = "/packages/xmonad/xmonad.tar.gz"
              , packageLicense = "custom:BSD3"
              , packageVotes = 260
              , packageOutOfDate = False })

search :: String -> IO [AURInfo]Source

Search AUR for packages matching pattern. Returns a list of info results.

maintainer :: String -> IO [AURInfo]Source

Search AUR for packages owned by maintainer. Returns a list of info results.

package :: String -> IO (Either String AURInfo, Either String AnnotatedPkgBuild)Source

Return the parsed PKGBUILD pkgbuild :: String -> IO (Either String [String]) -- (Either String PkgBuild)