-
Notifications
You must be signed in to change notification settings - Fork 4
/
Build.PL
39 lines (34 loc) · 898 Bytes
/
Build.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/perl -w
use strict;
use Module::Build;
my $class = Module::Build->subclass(
code => q{
sub ACTION_deb {
use strict;
my $self = shift;
$self->dispatch('distdir');
my $distdir = $self->dist_name .'-'. $self->dist_version;
my $lc_distdir = lc($distdir);
# do_system echos
$self->do_system("rm","-rf", $lc_distdir) or die $!;
$self->do_system("mv", $distdir, $lc_distdir) or die $!;
$self->do_system("cp","-r", "debian", $lc_distdir) or die $!;
$self->add_to_cleanup($lc_distdir);
$self->do_system("cd $lc_distdir && debuild -us -uc") or die $!;
}
},
);
$class->new(
module_name => 'Data::Rmap',
license => 'perl',
requires => {
'Scalar::Util' => 0,
'Test::Exception' => 0,
},
create_makefile_pl => 'traditional',
meta_merge => {
resources => {
repository => 'https://github.com/bowman/Data-Rmap',
},
},
)->create_build_script;