makedepends=(perl)
run=(perl)

description="Provide an interface to TTYs and PTYs"
url="URL: http://search.cpan.org/dist/IO-Tty/"

packager="Grat-OS Team"
maintainer="Grat-OS Team"

name=perl-io-tty
version=1.20
release=5

source=(http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/IO-Tty-$version.tar.gz)

build() {
cd IO-Tty-$version

perl Makefile.PL

make OPTIMIZE="$CFLAGS" || exit 1
make install INSTALLDIRS=vendor DESTDIR=$PKG || exit 1

# Remove perllocal.pod and .packlist if present in the package
for i in perllocal.pod .packlist; do
    find $PKG -name "$i" -exec rm -rf {} \;
done
}
