1 # Generated by Xyne::Arch::CPAN 0.07
2 # Maintainer: yugrotavele <yugrotavele at archlinux dot us>
4 pkgname=perl-set-intspan
8 pkgdesc="Manages sets of integers, newsrc style"
10 url="http://search.cpan.org/dist/Set-IntSpan/"
11 license=('PerlArtistic')
12 source=('http://search.cpan.org/CPAN/authors/id/S/SW/SWMCD/Set-IntSpan-1.13.tar.gz')
13 md5sums=('c1633328e9bfece889abe0949992ce04')
14 sha256sums=('5231af7ddf85789724d134d8874553caeb859909fd4164d30d2c0c41dfb3b79c')
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