Maintainer | Don Stewart <[email protected]> |
---|
Distribution.ArchLinux.PkgBuild
Description
- data PkgBuild = PkgBuild {
- arch_pkgname :: String
- arch_pkgver :: Version
- arch_pkgrel :: !Int
- arch_pkgdesc :: String
- arch_arch :: ArchList ArchArch
- arch_url :: String
- arch_license :: ArchList License
- arch_makedepends :: ArchList ArchDep
- arch_depends :: ArchList ArchDep
- arch_source :: ArchList String
- arch_md5sum :: ArchList String
- arch_build :: [String]
- arch_install :: Maybe String
- arch_options :: ArchList ArchOptions
- data ArchOptions = Strip
- emptyPkgBuild :: PkgBuild
- newtype ArchDep = ArchDep Dependency
- data ArchArch
- = Arch_X86
- | Arch_X86_64
- newtype ArchList a = ArchList [a]
- dispNoQuotes :: Text a => ArchList a -> Doc
- data AnnotatedPkgBuild = AnnotatedPkgBuild {}
- emptyPkg :: AnnotatedPkgBuild
- type ResultP a = Either String a
- decodePackage :: String -> ResultP AnnotatedPkgBuild
- newtype GetPKG a = GetPKG {}
- runGetPKG :: GetPKG a -> String -> ResultP a
- getInput :: GetPKG String
- setInput :: String -> GetPKG ()
- (<$>) :: Functor f => (a -> b) -> f a -> f b
- readPackage :: AnnotatedPkgBuild -> GetPKG AnnotatedPkgBuild
- type Warnings = String
- recentCabal2ArchVersion :: Maybe Version
- oldCabal2Arch :: AnnotatedPkgBuild -> Bool
Documentation
A data type to represent PKGBUILD files
Constructors
PkgBuild | |
Fields
|
emptyPkgBuild :: PkgBuildSource
An empty PKGBUILD
Valid linux platforms
Constructors
Arch_X86 | |
Arch_X86_64 |
Constructors
ArchList [a] |
dispNoQuotes :: Text a => ArchList a -> DocSource
Printing with no quotes
data AnnotatedPkgBuild Source
A PKGBUILD data structure with additional metadata
Constructors
AnnotatedPkgBuild | contents of pkgbuild file |
Instances
emptyPkg :: AnnotatedPkgBuildSource
Empty state structure
The type of pkgbuild parsers for String
runGetPKG :: GetPKG a -> String -> ResultP aSource
Run a PKG reader on an input String, returning a PKGBUILD
readPackage :: AnnotatedPkgBuild -> GetPKG AnnotatedPkgBuildSource
Recursively parse the pkgbuild
oldCabal2Arch :: AnnotatedPkgBuild -> BoolSource
Look for problems in the PKGBUILD