probe sub { $_[0]->runtime_prop->{ffi_name} = 'wslay' };
plugin qw'Probe::CBuilder libs -lwslay';
share {
plugin qw'Download::GitHub github_user tatsuhiro-t github_repo wslay asset 1';
# plugin qw'Extract tar.gz';
plugin 'Build::Autoconf';
build ['%{configure}', '%{make}', '%{make} install'];
plugin 'Gather::IsolateDynamic';
gather sub {
my ($build) = @_;
my $prefix = $build->runtime_prop->{prefix};
$build->runtime_prop->{cflags} = "-I$prefix/include ";
$build->runtime_prop->{libs} = "-L$prefix/lib -lwslay "; }
};