aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-03-21 19:54:12 +0000
committerRasmus Thomsen <oss@cogitri.dev>2020-03-21 20:09:25 +0000
commitbe6477f30f978847459ae61e10b32f30b370b6ee (patch)
tree9c52e293af423e9e8b24fd03daeb72c151f52e11
parent871ed4a6bc808cc692663c6aab25ecee6a78848b (diff)
downloadaports-be6477f30f978847459ae61e10b32f30b370b6ee.tar.gz
aports-be6477f30f978847459ae61e10b32f30b370b6ee.tar.bz2
aports-be6477f30f978847459ae61e10b32f30b370b6ee.tar.xz
community/perl-io-gzip: modernize APKBUILD
-rw-r--r--community/perl-io-gzip/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/community/perl-io-gzip/APKBUILD b/community/perl-io-gzip/APKBUILD
index 5160e75beb..bd202fc361 100644
--- a/community/perl-io-gzip/APKBUILD
+++ b/community/perl-io-gzip/APKBUILD
@@ -1,25 +1,29 @@
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-io-gzip
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=PerlIO-gzip
pkgver=0.20
-pkgrel=4
+pkgrel=5
pkgdesc="Perl extension to provide a PerlIO layer to gzip/gunzip"
-url="https://metacpan.org/pod/IO::Compress::Gzip"
+url="https://metacpan.org/release/PerlIO-gzip/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NW/NWCLARK/PerlIO-gzip-$pkgver.tar.gz"
-
-builddir="$srcdir/PerlIO-gzip-$pkgver"
+builddir="$srcdir/$_pkgreal-$pkgver"
build() {
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}