summaryrefslogtreecommitdiffstats
path: root/abs/extra/perl-class-inspector/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 20:40:43 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 20:40:43 (GMT)
commitaabd8ccff050f41a7586e71feca478419a2e7c49 (patch)
tree69810341ef6ff6bfefa8a339e3d9f3f5abe464a8 /abs/extra/perl-class-inspector/PKGBUILD
parent4c1bc778c13c9b0adbd96814a1122f4361d8ac89 (diff)
downloadlinhes_pkgbuild-aabd8ccff050f41a7586e71feca478419a2e7c49.zip
linhes_pkgbuild-aabd8ccff050f41a7586e71feca478419a2e7c49.tar.gz
linhes_pkgbuild-aabd8ccff050f41a7586e71feca478419a2e7c49.tar.bz2
perl-class-inspector: 1.27
Diffstat (limited to 'abs/extra/perl-class-inspector/PKGBUILD')
-rw-r--r--abs/extra/perl-class-inspector/PKGBUILD59
1 files changed, 39 insertions, 20 deletions
diff --git a/abs/extra/perl-class-inspector/PKGBUILD b/abs/extra/perl-class-inspector/PKGBUILD
index fd138b8..5eb8012 100644
--- a/abs/extra/perl-class-inspector/PKGBUILD
+++ b/abs/extra/perl-class-inspector/PKGBUILD
@@ -1,29 +1,48 @@
-#$Id:$
+# Maintainer: Justin "juster" Davis <jrcd83@gmail.com>
+# $Id: PKGBUILD 150510 2012-02-18 11:51:33Z allan $
+
pkgname=perl-class-inspector
-_realname=Class-Inspector
-pkgver=1.24
+pkgver=1.27
pkgrel=1
-pkgdesc="'Get information about a class and its structure'"
-arch=(i686 x86_64)
-license=('GPL' 'Artistic')
-url="http://search.cpan.org/~adamk/Class-Inspector"
+pkgdesc="Get information about a class and its structure"
+arch=(any)
+license=(PerlArtistic GPL)
options=(!emptydirs)
-depends=('perl>=5.10.0')
-provides=('class-inspector=1.24' 'Class::Inspector=1.24' 'perl-class-inspector=1.24' 'Class::Inspector::Functions=1.24' 'perl-class-inspector-functions=1.24')
-source=(http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Class-Inspector-1.24.tar.gz)
-md5sums=('609189b49f64d329a6e413e0a6d8724a')
+depends=('perl>=5.6.0')
+url=http://search.cpan.org/dist/Class-Inspector
+source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Class-Inspector-${pkgver}.tar.gz")
+md5sums=('52e6391cae3c2abdfcd1d450b42bba7e')
+sha512sums=('e16786d32c695863b474036c494efa5ee2ea84f5c460e49fa58bb645c0332810796ddb81865f30e1c942a697556af9e26b47a4dc4300c10da37fde499f9507d8')
+_distdir="${srcdir}/Class-Inspector-${pkgver}"
build() {
- cd "${srcdir}/${_realname}-${pkgver}"
- # install module in vendor directories.
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
- make
- make install DESTDIR=${pkgdir}
+ ( 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
- # remove perllocal.pod and .packlist
- find ${pkgdir} -name perllocal.pod -delete
- find ${pkgdir} -name .packlist -delete
+ cd "$_distdir"
+ /usr/bin/perl Makefile.PL
+ make
+ )
}
-# vim:set ts=2 sw=2 et:
+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: