diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2019-04-08 07:37:26 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-04-08 07:43:03 +0000 |
commit | 9ffdea290baf9967acb0fd9a4c7897024b443328 (patch) | |
tree | 9fa9ba018b2d3a02df565e3d96d64ee7a3b639d1 /testing | |
parent | 180168f330cd1fdafece8f206659ae0ee4f1cbc5 (diff) | |
download | aports-9ffdea290baf9967acb0fd9a4c7897024b443328.tar.bz2 aports-9ffdea290baf9967acb0fd9a4c7897024b443328.tar.xz |
testing/perl-term-size: upgrade to 0.209
Diffstat (limited to 'testing')
-rw-r--r-- | testing/perl-term-size/APKBUILD | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/testing/perl-term-size/APKBUILD b/testing/perl-term-size/APKBUILD index 7c7975eb33..72d498a6c4 100644 --- a/testing/perl-term-size/APKBUILD +++ b/testing/perl-term-size/APKBUILD @@ -1,6 +1,6 @@ # Automatically generated by apkbuild-cpan, template 1 -# Contributor: Francesco Colista <francesco.colista@gmail.com> -# Maintainer: Francesco Colista <francesco.colista@gmail.com> +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-term-size _pkgreal=Term-Size pkgver=0.209 @@ -9,30 +9,32 @@ pkgdesc="Retrieve terminal size (Unix version)" url="http://search.cpan.org/dist/Term-Size/" arch="all" license="GPL PerlArtistic" -cpandepends="" -cpanmakedepends=" " depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" 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" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" + cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |