[arch-commits] Commit in perl-mp3-info/trunk (PKGBUILD)

Justin Davis juster at archlinux.org
Tue Feb 21 20:34:18 UTC 2012


    Date: Tuesday, February 21, 2012 @ 15:34:17
  Author: juster
Revision: 150767

Regenerate PKGBUILD. Sign package.

Modified:
  perl-mp3-info/trunk/PKGBUILD

----------+
 PKGBUILD |   53 ++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 38 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-21 20:29:37 UTC (rev 150766)
+++ PKGBUILD	2012-02-21 20:34:17 UTC (rev 150767)
@@ -1,25 +1,48 @@
+# Packager: Justin "juster" Davis <jrcd83 at gmail.com>
 # $Id$
-# Maintainer: <francois.at.archlinux.org>
-# Contributor: Tom K <tomk at runbox.com>
 
 pkgname=perl-mp3-info
-_realname=MP3-Info
 pkgver=1.24
 pkgrel=2
 pkgdesc="Manipulate / fetch info from MP3 audio files"
-arch=('any')
-url="http://search.cpan.org/dist/${_realname}/"
-depends=('perl>=5.10.0')
-license=('GPL')
-source=(http://www.cpan.org/authors/id/D/DA/DANIEL/${_realname}-${pkgver}.tar.gz)
+arch=(any)
+license=(PerlArtistic GPL)
 options=(!emptydirs)
-md5sums=('fb4bcc43764e3b46c3a7c74b50ed7a44')
+depends=('perl')
+url=https://metacpan.org/release/MP3-Info
+source=("http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/MP3-Info-${pkgver}.tar.gz")
+md5sums=(fb4bcc43764e3b46c3a7c74b50ed7a44)
+sha512sums=(5cefb01b369921d49a5db9b5456e29054b993d8ef083dfa3a66b3a10b1a409162f7329f8dcf5ed96966651de5de093f4e5325f545559622d034e39ad33589701)
+_distdir="${srcdir}/MP3-Info-${pkgver}"
 
-build() {
-  cd  ${srcdir}/${_realname}-${pkgver}
-  # install module in vendor directories.
-  /usr/bin/perl Makefile.PL INSTALLDIRS=vendor
-  /usr/bin/make
-  /usr/bin/make DESTDIR=${pkgdir} install
+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