1 # PKGBUILD generated by pacpan
2 pkgname=perl-rose-object
6 pkgdesc="A simple object base class."
9 url="http://search.cpan.org/~jsiracusa/Rose-Object"
12 depends=('perl>=5.8.9')
15 #provides=('Rose-Object')
16 provides=('rose-object=0.855' 'Rose::Object::MakeMethods::DateTime=0.81' 'perl-rose-object-makemethods-datetime=0.81' 'Rose::Object=0.855' 'perl-rose-object=0.855' 'Rose::Object::MakeMethods=0.85' 'perl-rose-object-makemethods=0.85' 'Rose::Object::MakeMethods::Generic=0.855' 'perl-rose-object-makemethods-generic=0.855' 'Rose::Object::MixIn=0.852' 'perl-rose-object-mixin=0.852' 'Rose::Class=0.81' 'perl-rose-class=0.81' 'Rose::Class::MakeMethods::Set=0.81' 'perl-rose-class-makemethods-set=0.81' 'Rose::Class::MakeMethods::Generic=0.854' 'perl-rose-class-makemethods-generic=0.854')
18 source=(http://search.cpan.org/CPAN/authors/id/J/JS/JSIRACUSA/Rose-Object-0.855.tar.gz)
19 md5sums=('d9632687f60e78cf5b5ea4f2a0384c53')
22 _expected_dir="${srcdir}/${_realname}-${pkgver}"
23 if [ -d "$_expected_dir" ]; then
26 _expected_dir="${srcdir}/$(bsdtar -t -f $(basename $source) | head -n1)"
27 if [ -d "$_expected_dir" ]; then
30 _makefile=$(find $srcdir -iname Makefile.PL)
31 if [ ! -z "$_makefile" ]; then
32 _expected_dir=$(dirname $_makefile)
33 if [ -d "$_expected_dir" ]; then
36 echo "
\e[1;31mERROR
\e[0m unable to detect source directory"
37 echo "
\e[1;34m-->
\e[0m this is often due to CPAN's lack of standard naming conventions"
38 echo "
\e[1;34m-->
\e[0m it may be possible to fix this by adjusting the build function in the PKGBUILD"
43 # install module in vendor directories.
44 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
46 make install DESTDIR=${pkgdir} || return 1
48 # remove perllocal.pod and .packlist
49 find ${pkgdir} -name perllocal.pod -delete
50 find ${pkgdir} -name .packlist -delete