talimat 683 B

123456789101112131415161718192021222324252627
  1. # Description: XML için basit API
  2. # URL: http://search.cpan.org/dist/XML-SAX
  3. # Packager: milisarge
  4. # Depends on: perl-xml-namespacesupport perl-xml-sax-base
  5. name=perl-xml-sax
  6. version=0.99
  7. release=1
  8. source=(
  9. http://www.cpan.org/authors/id/G/GR/GRANTM/XML-SAX-$version.tar.gz
  10. perl-xml-sax.patch)
  11. build() {
  12. cd XML-SAX-$version
  13. patch -Np1 -i ../perl-xml-sax.patch || exit 1
  14. perl Makefile.PL
  15. make OPTIMIZE="$CFLAGS" || exit 1
  16. make test
  17. make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
  18. # Remove perllocal.pod and .packlist if present in the package
  19. for i in perllocal.pod .packlist; do
  20. find $PKG -name "$i" -exec rm -rf {} \;
  21. done
  22. }