Commit | Line | Data |
---|---|---|
d86465a8 H |
1 | # Generated by Xyne::Arch::CPAN 0.07 |
2 | ||
3 | ################################################################################ | |
4 | # WARNING: An error occured when either retrieving or parsing the META.yml file | |
5 | # for this package. The information below is probably incomplete. Please contact | |
6 | # the author on CPAN and kindly inform him/her that this file is missing, | |
7 | # incorrect or malformatted: | |
8 | # CPAN Distribution: Digest-BubbleBabble | |
9 | # Distribution url: http://search.cpan.org/dist/Digest-BubbleBabble/ | |
10 | # META.yml url: http://search.cpan.org/src/BTROTT/Digest-BubbleBabble-0.01/META.yml | |
11 | ################################################################################ | |
12 | ||
13 | pkgname=perl-digest-bubblebabble | |
14 | pkgver=0.10.0 | |
15 | pkgrel=1 | |
206329ec | 16 | pkgdesc="Digest::BubbleBabble Create bubble-babble fingerprints" |
d86465a8 H |
17 | arch=('i686' 'x86_64') |
18 | url="http://search.cpan.org/dist/Digest-BubbleBabble/" | |
19 | license=('unknown') | |
20 | source=('http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/Digest-BubbleBabble-0.01.tar.gz') | |
21 | md5sums=('0e8ef3de82ae909cfaeddf8269140c17') | |
22 | sha256sums=('ac9552108e1b09031ad55dc8fe00c2a0772b7cf4397229d32836614b5562ce75') | |
23 | options=(!emptydirs) | |
24 | ||
25 | build() { | |
26 | _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL') | |
27 | if [ ! -z "$_dir" ]; then | |
28 | cd $(dirname "$_dir") | |
29 | PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 | |
30 | make || return 1 | |
31 | make install DESTDIR="${pkgdir}" || return 1 | |
32 | ||
33 | else | |
34 | _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL') | |
35 | if [ ! -z "$_dir" ]; then | |
36 | cd $(dirname "$_dir") | |
37 | PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor || return 1 | |
38 | ./Build || return 1 | |
39 | ./Build install destdir=${pkgdir} || return 1 | |
40 | ||
41 | else | |
42 | echo "error: failed to detect build method for $pkgname" | |
43 | echo "you may be able to fix this by editing the PKGBUILD" | |
44 | return 1 | |
45 | fi fi | |
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: | |
53 |