contrib/p5-inline/Pkgfile
2006-11-13 21:12:21 +01:00

28 lines
756 B
Plaintext

# Description: Write Perl subroutines in other programming languages.
# URL: http://search.cpan.org/~ingy/Inline-0.44/
# Maintainer: Han Boetes <han@mijncomputer.nl>
# Packager: Han Boetes <han@mijncomputer.nl>
# Depends on: perl
name=p5-inline
capsname=Inline
version=0.44
release=1
source="http://www.cpan.org/modules/by-module/${capsname%%-*}/$capsname-$version.tar.gz"
build()
{
cd $capsname-$version
yes y|perl Makefile.PL
make OPTIMIZE="$CFLAGS"
make install DESTDIR=$PKG
# Remove perlcrap
find $PKG \
-name .packlist -or \
-name '*.bs' -or \
-name autosplit.ix -or \
-name perllocal.pod | xargs rm
# Remove empty directories
find $PKG -depth -empty -exec rm -rf {} \;
}