archlinux-0.2.4: Support for working with Arch Linux packagesSource codeContentsIndex
Distribution.ArchLinux.AUR
MaintainerDon Stewart
Description
Support for querying the AUR database.
Synopsis
data AURInfo = AURInfo {
packageID :: Integer
packageURLinAUR :: String
packageName :: String
packageVersion :: Either String (Version, String)
packageCategory :: Integer
packageDesc :: String
packageLocation :: Integer
packageURL :: String
packagePath :: FilePath
packageLicense :: String
packageVotes :: Integer
packageOutOfDate :: Bool
}
info :: String -> IO (Either String AURInfo)
search :: String -> IO [AURInfo]
package :: String -> IO (Either String AURInfo, Either String AnnotatedPkgBuild)
Documentation
data AURInfo Source
Type for AUR RPC responses.
Constructors
AURInfo
packageID :: Integerunique ID of the package on AUR
packageURLinAUR :: Stringurl of AUR package
packageName :: Stringstring name of package
packageVersion :: Either String (Version, String)either the AUR version (version,rev) or a string
packageCategory :: Integernumeric category of the package (e.g. 17 == System)
packageDesc :: Stringpackage synopsis
packageLocation :: Integerwhich repository is it stored in (community, AUR etc)
packageURL :: Stringurl (sanity check: should be hackage url mostly)
packagePath :: FilePathurl path to package source.
packageLicense :: Stringtype of license
packageVotes :: Integervotes on package
packageOutOfDate :: Boolis the package flagged as out of date
show/hide Instances
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.
package :: String -> IO (Either String AURInfo, Either String AnnotatedPkgBuild)Source
Return the parsed PKGBUILD pkgbuild :: String -> IO (Either String [String]) -- (Either String PkgBuild)
Produced by Haddock version 2.6.0