forked from ports/contrib
32 lines
759 B
Plaintext
32 lines
759 B
Plaintext
# Description: Perl Terminal Readkey Library.
|
|
# URL: http://search.cpan.org/~jstowe/TermReadKey-2.30/
|
|
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
|
|
# Packager: Stoyan Zhekov zhware at hotpop dot com
|
|
#
|
|
# Depends on: perl
|
|
|
|
name=p5-term-readkey
|
|
version=2.30
|
|
release=1
|
|
source=(http://www.cpan.org/modules/by-module/Term/TermReadKey-$version.tar.gz)
|
|
|
|
build() {
|
|
cd TermReadKey-$version
|
|
|
|
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 {} \;
|
|
|
|
chown -R root:root $PKG
|
|
}
|