1 # Contributor: Eduardo Reveles <me@osiux.ws>
2 # Generated by Xyne::Arch::CPAN 0.07
4 pkgname=perl-class-gomor
7 pkgdesc="another class and object builder"
9 url="http://search.cpan.org/dist/Class-Gomor/"
11 source=('http://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/Class-Gomor-1.02.tar.gz')
12 md5sums=('287c3b3be72fcb4a4089fe232b8b1002')
13 sha256sums=('f67476f9d2d8f6d3a0d769ba1687d8b5aad77ee0f85210efb8602a2b470a533c')
14 depends=('perl-data-dumper')
15 makedepends=('perl-extutils-makemaker')
16 provides=('perl-class-gomor-array=1.20.0' 'perl-class-gomor-hash=1.20.0')
20 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
21 if [ ! -z "$_dir" ]; then
23 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
25 make install DESTDIR="${pkgdir}" || return 1
28 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
29 if [ ! -z "$_dir" ]; then
31 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
33 ./Build install destdir=${pkgdir} || return 1
36 echo "error: failed to detect build method for $pkgname"
37 echo "you may be able to fix this by editing the PKGBUILD"
41 # remove perllocal.pod and .packlist
42 find ${pkgdir} -name perllocal.pod -delete
43 find ${pkgdir} -name .packlist -delete
46 # vim:set ts=2 sw=2 et: