File Coverage

alienfile
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1 1     1   260858 use alienfile;
  1         4  
  1         9  
2              
3             my $libys_version = '0.2.8';
4              
5             # Always use a share install
6             # We cannot use a system install, because we need to know exactly
7             # which version we are installing.
8             probe sub { 'share' };
9              
10             share {
11             my $os = $^O;
12             $os = 'macos' unless $os eq 'linux';
13              
14             my $arch = meta->prop->{platform}{cpu}{arch}{name};
15             $arch = 'x64' unless $arch eq 'aarch64';
16              
17             plugin 'Download::GitHub' => (
18             github_user => 'yaml',
19             github_repo => 'yamlscript',
20             asset => 1,
21             asset_name => qr/^libys-\Q$libys_version\E-$os-$arch/,
22             asset_format => 'tar.xz',
23             );
24              
25             build [
26             '%{make} install PREFIX=%{.install.prefix}',
27             ];
28             };