# Description: runtime module handling # URL: https://metacpan.org/pod/Module::Runtime # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: p5-module-build name=p5-module-runtime version=0.018 release=1 source=(https://cpan.metacpan.org/authors/id/H/HA/HAARG/Module-Runtime-$version.tar.gz) unpack_source() { for file in ${source[@]}; do case ${file##*/} in Module-Runtime-$version.tar.gz) echo "Unpacking $(get_filename $file)" bsdtar -p -o -C $SRC -xf $(get_filename $file) ;; *) cp $(get_filename $file) $SRC ;; esac done } build() { cd Module-Runtime-$version PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make make DESTDIR=$PKG install find $PKG -name .packlist -o \ -name perllocal.pod -o \ -name README -o \ -name '*.bs' | xargs rm }