28 lines
614 B
Plaintext
28 lines
614 B
Plaintext
# Description: Perl Terminal Readkey Library.
|
|
# URL: http://search.cpan.org/~jstowe/TermReadKey/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
name=p5-term-readkey
|
|
version=2.37
|
|
release=1
|
|
source=(https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-$version.tar.gz)
|
|
|
|
build() {
|
|
cd TermReadKey-$version
|
|
|
|
perl Makefile.PL
|
|
make OPTIMIZE="$CFLAGS"
|
|
make DESTDIR=$PKG install
|
|
|
|
# Remove perlcrap
|
|
find $PKG -type f \( \
|
|
-name '.packlist' -o \
|
|
-name '*.bs' -o \
|
|
-name 'autosplit.ix' -o \
|
|
-name 'perllocal.pod' \) -delete
|
|
|
|
# Remove empty directories
|
|
find $PKG -depth -empty -delete
|
|
}
|
|
|