Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fish;
- =pod
- =head1 NAME
- =head2 SYNOPSIS
- =head2 USAGE
- =head2 COPYRIGHT
- Copyright vbextreme 2017
- License gplv3
- =cut
- use strict;
- use warnings;
- "build": {
- "common":["./autoreconf --no-recursive",
- "./configure",
- "./make -j $DEFAULT_JOBS"
- ]
- },
- "install":{
- "common":["make install"]
- }
- }
- sub new{
- my $class = shift;
- my $self = {
- repository => 'https://github.com/fish-shell/fish-shell.git',
- name => 'fish-shell',
- tag => undef,
- branch => 'master',
- dependencies => {
- fedora => ('ncurses-dev'),
- ubuntu => ('libncurses-dev'),
- debian => ('libncurses-dev'),
- }
- };
- bless $self, $class;
- return $self;
- }
- sub build{
- my ($self,$default) = @_;
- system('./autoreconf --no-recursive');
- system('./configure');
- system('./make -j' . $default->{jobs} );
- }
- sub install{
- my ($self,$default) = @_;
- system('make install');
- }
- 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement