blob: 01b6d38f2ec924338f55a75fa93a30118687e54a (
plain)
1 # Description: Perl Terminal Readkey Library.
2 # URL: https://metacpan.org/release/TermReadKey
3 # Maintainer: Danny Rawlins, crux at romster dot me
4
5 name=p5-term-readkey
6 version=2.38
7 release=1
8 source=(https://cpan.metacpan.org/authors/id/J/JS/JSTOWE/TermReadKey-$version.tar.gz)
9
10 build() {
11 cd TermReadKey-$version
12
13 perl Makefile.PL
14 make OPTIMIZE="$CFLAGS"
15 make DESTDIR=$PKG install
16
17 # Remove perlcrap
18 find $PKG -type f \( \
19 -name '.packlist' -o \
20 -name '*.bs' -o \
21 -name 'autosplit.ix' -o \
22 -name 'perllocal.pod' \) -delete
23
24 # Remove empty directories
25 find $PKG -depth -empty -delete
26 }
|