description="Rounded or exact English expression of durations"
url="http://search.cpan.org/dist/Time-Duration/"

packager="Grat-OS Team"

makedepends=(perl-test-pod perl-test-pod-coverage)
run=(perl)

name=perl-time-duration
version=1.21

source=(https://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Time-Duration-$version.tar.gz)

build() {
cd Time-Duration-$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
}
