milis/talimatname/genel/p/perl-devel-leak/talimat

28 lines
886 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Geri kazanılmayan perl nesneleri aramak için yardımcı program.
2017-04-07 11:02:50 +02:00
# URL: https://metacpan.org/pod/Devel::Leak
2017-10-27 20:46:27 +02:00
# Paketçi: alihan-ozturk28@hotmail.com
# Gerekler:
2016-11-13 01:08:33 +01:00
name=perl-devel-leak
version=0.03
release=1
source=( https://cpan.metacpan.org/authors/id/N/NI/NI-S/Devel-Leak-$version.tar.gz)
2017-10-27 23:59:41 +02:00
derle() {
2016-11-13 01:08:33 +01:00
export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
cd Devel-Leak-$version
perl Makefile.PL
make OPTIMIZE="$CFLAGS" || exit 1
make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1
# Remove perllocal.pod and .packlist if present in the package
for i in perllocal.pod .packlist; do
find $PKG -name "$i" -exec rm -rf {} \;
done
}