| 1 | 1 | ▶ | use alienfile; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | |||||||||||
| 3 | 1 | my $libys_version = '0.3.7'; | |||||||||
| 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 | 0 | ▶ | probe sub { 'share' }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | share { | ||||||||
|
Subroutine
__ANON__: called CC=3 SCAR=11.2
| |||||||||||
| 11 | 1 | my $os = $^O; | |||||||||
| 12 | 1 | ▶ | $os = 'macos' unless $os eq 'linux'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | |||||||||||
| 14 | 1 | my $arch = meta->prop->{platform}{cpu}{arch}{name}; | |||||||||
| 15 | 1 | ▶ | $arch = 'x64' unless $arch eq 'aarch64'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | |||||||||||
| 17 | 1 | 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 | 1 | build [ | |||||||||
| 26 | '%{make} install PREFIX=%{.install.prefix}', | ||||||||||
| 27 | ]; | ||||||||||
| 28 | 1 | }; | |||||||||