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   79914 use alienfile;
  1         2  
  1         6  
2              
3             # Note: The Download::Negotiate warnings shown during build are a known issue
4             # with Alien::Build::Plugin::Download::GitHub. These warnings do not affect
5             # functionality and the plugin correctly uses the GitHub API.
6             # See: https://github.com/PerlAlien/Alien-Build-Plugin-Download-GitHub/issues
7              
8             share {
9             plugin 'Download::GitHub' => (
10             github_user => 'tursodatabase',
11             github_repo => 'turso-cli',
12             asset => 1,
13             asset_name => qr/^turso-cli_Linux_x86_64\.tar\.gz$/,
14             );
15              
16             plugin 'Extract' => 'tar.gz';
17              
18             build [
19             # Extract the binary and copy to bin directory
20             'mkdir -p %{.install.prefix}/bin',
21             'cp turso %{.install.prefix}/bin/',
22             'chmod +x %{.install.prefix}/bin/turso',
23             ];
24             };
25              
26             sys {
27             # Check if turso is already installed in system
28             requires 'turso';
29             };