contrib/p5-term-readkey/Pkgfile

30 lines
693 B
Plaintext
Raw Normal View History

2007-01-01 10:25:28 +01:00
# Description: Perl Terminal Readkey Library.
2008-03-18 11:37:23 +01:00
# URL: http://search.cpan.org/~jstowe/TermReadKey-2.30/
2008-03-26 03:45:31 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
2008-03-18 11:37:23 +01:00
# Packager: Stoyan Zhekov zhware at hotpop dot com
# Depends on:
2007-01-01 10:25:28 +01:00
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"
2008-03-18 11:37:23 +01:00
make DESTDIR=$PKG install
2007-01-01 10:25:28 +01:00
# Remove perlcrap
2008-07-13 16:14:30 +02:00
find $PKG -type f \( \
-name '.packlist' -o \
-name '*.bs' -o \
-name 'autosplit.ix' -o \
-name 'perllocal.pod' \) -delete
2007-01-01 10:25:28 +01:00
2008-07-13 16:14:30 +02:00
# Remove empty directories
find $PKG -depth -empty -delete
2007-01-01 10:25:28 +01:00
}
2008-03-18 11:37:23 +01:00