talimat 1.3 KB

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