Created
October 13, 2014 12:42
-
-
Save badboy/857c7cd5c2dd7711c2d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Anonymous | |
# Generator : CPANPLUS::Dist::Arch 1.28 | |
pkgname='perl-exporter-tiny' | |
pkgver='0.042' | |
pkgrel='1' | |
pkgdesc="an exporter with the features of Sub::Exporter but only core dependencies" | |
arch=('any') | |
license=('PerlArtistic' 'GPL') | |
options=('!emptydirs') | |
depends=('perl>=5.6.1') | |
makedepends=() | |
url='http://search.cpan.org/dist/Exporter-Tiny' | |
source=(http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Exporter-Tiny-${pkgver}.tar.gz) | |
md5sums=('77ba432037f35bc9b84b717639075fc6') | |
sha512sums=('b69b722842b4a907fa434a1a798df6f983bae74d7b82e925a1db684cb166f2ef02a72cce176173af035321dc27ad35b49e1fb1ee57c0e2ca6596d84da140c06f') | |
_distdir="Exporter-Tiny-${pkgver}" | |
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 | |
} | |
# Local Variables: | |
# mode: shell-script | |
# sh-basic-offset: 2 | |
# End: | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment