[arch-commits] Commit in perl-net-server/trunk (PKGBUILD)

Justin Davis juster at archlinux.org
Tue Feb 21 15:25:19 EST 2012


    Date: Tuesday, February 21, 2012 @ 15:25:19
  Author: juster
Revision: 150761

Regenerate PKGBUILD. Bump pkgrel to 2.

Modified:
  perl-net-server/trunk/PKGBUILD	(contents, properties)

----------+
 PKGBUILD |   63 +++++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 41 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-21 20:01:08 UTC (rev 150760)
+++ PKGBUILD	2012-02-21 20:25:19 UTC (rev 150761)
@@ -1,29 +1,48 @@
-# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
-# Maintainer: Firmicus <francois.archlinux.org> 
-# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Contributor: Wael Nasreddine <wael at phoenixlinux.org>
-# Contributor: Guillermo A. Amaral <me at guillermoamaral.com> (thewonka)
+# Packager: Justin "juster" Davis <jrcd83 at gmail.com>
+# $Id$
 
 pkgname=perl-net-server
-_cpanname=Net-Server
 pkgver=0.99
-pkgrel=1
+pkgrel=2
 pkgdesc="Extensible, general Perl server engine"
-arch=any
-url="http://search.cpan.org/dist/${_cpanname}"
-license=("GPL")
-options=('!emptydirs')
-source=(http://www.cpan.org/authors/id/R/RH/RHANDOM/${_cpanname}-$pkgver.tar.gz)
+arch=(any)
+license=(PerlArtistic GPL)
+options=(!emptydirs)
+depends=('perl')
+url=https://metacpan.org/release/Net-Server
+source=("http://search.cpan.org/CPAN/authors/id/R/RH/RHANDOM/Net-Server-${pkgver}.tar.gz")
+md5sums=(1ae03dff8b1009216a2e5d8f4c9a47b1)
+sha512sums=(e9d233657a116cab054f269f73e0c341d265871238076850d43e1fbeb9a99e5abedf09a1c5f95834ef14de834c993f772820a380083c8a28b174360b4b8056fe)
+_distdir="${srcdir}/Net-Server-${pkgver}"
 
-build() {
-  cd  $srcdir/${_cpanname}-$pkgver
-  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
-  make || return 1
-}
+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  $srcdir/${_cpanname}-$pkgver
-  make install DESTDIR=$pkgdir || return 1
-  find $pkgdir -name '.packlist' -delete
-  find $pkgdir -name '*.pod' -delete
+    cd "$_distdir"
+    make DESTDIR="$pkgdir" install
+    find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
 }
-md5sums=('1ae03dff8b1009216a2e5d8f4c9a47b1')
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et:


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


More information about the arch-commits mailing list