[arch-commits] Commit in (4 files)

Justin Davis juster at archlinux.org
Tue Aug 30 17:44:53 UTC 2011


    Date: Tuesday, August 30, 2011 @ 13:44:53
  Author: juster
Revision: 136590

Adds perl-html-form package; CPAN dist HTML-Form.

Added:
  perl-html-form/
  perl-html-form/repos/
  perl-html-form/trunk/
  perl-html-form/trunk/PKGBUILD

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

Added: perl-html-form/trunk/PKGBUILD
===================================================================
--- perl-html-form/trunk/PKGBUILD	                        (rev 0)
+++ perl-html-form/trunk/PKGBUILD	2011-08-30 17:44:53 UTC (rev 136590)
@@ -0,0 +1,49 @@
+# Maintainer : Justin "juster" Davis <jrcd83 at gmail.com>
+# Generator  : pbjam 0.01
+# $Id$
+
+pkgname=perl-html-form
+pkgver=6.00
+pkgrel=1
+pkgdesc="Class that represents an HTML form element"
+arch=(any)
+license=(PerlArtistic GPL)
+options=(!emptydirs)
+depends=('perl>=5.8.8' 'perl-html-parser' 'perl-http-message' 'perl-uri>=1.10')
+url=http://search.cpan.org/dist/HTML-Form
+source=("http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Form-${pkgver}.tar.gz")
+md5sums=(3ed73402b8f825c5c5060f05105610f4)
+sha512sums=(f4006fe90f6f1953554da9aeaa437c485e0c4ed7730a5539e0c502238cf425396f659b20e7d4a690372c6fcaaeae10d419e96ce0948d75ba457173bf08f35223)
+_distdir="${srcdir}/HTML-Form-${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