1 # Contributor Rafael G. Martins <rafael@rafaelmartins.com>
2 # Contributor: Tom K <tomk@runbox.com>
7 pkgdesc="The perl Cache interface"
9 url="http://search.cpan.org/~cleishman/Cache-${pkgver}/"
10 license=('GPL' 'custom: Perl Artistic License')
11 depends=('perl-digest-sha1' 'perl-file-nfslock' 'perl-heap' 'perl-io-string' 'perl-timedate')
12 source=(http://search.cpan.org/CPAN/authors/id/C/CL/CLEISHMAN/Cache-${pkgver}.tar.gz)
13 md5sums=('c64b8dd8f04e101bd20cde0c7c2e3d17')
16 cd ${srcdir}/Cache-${pkgver}
17 echo y | perl Makefile.PL
19 # ugly hack to make install location
20 # compatible with newer versions of perl.
21 # NOTE: if the perl version changes from 5.8.8, change the sed line too
23 sed -i "s:5.8.8:current:g" Makefile
25 make install DESTDIR=${pkgdir}
27 # remove perllocal.pod, .packlist and empty dirs.
28 rm -rf ${pkgdir}/usr/lib/perl5/current ${pkgdir}/usr/lib/perl5/site_perl/current/i686-linux-thread-multi
30 mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
31 install -D -m0644 ${srcdir}/Cache-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/