perl: add check stage, adopt.

This commit is contained in:
Leah Neukirchen 2019-09-24 22:46:22 +02:00
parent 1d97f0235c
commit 9750dc2d04

View file

@ -7,8 +7,9 @@ build_style=gnu-configure
hostmakedepends="less"
makedepends="zlib-devel bzip2-devel gdbm-devel db-devel"
depends="less"
checkdepends="iana-etc perl-AnyEvent perl-Test-Pod procps-ng"
short_desc="Practical Extraction and Report Language"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Artistic-1.0-perl, GPL-1.0-or-later"
homepage="https://www.perl.org"
distfiles="https://www.cpan.org/src/5.0/perl-${version}.tar.gz
@ -194,6 +195,11 @@ do_configure() {
}
}
do_check() {
export LD="$CC"
TEST_JOBS=${XBPS_MAKEJOBS} make test
}
post_install() {
find ${DESTDIR}/usr/share -type f -exec chmod 644 {} \;
find ${DESTDIR}/usr/lib -type f -exec chmod 644 {} \;