#! perl

use strict;
use warnings;

use alienfile;
use Path::Tiny;

my $pkg_name = 'cpgplot';
my $pkg_version = '5.2.2-9';

plugin 'Gather::IsolateDynamic';

plugin PkgConfig => (
   pkg_name => $pkg_name,
);

share {
    start_url "https://github.com/djerius/pgplot-autotool/releases/download/${pkg_version}/pgplot-${pkg_version}.tar.gz";
    plugin Download => (
       version => qr/(\d+\.\d+\.\d+-\d+)[.]tar[.].*$/,
    );

    plugin Extract => 'tar.gz';
    plugin 'Build::Autoconf';
};
