Help language development. Donate to The Perl Foundation

Termbox cpan:JJATRIA last updated on 2020-04-05

Build.pm
use v6;
use LibraryMake;

class Build {
    method build ($cwd) {
        my %vars = get-vars($cwd);
        %vars<termbox> = $*VM.platform-library-name('termbox'.IO);
        %vars<python>  = $*DISTRO ~~ /centos/ ?? 'python3' !! 'python';

        mkdir $_ unless .IO.e given 'resources/libraries';

        process-makefile($cwd, %vars);

        shell(%vars<MAKE>);
    }
}