summaryrefslogtreecommitdiff
path: root/manifests/makepkg.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/makepkg.pp')
-rw-r--r--manifests/makepkg.pp28
1 files changed, 3 insertions, 25 deletions
diff --git a/manifests/makepkg.pp b/manifests/makepkg.pp
index cf020d2..789298a 100644
--- a/manifests/makepkg.pp
+++ b/manifests/makepkg.pp
@@ -1,25 +1,3 @@
-type Buildenv = Struct[{
- distcc => Boolean,
- color => Boolean,
- ccache => Boolean,
- check => Boolean,
- sign => Boolean,
-}]
-
-type PackageOptions = Struct[{
- string => Boolean,
- docs => Boolean,
- libtool => Boolean,
- staticlibs => Boolean,
- emptydirs => Boolean,
- zipman => Boolean,
- purge => Boolean,
- debug => Boolean,
- lto => Boolean,
-}]
-
-type ChecksumTypes = Enum['md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512', 'b2']
-
class pacman::makepkg (
# protocol: agent
Hash[String, String] $dlagents = {
@@ -51,7 +29,7 @@ class pacman::makepkg (
String $debug_cflags = '-g -fvar-tracking-assignments',
String $debug_cxxflags = '-g -fvar-tracking-assignments',
Optional[String] $debug_rustflags = undef, # '-C debuginfo=2'
- Buildenv $buildenv = {
+ Pacman::Buildenv $buildenv = {
distcc => false,
color => true,
ccache => false,
@@ -60,7 +38,7 @@ class pacman::makepkg (
},
Optional[String] $distcc_hosts = undef, # ''
Optional[String] $builddir = undef, # '/tmp/makepkg'
- PackageOptions $options = {
+ Pacman::PackageOptions $options = {
string => true,
docs => true,
libtool => false,
@@ -71,7 +49,7 @@ class pacman::makepkg (
debug => false,
lto => false, # This is fairly new...
},
- Array[ChecksumTypes] $integrity_check = [ 'sha256' ],
+ Array[Pacman::ChecksumTypes] $integrity_check = [ 'sha256' ],
String $strip_binaries = '--strip-all',
String $strip_shared = '--strip-unneeded',
String $strip_static = '--strip-debug',