#Packager: George Vlahavas # _cpanname is the module name as provided in CPAN. # For example: Archive-Zip # The corresponding package will be named: perl-Archive-Zip _cpanname=MIME-Charset pkgname=perl-${_cpanname} pkgver=1.012.2 pkgrel=1gv source=("https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/MIME-Charset-$pkgver.tar.gz") docs=("readme" "install" "artistic" "changes" "authors" "news" "todo") url=https://metacpan.org/pod/MIME::Charset slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-MIME-Charset (Charset Information for MIME)" "MIME::Charset provides information about character sets used for MIME" "messages on Internet." ) build() { cd $startdir/src/${_cpanname}-$pkgver unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }