talimat 893 B

12345678910111213141516171819202122232425262728
  1. # Description: Geri kazanılmayan perl nesneleri aramak için yardımcı program.
  2. # URL: https://metacpan.org/pod/Devel::Leak
  3. # Packager: alihan-ozturk28@hotmail.com
  4. # Depends on:
  5. name=perl-devel-leak
  6. version=0.03
  7. release=1
  8. source=( https://cpan.metacpan.org/authors/id/N/NI/NI-S/Devel-Leak-$version.tar.gz)
  9. build() {
  10. export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
  11. PERL_AUTOINSTALL=--skipdeps \
  12. PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
  13. PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
  14. MODULEBUILDRC=/dev/null
  15. cd Devel-Leak-$version
  16. perl Makefile.PL
  17. make OPTIMIZE="$CFLAGS" || exit 1
  18. make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
  19. # Remove perllocal.pod and .packlist if present in the package
  20. for i in perllocal.pod .packlist; do
  21. find $PKG -name "$i" -exec rm -rf {} \;
  22. done
  23. }