blob: 8ca186cea01b99d0843e6231b8c62739d1e4bab0 (
plain)
1 # Description: Extract distribution name and version from a distribution filename
2 # URL: http://github.com/gbarr/CPAN-DistnameInfo
3 # Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
4 # Depends on: perl
5
6 name=p5-cpan-distnameinfo
7 version=0.12
8 release=1
9 source=(http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/CPAN-DistnameInfo-0.12.tar.gz)
10
11 build(){
12 cd CPAN-DistnameInfo-$version
13
14 perl Makefile.PL
15 make OPTIMIZE="$CFLAGS" DESTDIR="$PKG" install
16
17 find "$PKG" -depth \
18 -type f \( -name .packlist -o -name \*.bs -o -name autosplit.ix -o -name perllocal.pod \) -delete , \
19 -type d -empty -exec rmdir {} +
20 }
|