#!/usr/bin/env perl
use strict;
use alienfile;
use warnings;

plugin 'PkgConfig' => (
  pkg_name => 'libcmark-gfm',
);

share {
  meta->prop->{out_of_source} = 1;
  meta->prop->{start_url} = 'https://github.com/github/cmark.git#0.28.3.gfm.16';
  plugin 'Download::Git';
  plugin 'Build::CMake';

  build [
    # this is the default build step, if you do not specify one.
    [ '%{cmake}',
        @{ meta->prop->{plugin_build_cmake}->{args} },
        # ... put extra cmake args here ...
        '%{.install.extract}'
    ],
    '%{make}',
    '%{make} install',
  ];
};