[arch-commits] Commit in perl-mro-compat/repos (community-any community-any/PKGBUILD)
Sergej Pupykin
spupykin at archlinux.org
Thu Oct 8 10:42:37 UTC 2015
Date: Thursday, October 8, 2015 @ 12:42:37
Author: spupykin
Revision: 143414
archrelease: copy trunk to community-any
Added:
perl-mro-compat/repos/community-any/
perl-mro-compat/repos/community-any/PKGBUILD
(from rev 143413, perl-mro-compat/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: perl-mro-compat/repos/community-any/PKGBUILD (from rev 143413, perl-mro-compat/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-10-08 10:42:37 UTC (rev 143414)
@@ -0,0 +1,44 @@
+pkgname='perl-mro-compat'
+pkgver='0.12'
+pkgrel='2'
+pkgdesc="mro::* interface compatibility for Perls < 5.9.5"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl')
+makedepends=()
+url='http://search.cpan.org/dist/MRO-Compat'
+source=("http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/MRO-Compat-${pkgver}.tar.gz")
+md5sums=('06d21a3baf3d578ff3d3e10621656530')
+
+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}/MRO-Compat-${pkgver}"
+ /usr/bin/perl Makefile.PL
+ make
+ )
+}
+
+check() {
+ cd "${srcdir}/MRO-Compat-${pkgver}"
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ make test
+ )
+}
+
+package() {
+ cd "${srcdir}/MRO-Compat-${pkgver}"
+ 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:
More information about the arch-commits
mailing list