[arch-commits] Commit in perl-try-tiny/repos (extra-any extra-any/PKGBUILD)

Giovanni Scafora giovanni at archlinux.org
Mon Aug 6 09:45:17 UTC 2012


    Date: Monday, August 6, 2012 @ 05:45:17
  Author: giovanni
Revision: 164795

archrelease: copy trunk to extra-any

Added:
  perl-try-tiny/repos/extra-any/
  perl-try-tiny/repos/extra-any/PKGBUILD
    (from rev 164794, perl-try-tiny/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: perl-try-tiny/repos/extra-any/PKGBUILD (from rev 164794, perl-try-tiny/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD	                        (rev 0)
+++ extra-any/PKGBUILD	2012-08-06 09:45:17 UTC (rev 164795)
@@ -0,0 +1,49 @@
+# Maintainer: Justin Davis <jrcd83 at gmail.com>
+# $Id$
+
+pkgname=perl-try-tiny
+pkgver=0.11
+pkgrel=1
+pkgdesc="minimal try/catch with proper localization of \$@"
+arch=(any)
+license=(PerlArtistic GPL)
+options=(!emptydirs)
+makedepends=('perl-extutils-makemaker')
+checkdepends=('perl-test-simple')
+url=https://metacpan.org/release/Try-Tiny
+source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Try-Tiny-${pkgver}.tar.gz")
+md5sums=(4d2c8ff385ac3513edf4c042dd0eacbe)
+sha512sums=(42a98d0996e4195b1618e99080f67791ec9b09c8c4de669aafcbe75c609718d700a6831dd5a68d8f7bda563c29ce3a8495bbf548b8d38a155471875889d8c701)
+_distdir="${srcdir}/Try-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 "$_distdir"
+    /usr/bin/perl Makefile.PL
+    make
+  )
+}
+
+check() {
+  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+    cd "$_distdir"
+    make test
+  )
+}
+
+package() {
+    cd "$_distdir"
+    make DESTDIR="$pkgdir" 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