use alienfile;

probe sub { 'share' };

share {

  requires 'Alien::git';
  
  download [ [ '%{git}', 'clone', 'https://github.com/CastXML/CastXML.git' ] ];

  plugin 'Extract::Directory';

  # this build recipe did not work for me, but probably
  # because my llvm was too old
  build [
    [ '%{cmake}', 'CMAKE_INSTALL_PREFIX:PATH=%{.install.prefix}', '.' ],
    [ '%{make}' ],
    [ '%{make}', 'install' ],
  ]

};