updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / perl-cache / PKGBUILD
blob4604e8783533235ab0bef2c278870ba9fb0ad764
1 # Contributor Rafael G. Martins <rafael@rafaelmartins.com>
2 # Contributor: Tom K <tomk@runbox.com>
4 pkgname=perl-cache
5 pkgver=2.04
6 pkgrel=4
7 pkgdesc="The perl Cache interface"
8 arch=('i686' 'x86_64')
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')
15 build() {
16   cd ${srcdir}/Cache-${pkgver}
17   echo y | perl Makefile.PL
18   
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
22   
23   sed -i "s:5.8.8:current:g" Makefile
24   make || return 1
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}/