From 3bb451e99e21e5eca3b97937939bee0afa817472 Mon Sep 17 00:00:00 2001
From: Leo <thinkabit.ukim@gmail.com>
Date: Wed, 3 Jul 2019 07:34:56 -0300
Subject: [PATCH] testing/perl-term-size-unix: fix url fix license

---
 testing/perl-term-size-unix/APKBUILD | 22 ++++++++--------------
 1 file changed, 8 insertions(+), 14 deletions(-)

diff --git a/testing/perl-term-size-unix/APKBUILD b/testing/perl-term-size-unix/APKBUILD
index 9bbe56c29108..aca24f071b36 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
 }
 
-- 
GitLab