diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-12 02:23:45 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-12 02:23:45 +0000 |
commit | 812211cdd4c0ced2967a4e25b5c6bd1c9dd39fb1 (patch) | |
tree | 760dd29c274d08b97ef4b391874e6d9dae738f5b /community | |
parent | 5adff0b77c5d710bcc7ed4b4c5eb2080a23b2064 (diff) | |
download | aports-812211cdd4c0ced2967a4e25b5c6bd1c9dd39fb1.tar.bz2 aports-812211cdd4c0ced2967a4e25b5c6bd1c9dd39fb1.tar.xz |
community/perl-io-gzip: modernize and add check
Diffstat (limited to 'community')
-rw-r--r-- | community/perl-io-gzip/APKBUILD | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/community/perl-io-gzip/APKBUILD b/community/perl-io-gzip/APKBUILD index 11137ad639..eb05757328 100644 --- a/community/perl-io-gzip/APKBUILD +++ b/community/perl-io-gzip/APKBUILD @@ -2,38 +2,32 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=perl-io-gzip pkgver=0.20 -pkgrel=0 +pkgrel=1 pkgdesc="Perl extension to provide a PerlIO layer to gzip/gunzip" url="http://search.cpan.org/dist/PerlIO-gzip/" arch="all" license="GPL" -depends="" depends_dev="perl-dev zlib-dev" makedepends="$depends_dev" -install="" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/N/NW/NWCLARK/PerlIO-gzip-$pkgver.tar.gz" -_builddir="$srcdir"/PerlIO-gzip-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/PerlIO-gzip-$pkgver" build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + cd "$builddir" + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + 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 } |