1Alien::Build::Plugin::BUusielrd:C:oCnotpryi(b3u)ted PerlAlDioecnu:m:eBnutialtdi:o:nPlugin::Build::Copy(3)
2
3
4

NAME

6       Alien::Build::Plugin::Build::Copy - Copy plugin for Alien::Build
7

VERSION

9       version 2.40
10

SYNOPSIS

12        use alienfile;
13        plugin 'Build::Copy';
14

DESCRIPTION

16       This plugin copies all of the files from the source to the staging
17       prefix.  This is mainly useful for software packages that are provided
18       as binary blobs.  It works on both Unix and Windows using the
19       appropriate commands for those platforms without having worry about the
20       platform details in your alienfile.
21
22       If you want to filter add or remove files from what gets installed you
23       can use a "before" hook.
24
25        build {
26          ...
27          before 'build' => sub {
28            # remove or modify files
29          };
30          plugin 'Build::Copy';
31          ...
32        };
33
34       Some packages might have binary blobs on some platforms and require
35       build from source on others.  In that situation you can use "if"
36       statements with the appropriate logic in your alienfile.
37
38        configure {
39          # normally the Build::Copy plugin will insert itself
40          # as a config requires, but since it is only used
41          # on some platforms, you will want to explicitly
42          # require it in your alienfile in case you build your
43          # alien dist on a platform that doesn't use it.
44          requires 'Alien::Build::Plugin::Build::Copy';
45        };
46
47        build {
48          ...
49          if($^O eq 'linux')
50          {
51            start_url 'http://example.com/binary-blob-linux.tar.gz';
52            plugin 'Download';
53            plugin 'Extract' => 'tar.gz';
54            plugin 'Build::Copy';
55          }
56          else
57          {
58            start_url 'http://example.com/source.tar.gz';
59            plugin 'Download';
60            plugin 'Extract' => 'tar.gz';
61            plugin 'Build::Autoconf';
62          }
63        };
64

AUTHOR

66       Author: Graham Ollis <plicease@cpan.org>
67
68       Contributors:
69
70       Diab Jerius (DJERIUS)
71
72       Roy Storey (KIWIROY)
73
74       Ilya Pavlov
75
76       David Mertens (run4flat)
77
78       Mark Nunberg (mordy, mnunberg)
79
80       Christian Walde (Mithaldu)
81
82       Brian Wightman (MidLifeXis)
83
84       Zaki Mughal (zmughal)
85
86       mohawk (mohawk2, ETJ)
87
88       Vikas N Kumar (vikasnkumar)
89
90       Flavio Poletti (polettix)
91
92       Salvador Fandiño (salva)
93
94       Gianni Ceccarelli (dakkar)
95
96       Pavel Shaydo (zwon, trinitum)
97
98       Kang-min Liu (劉康民, gugod)
99
100       Nicholas Shipp (nshp)
101
102       Juan Julián Merelo Guervós (JJ)
103
104       Joel Berger (JBERGER)
105
106       Petr Pisar (ppisar)
107
108       Lance Wicks (LANCEW)
109
110       Ahmad Fatoum (a3f, ATHREEF)
111
112       José Joaquín Atria (JJATRIA)
113
114       Duke Leto (LETO)
115
116       Shoichi Kaji (SKAJI)
117
118       Shawn Laffan (SLAFFAN)
119
120       Paul Evans (leonerd, PEVANS)
121
122       Håkon Hægland (hakonhagland, HAKONH)
123
125       This software is copyright (c) 2011-2020 by Graham Ollis.
126
127       This is free software; you can redistribute it and/or modify it under
128       the same terms as the Perl 5 programming language system itself.
129
130
131
132perl v5.32.1                      2021-05-1A3lien::Build::Plugin::Build::Copy(3)
Impressum