Debian Codegraph @

alienfile

raw
1 use alienfile;
2 use Config;
3
4 configure { requires 'Alien::Build::Plugin::Build::Make' => '0.01' };
5
6 plugin 'Probe::Vcpkg' => (
7 name => 'libsodium',
8 ffi_name => 'libsodium',
9 );
10 plugin 'PkgConfig' => (
11 pkg_name => 'libsodium',
12 minimum_version => '1.0.3',
13 );
14
15 share {
16 my $run_upstream_tests = ($ENV{AUTOMATED_TESTING} || $ENV{RELEASE_TESTING}) ? 1 : 0;
17
18 plugin Download => (
19 url => 'https://download.libsodium.org/libsodium/releases/',
20 version => qr/^libsodium-([0-9.]+)-stable\.tar\.gz$/,
21 );
22
23 plugin Extract => 'tar.gz';
24
25 # requires 'Alien::Autotools';
26 plugin 'Build::Autoconf' => ();
27
28 build [
29 # 'sh autogen.sh',
30 '%{configure}',
31 '%{make}',
32 '%{make} install',
33 ];
34
35 test(['%{make} check']) if $run_upstream_tests;
36
37 plugin 'Gather::IsolateDynamic' => ();
38 };