Created
October 13, 2014 12:45
-
-
Save badboy/748b6fbe3c45bb8160c4 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-type-tiny' | |
pkgver='1.000004' | |
pkgrel='1' | |
pkgdesc="tiny, yet Moo(se)-compatible type constraint" | |
arch=('any') | |
license=('PerlArtistic' 'GPL') | |
options=('!emptydirs') | |
depends=('perl-exporter-tiny>=0.026' 'perl>=5.6.1') | |
makedepends=() | |
url='http://search.cpan.org/dist/Type-Tiny' | |
source=(http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Type-Tiny-${pkgver}.tar.gz) | |
md5sums=('3fab2a0ec2634d1fa057d6254678b79f') | |
sha512sums=('1a33cd54cd385c25c2fe2d8ba95e3477a3730b9e0f220e9e1f458cae1499a1e7e9d8a6dac6a5361ec3cee4712b516ba9290d6d73b43ff6db2bad53bb9a67e91b') | |
_distdir="Type-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