[arch-commits] Commit in (4 files)

Justin Davis juster at archlinux.org
Thu Aug 18 13:03:46 UTC 2011


    Date: Thursday, August 18, 2011 @ 09:03:45
  Author: juster
Revision: 135751

Adds the perl-lwp-mediatypes packages.

Added:
  perl-lwp-mediatypes/
  perl-lwp-mediatypes/repos/
  perl-lwp-mediatypes/trunk/
  perl-lwp-mediatypes/trunk/PKGBUILD

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

Added: perl-lwp-mediatypes/trunk/PKGBUILD
===================================================================
--- perl-lwp-mediatypes/trunk/PKGBUILD	                        (rev 0)
+++ perl-lwp-mediatypes/trunk/PKGBUILD	2011-08-18 13:03:45 UTC (rev 135751)
@@ -0,0 +1,52 @@
+# Maintainer : Justin "juster" Davis <jrcd83 at gmail.com>
+# Generator  : pbjam 0.01
+# $Id$
+
+pkgname=perl-lwp-mediatypes
+pkgver=6.01
+pkgrel=1
+pkgdesc="guess media type for a file or a URL"
+arch=(any)
+license=(PerlArtistic GPL)
+options=('!emptydirs')
+depends=('perl>=5.8.8')
+makedepends=()
+checkdepends=()
+conflicts=('perl-libwww<6')
+url=http://search.cpan.org/dist/LWP-MediaTypes
+source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/LWP-MediaTypes-6.01.tar.gz)
+md5sums=(3cd1ccb774867b5b20e672981b230db6)
+sha512sums=(cc1b375f2b7c889b91ce4296340fc67395ddfbede7251c431c884050d1633262668d095c24c078d4bf50a85465c2e0edf60cdd5640a18686b3691f77090f0d5b)
+_distdir="${srcdir}/LWP-MediaTypes-6.01"
+
+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-lwp-mediatypes/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id




More information about the arch-commits mailing list