File: Foo.pm

package info (click to toggle)
libalien-build-perl 2.84-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,116 kB
  • sloc: perl: 10,350; ansic: 134; sh: 66; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 471 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package Alien::Build::Plugin::Download::Foo;

use strict;
use warnings;
use Alien::Build::Plugin;

sub init
{
  my($self,$meta) = @_;

  $meta->prop->{check_digest} = 1;
  $meta->prop->{digest} = { '*' => [ FAKE => 'deadbeaf' ] };

  $meta->apply_plugin('Download::Negotiate', url => 'corpus/dist/foo-1.00.tar');
  $meta->apply_plugin('Extract::ArchiveTar');
  $meta->apply_plugin('Test::Mock', check_digest => 1);
  $meta->register_hook(probe => sub { 'share' });
}

1;