1 # vim:set ts=2 sw=2 et ft=sh tw=100: expandtab
2 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
5 _perlmod=Linux-Distribution
6 pkgname=perl-linux-distribution
9 pkgdesc='Perl extension to detect on which Linux distribution we are running'
11 url='http://search.cpan.org/~chorny/Linux-Distribution/'
12 license=('GPL' 'PerlArtistic')
16 source=("http://cpan.perl.org/modules/by-authors/id/C/CH/CHORNY/$_perlmod-$pkgver.tar.gz")
19 cd "$srcdir/$_perlmod-$pkgver"
21 # Install module in vendor directories.
22 PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
26 cd "$srcdir/$_perlmod-$pkgver"
30 cd "$srcdir/$_perlmod-$pkgver"
31 make install DESTDIR="$pkgdir/"
33 # remove perllocal.pod and .packlist
34 find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
37 md5sums=('332dcfcecc3ab730d258e792fdd01d11')