42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
|
|
# Contributor: John D Jones III AKA jnbek <jnbek1972 -_AT_- g m a i l -_Dot_- com>
|
|
|
|
pkgname='perl-exporter-lite'
|
|
pkgver='0.09'
|
|
pkgrel='1'
|
|
pkgdesc="lightweight exporting of functions and variables"
|
|
arch=('any')
|
|
license=('PerlArtistic' 'GPL')
|
|
options=('!emptydirs')
|
|
depends=('perl')
|
|
url='https://metacpan.org/release/Exporter-Lite'
|
|
source=('http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Exporter-Lite-0.09.tar.gz')
|
|
md5sums=('afeceba95b4c393b866a57f4818c6aba')
|
|
_distdir="Exporter-Lite-0.09"
|
|
|
|
build() {
|
|
( 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 "$srcdir/$_distdir"
|
|
/usr/bin/perl Makefile.PL
|
|
make
|
|
)
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/$_distdir"
|
|
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
|
|
make test
|
|
)
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$_distdir"
|
|
make install
|
|
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
|
|
}
|