summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMilo Mirate2015-06-08 11:20:09 -0400
committerMilo Mirate2015-06-08 11:20:09 -0400
commit4061a53340031ee17cfbd1632fd387da8bd30cb9 (patch)
tree4159fef29edf0b08a860e8da1a5e3e8bb75b67a7 /PKGBUILD
downloadaur-perl-object-destroyer.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3e1db5e3678
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Contributor: Anonymous
+# Generator : CPANPLUS::Dist::Arch 1.25
+
+pkgname='perl-object-destroyer'
+pkgver='2.01'
+pkgrel='1'
+pkgdesc="Make objects with circular references DESTROY normally"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl>=5.006')
+makedepends=()
+url='http://search.cpan.org/dist/Object-Destroyer'
+source=('http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Object-Destroyer-2.01.tar.gz')
+md5sums=('092ab6314bc5dc366ba2437a9739e194')
+sha512sums=('ee507d8e2e7d0661c6e1a0842f95495a36d79087083d7aa870233b854face37914c796bbe009782cf08e98696ea6a4da0f55b7e4007a2463b42f16329e3a26c3')
+_distdir="Object-Destroyer-2.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 "$srcdir/$_distdir"
+ /usr/bin/perl Makefile.PL
+ make
+ )
+}
+
+check() {
+ cd "$srcdir/$_distdir"
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ make test
+ )
+}
+
+package() {
+ cd "$srcdir/$_distdir"
+ make 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: