diff --git a/testing/perl-term-size-unix/APKBUILD b/testing/perl-term-size-unix/APKBUILD index 9bbe56c291085ae8b29edc311ba8420c45edac1a..aca24f071b360093d3b639c4dd0f8f748ca8ca45 100644 --- a/testing/perl-term-size-unix/APKBUILD +++ b/testing/perl-term-size-unix/APKBUILD @@ -4,35 +4,29 @@ pkgname=perl-term-size-unix _pkgreal=Term-Size-Unix pkgver=0.205 -pkgrel=6 +pkgrel=7 pkgdesc="Retrieve terminal size (Unix version)" -url="http://search.cpan.org/dist/Term-Size-Unix/" +url="https://metacpan.org/release/FERREIRA/Term-Size-Unix-$pkgver" arch="all" -license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends=" " -depends="$cpandepends" -makedepends="perl-dev $cpanmakedepends" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +makedepends="perl-dev" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/F/FE/FERREIRA/$_pkgreal-$pkgver.tar.gz" -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make && make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete }