updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / perl-marc-xml / PKGBUILD
blob6960fd9bcaa9d79a406399120ed72a5f5577c1ac
1 # Generated by Xyne::Arch::CPAN 0.07
3 pkgname=perl-marc-xml
4 pkgver=0.92
5 pkgrel=1
6 pkgdesc="extension to the MARC-Record distribution for working with XML data encoded using the MARC21slim XML schema from the Library of Congress"
7 arch=('i686' 'x86_64')
8 url="http://search.cpan.org/dist/MARC-XML/"
9 license=('PerlArtistic' 'GPL')
10 source=('http://search.cpan.org/CPAN/authors/id/G/GM/GMCHARLT/MARC-XML-0.92.tar.gz')
11 md5sums=('cc5cb78d22c79deb54242ea13693880a')
12 sha256sums=('00a9a9e2f0752e035a54fd2df539884cd59fc81c97d5d6ceb9ac65671c2df208')
13 depends=('perl-marc-charset>=0.98' 'perl-marc-record>=2' 'perl-xml-sax>=0.12')
14 makedepends=('perl-extutils-makemaker')
15 provides=('perl-marc-file-sax' 'perl-marc-file-xml=0.92')
16 options=(!emptydirs)
18 build() {
19   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL')
20   if [ ! -z "$_dir" ]; then
21     cd $(dirname "$_dir")
22     PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
23     make  || return 1
24     make install DESTDIR="${pkgdir}" || return 1
26   else
27   _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL')
28   if [ ! -z "$_dir" ]; then
29     cd $(dirname "$_dir")
30     PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1
31     ./Build  || return 1
32     ./Build install destdir=${pkgdir} || return 1
34   else
35     echo "error: failed to detect build method for $pkgname"
36     echo "you may be able to fix this by editing the PKGBUILD"
37     return 1
38   fi fi
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: