1 # Generated by Xyne::Arch::CPAN 0.07
3 pkgname=perl-marc-crosswalk-dublincore
6 pkgdesc="Convert data between MARC and Dublin Core"
8 url="http://search.cpan.org/dist/MARC-Crosswalk-DublinCore/"
9 license=('PerlArtistic' 'GPL')
10 source=('http://search.cpan.org/CPAN/authors/id/B/BR/BRICAS/MARC-Crosswalk-DublinCore-0.02.tar.gz')
11 md5sums=('9927560489c7e87aafe57c3a5e7a69ba')
12 sha256sums=('0e759b4c87350ce484f0c135b3d1d343e26aa0429d60e8cef4accb3d3a2fea29')
13 depends=('perl-dublincore-record' 'perl-marc-record' )
17 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
18 if [ ! -z "$_dir" ]; then
20 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
22 make install DESTDIR="${pkgdir}" || return 1
25 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
26 if [ ! -z "$_dir" ]; then
28 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
30 ./Build install destdir=${pkgdir} || return 1
33 echo "error: failed to detect build method for $pkgname"
34 echo "you may be able to fix this by editing the PKGBUILD"
38 # remove perllocal.pod and .packlist
39 find ${pkgdir} -name perllocal.pod -delete
40 find ${pkgdir} -name .packlist -delete
43 # vim:set ts=2 sw=2 et: