summaryrefslogtreecommitdiff
path: root/perl/Pkgfile
blob: 4d327e33f33744e7eed64008605c36fb0d90f740 (plain)
    1 # Description: Perl programming language
    2 # URL:         http://www.perl.org/
    3 # Maintainer:  CRUX System Team, core-ports at crux dot nu
    4 # Depends on:  db gdbm
    5 
    6 name=perl
    7 version=5.24.1-RC4
    8 release=1
    9 source=(http://www.cpan.org/src/5.0/$name-$version.tar.xz)
   10 
   11 build() {
   12     cd $name-$version
   13 
   14     ./Configure -des \
   15                 -Dprefix=/usr \
   16                 -Dprivlib=/usr/lib/perl5/${version%.*} \
   17                 -Dsitelib=/usr/lib/perl5/site_perl/${version%.*} \
   18                 -Dvendorlib=/usr/lib/perl5/site_perl/${version%.*} \
   19                 -Darchname=linux \
   20                 -Dman1ext=1pm \
   21                 -Dman3ext=3pm \
   22                 -Di_gdbm \
   23                 -Di_db \
   24                 -Duseshrplib \
   25                 -Dusethreads \
   26                 -Doptimize="$CFLAGS"
   27     make
   28     make DESTDIR=$PKG install
   29 
   30     ln -sf perl${version%-*} $PKG/usr/bin/perl
   31     ln -sf c2ph $PKG/usr/bin/pstruct
   32     ln -sf c2ph.1pm $PKG/usr/share/man/man1/pstruct.1pm
   33 
   34     find $PKG \
   35          -iname 'TODO*' -or \
   36          -iname 'Change*' -or \
   37          -iname 'README*' -or \
   38          -name '*.bs' -or \
   39          -name '.packlist' -or \
   40          -name 'perllocal.pod' | xargs rm
   41     
   42     find $PKG -depth -empty -exec rmdir {} \;
   43     chmod -R +w $PKG
   44 }

Generated by cgit