diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-20 17:33:34 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-06-20 17:33:44 +0200 |
commit | 0981c59053a45e2bce7720fa2542770a8ed9608a (patch) | |
tree | 2c53b66d2830115e5c77cfef833271ac4d367f3c /types | |
parent | Remove xmonad hook. (diff) | |
download | pacman-0981c59053a45e2bce7720fa2542770a8ed9608a.tar.gz pacman-0981c59053a45e2bce7720fa2542770a8ed9608a.tar.xz |
Move pacman types into types subdir.
Diffstat (limited to 'types')
-rw-r--r-- | types/buildenv.pp | 7 | ||||
-rw-r--r-- | types/checksumtypes.pp | 9 | ||||
-rw-r--r-- | types/operation.pp | 1 | ||||
-rw-r--r-- | types/packageoptions.pp | 11 | ||||
-rw-r--r-- | types/trigger.pp | 6 |
5 files changed, 34 insertions, 0 deletions
diff --git a/types/buildenv.pp b/types/buildenv.pp new file mode 100644 index 0000000..0967535 --- /dev/null +++ b/types/buildenv.pp @@ -0,0 +1,7 @@ +type Pacman::Buildenv = Struct[{ + distcc => Boolean, + color => Boolean, + ccache => Boolean, + check => Boolean, + sign => Boolean, +}] diff --git a/types/checksumtypes.pp b/types/checksumtypes.pp new file mode 100644 index 0000000..4c2947a --- /dev/null +++ b/types/checksumtypes.pp @@ -0,0 +1,9 @@ +type Pacman::ChecksumTypes = Enum[ + 'md5', + 'sha1', + 'sha224', + 'sha256', + 'sha384', + 'sha512', + 'b2', +] diff --git a/types/operation.pp b/types/operation.pp new file mode 100644 index 0000000..66b4399 --- /dev/null +++ b/types/operation.pp @@ -0,0 +1 @@ +type Pacman::Operation = Enum['Install', 'Upgrade', 'Remove'] diff --git a/types/packageoptions.pp b/types/packageoptions.pp new file mode 100644 index 0000000..c1f54c4 --- /dev/null +++ b/types/packageoptions.pp @@ -0,0 +1,11 @@ +type Pacman::PackageOptions = Struct[{ + string => Boolean, + docs => Boolean, + libtool => Boolean, + staticlibs => Boolean, + emptydirs => Boolean, + zipman => Boolean, + purge => Boolean, + debug => Boolean, + lto => Boolean, +}] diff --git a/types/trigger.pp b/types/trigger.pp new file mode 100644 index 0000000..38a9b97 --- /dev/null +++ b/types/trigger.pp @@ -0,0 +1,6 @@ +type Pacman::Trigger = Struct[{ + type => Enum['Path', 'Package'], + operation => Variant[Pacman::Operation, Array[Pacman::Operation, 1]], + target => Variant[String, Array[String, 1]], +}] + |