aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-term-size/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-03 07:35:36 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-03 07:35:36 -0300
commit5031454716db53c2051a68e73788e20143c9c2f8 (patch)
tree5ac184f653485152f9d00a944a7dadbbc11fdc20 /testing/perl-term-size/APKBUILD
parent3bb451e99e21e5eca3b97937939bee0afa817472 (diff)
downloadaports-5031454716db53c2051a68e73788e20143c9c2f8.tar.bz2
aports-5031454716db53c2051a68e73788e20143c9c2f8.tar.xz
testing/perl-term-size: fix url fix license
Diffstat (limited to 'testing/perl-term-size/APKBUILD')
-rw-r--r--testing/perl-term-size/APKBUILD17
1 files changed, 6 insertions, 11 deletions
diff --git a/testing/perl-term-size/APKBUILD b/testing/perl-term-size/APKBUILD
index 575588ec41..64221c7dee 100644
--- a/testing/perl-term-size/APKBUILD
+++ b/testing/perl-term-size/APKBUILD
@@ -4,36 +4,31 @@
pkgname=perl-term-size
_pkgreal=Term-Size
pkgver=0.209
-pkgrel=1
+pkgrel=2
pkgdesc="Retrieve terminal size (Unix version)"
-url="http://search.cpan.org/dist/Term-Size/"
+url="https://metacpan.org/release/Term-Size"
arch="all"
-license="GPL PerlArtistic"
-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"
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
}
check() {
- cd "$builddir"
make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}