Advertisement
Guest User

Untitled

a guest
Nov 13th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.96 KB | None | 0 0
  1. package fish;
  2.  
  3. =pod
  4.  
  5. =head1 NAME
  6.  
  7. =head2 SYNOPSIS
  8.  
  9.  
  10. =head2 USAGE
  11.  
  12. =head2 COPYRIGHT
  13.  
  14. Copyright vbextreme 2017
  15. License gplv3
  16.  
  17. =cut
  18.  
  19. use strict;
  20. use warnings;
  21.  
  22.     "build": {
  23.         "common":["./autoreconf --no-recursive",
  24.              "./configure",
  25.              "./make -j $DEFAULT_JOBS"
  26.              ]
  27.     },
  28.     "install":{
  29.         "common":["make install"]
  30.     }
  31. }
  32.  
  33. sub new{
  34.     my $class = shift;
  35.    
  36.     my $self = {
  37.         repository => 'https://github.com/fish-shell/fish-shell.git',
  38.         name => 'fish-shell',
  39.         tag => undef,
  40.         branch => 'master',
  41.         dependencies => {
  42.             fedora => ('ncurses-dev'),
  43.             ubuntu => ('libncurses-dev'),
  44.             debian => ('libncurses-dev'),
  45.         }
  46.     };
  47.    
  48.                
  49.     bless $self, $class;
  50.     return $self;
  51. }    
  52.  
  53. sub build{
  54.     my ($self,$default) = @_;
  55.    
  56.     system('./autoreconf --no-recursive');
  57.     system('./configure');
  58.     system('./make -j' . $default->{jobs} );
  59. }
  60.  
  61. sub install{
  62.     my ($self,$default) = @_;
  63.     system('make install');
  64. }
  65.  
  66.  
  67.  
  68. 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement