diff options
Diffstat (limited to 'testing/perl-term-size')
-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 } |