27 lines
705 B
Plaintext
27 lines
705 B
Plaintext
# Description: Change terminal modes and perform non-blocking reads.
|
|
# URL: http://search.cpan.org/author/JSTOWE/
|
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
|
# Packager: Stoyan Zhekov <zhware@hotpop.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 {} \;
|
|
}
|