talimat 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Tanım: The Perl package contains the Practical Extraction and Report Language.
  2. # URL: http://www.perl.org/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. isim=perl
  6. surum=5.22.1
  7. devir=1
  8. kaynak=(http://ftp.funet.fi/pub/CPAN/src/$isim-$surum.tar.bz2)
  9. derle()
  10. {
  11. cd $isim-$surum
  12. if [ "`uname -m`" == "x86_64" ]; then
  13. _ARCH="-Dcccdlflags='-fPIC'"
  14. else
  15. _ARCH=""
  16. fi
  17. echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
  18. export BUILD_ZLIB=False
  19. export BUILD_BZIP2=0
  20. sh Configure -des -Dusethreads \
  21. -Dprefix=/usr -Duseshrplib -Dscriptdir=/usr/bin \
  22. -Dvendorbin=/usr/bin -Dsitebin=/usr/bin \
  23. -Dvendorprefix=/usr -Dinc_version_list=none \
  24. -Darchlib=/usr/lib/share/perl5/base \
  25. -Dprivlib=/usr/lib/share/perl5/base \
  26. -Dvendorlib=/usr/lib/share/perl5/vendor \
  27. -Dvendorarch=/usr/lib/perl5/vendor \
  28. -Dsitelib=/usr/lib/perl5/site \
  29. -Dsitearch=/usr/lib/perl5/site \
  30. -Dman1dir=/usr/share/man/man1 \
  31. -Dman3dir=/usr/share/man/man3 \
  32. -Dpager="/usr/bin/less isR" ${_ARCH}
  33. make
  34. # Only when we are building a new base
  35. if [ -L /tools ]; then
  36. make -k test || true
  37. fi
  38. make DESTDIR=$PKG install
  39. find $PKG -iname 'TODO*' -or \
  40. -iname 'Change*' -or \
  41. -iname 'README*' -or \
  42. -name '*.bs' -or \
  43. -name .packlist -or \
  44. -name perllocal.pod | xargs rm
  45. find $PKG -depth -empty -exec rmdir {} \;
  46. chmod -R +w $PKG
  47. unset BUILD_ZLIB BUILD_BZIP2
  48. }