[arch-commits] Commit in (4 files)

Justin Davis juster at archlinux.org
Fri Jan 13 22:14:00 UTC 2012


    Date: Friday, January 13, 2012 @ 17:14:00
  Author: juster
Revision: 146594

Generated new PKGBUILD for perl-common-sense.

Added:
  perl-common-sense/
  perl-common-sense/repos/
  perl-common-sense/trunk/
  perl-common-sense/trunk/PKGBUILD

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

Added: perl-common-sense/trunk/PKGBUILD
===================================================================
--- perl-common-sense/trunk/PKGBUILD	                        (rev 0)
+++ perl-common-sense/trunk/PKGBUILD	2012-01-13 22:14:00 UTC (rev 146594)
@@ -0,0 +1,48 @@
+# Packager: Justin Davis <jrcd83 at gmail.com>
+# $Id$
+
+pkgname=perl-common-sense
+pkgver=3.4
+pkgrel=1
+pkgdesc="save a tree AND a kitten, use common::sense!"
+arch=(any)
+license=(PerlArtistic GPL)
+options=(!emptydirs)
+depends=('perl')
+url=https://metacpan.org/release/common-sense
+source=("http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/common-sense-${pkgver}.tar.gz")
+md5sums=(b87ef7ea6f068afdf7a05b67e7600885)
+sha512sums=(ff35160351315667d6cca4617a374674c8015dee9bc90ef4be206691a5bd3094a2a00fd6d3bb5bcbc76d915e18730a59ffe74868d449d2d156e841c728ed0c54)
+_distdir="${srcdir}/common-sense-${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:


Property changes on: perl-common-sense/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id



More information about the arch-commits mailing list