xscreensaver deps updated
[mirrors/ArchLinux-Packages.git] / perl-astro-moonphase / PKGBUILD
CommitLineData
209feeb0
H
1# PKGBUILD generated by pacpan
2pkgname=perl-astro-moonphase
3_realname=Astro-MoonPhase
4pkgver=0.60
5pkgrel=1
6pkgdesc="Perl/CPAN module Astro::MoonPhase Information about the phase of the Moon"
7arch=(any)
8license=('unrestricted')
9url="http://search.cpan.org/~brett/Astro-MoonPhase"
10options=(!emptydirs)
11
12depends=('perl')
13
14#provides=('Astro-MoonPhase')
15provides=('astro-moonphase=0.60' 'Astro::MoonPhase=0.60' 'perl-astro-moonphase=0.60')
16
17source=(http://search.cpan.org/CPAN/authors/id/B/BR/BRETT/Astro-MoonPhase-0.60.tar.gz)
18md5sums=('746d03558509d5b596f2c92bc8100372')
19
20build() {
21 _expected_dir="${srcdir}/${_realname}-${pkgver}"
22 if [ -d "$_expected_dir" ]; then
23 cd "$_expected_dir"
24 else
25 _expected_dir="${srcdir}/$(bsdtar -t -f $(basename $source) | head -n1)"
26 if [ -d "$_expected_dir" ]; then
27 cd "$_expected_dir"
28 else
29 _makefile=$(find $srcdir -iname Makefile.PL)
30 if [ ! -z "$_makefile" ]; then
31 _expected_dir=$(dirname $_makefile)
32 if [ -d "$_expected_dir" ]; then
33 cd "$_expected_dir"
34 else
35 echo "\e[1;31mERROR\e[0m unable to detect source directory"
36 echo "\e[1;34m-->\e[0m this is often due to CPAN's lack of standard naming conventions"
37 echo "\e[1;34m-->\e[0m it may be possible to fix this by adjusting the build function in the PKGBUILD"
38 fi
39 fi
40 fi
41 fi
42 # install module in vendor directories.
43 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
44 make || return 1
45 make install DESTDIR=${pkgdir} || return 1
46
47 # remove perllocal.pod and .packlist
48 find ${pkgdir} -name perllocal.pod -delete
49 find ${pkgdir} -name .packlist -delete
50}
51
52# vim:set ts=2 sw=2 et:
This page took 0.158581 seconds and 4 git commands to generate.