1 # Generated by Xyne::Arch::CPAN 0.07
6 pkgdesc="API for the OAI-PMH"
8 url="http://search.cpan.org/dist/HTTP-OAI/"
10 source=('http://search.cpan.org/CPAN/authors/id/T/TI/TIMBRODY/HTTP-OAI-3.27.tar.gz')
11 md5sums=('592ec27f161af28c62bb4b3fceaba4cf')
12 sha256sums=('a36b8562ac725a0e3cc1d2ac63bf8d6ce12700786e9dbf982df3c8b64d3278ae')
13 depends=('perl-cgi' 'perl-encode>=2.12' 'perl-http-message' 'perl-libwww>=6.02' 'perl-uri' 'perl-xml-libxml>=1.6' 'perl-xml-sax')
14 makedepends=('perl-extutils-makemaker')
15 provides=('perl-http-oai-debug' 'perl-http-oai-encapsulation' 'perl-http-oai-error' 'perl-http-oai-getrecord' 'perl-http-oai-harvester' 'perl-http-oai-header' 'perl-http-oai-headers' 'perl-http-oai-identify' 'perl-http-oai-listidentifiers' 'perl-http-oai-listmetadataformats' 'perl-http-oai-listrecords' 'perl-http-oai-listsets' 'perl-http-oai-metadata' 'perl-http-oai-metadata-mets' 'perl-http-oai-metadata-oai_dc' 'perl-http-oai-metadata-oai_eprints' 'perl-http-oai-metadata-oai_identifier' 'perl-http-oai-metadataformat' 'perl-http-oai-partiallist' 'perl-http-oai-record' 'perl-http-oai-repository' 'perl-http-oai-response' 'perl-http-oai-resumptiontoken' 'perl-http-oai-saxhandler' 'perl-http-oai-set' 'perl-http-oai-useragent')
19 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
20 if [ ! -z "$_dir" ]; then
22 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
24 make install DESTDIR="${pkgdir}" || return 1
27 _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
28 if [ ! -z "$_dir" ]; then
30 PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
32 ./Build install destdir=${pkgdir} || return 1
35 echo "error: failed to detect build method for $pkgname"
36 echo "you may be able to fix this by editing the PKGBUILD"
40 # remove perllocal.pod and .packlist
41 find ${pkgdir} -name perllocal.pod -delete
42 find ${pkgdir} -name .packlist -delete
45 # vim:set ts=2 sw=2 et: