aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2020-04-04 00:48:53 +0000
committerTimothy Legge <timlegge@gmail.com>2020-04-04 13:33:43 +0000
commit7f202b0ec2c99b47ff7b04b798a75ab45b26c8da (patch)
treef226086b61e61602c7f873800abc6a05351396ae
parente0a4a25bb75bf788ec92c565d3473fab209b5b68 (diff)
downloadaports-7f202b0ec2c99b47ff7b04b798a75ab45b26c8da.tar.gz
aports-7f202b0ec2c99b47ff7b04b798a75ab45b26c8da.tar.bz2
aports-7f202b0ec2c99b47ff7b04b798a75ab45b26c8da.tar.xz
community/perl-appconfig: modernize APKBUILD
-rw-r--r--community/perl-appconfig/APKBUILD17
1 files changed, 8 insertions, 9 deletions
diff --git a/community/perl-appconfig/APKBUILD b/community/perl-appconfig/APKBUILD
index 6fd206ebaf..c8e67b9408 100644
--- a/community/perl-appconfig/APKBUILD
+++ b/community/perl-appconfig/APKBUILD
@@ -1,31 +1,30 @@
-# Automatically generated by apkbuild-cpan, template 1
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-appconfig
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=AppConfig
pkgver=1.71
-pkgrel=2
+pkgrel=3
pkgdesc="AppConfig is a bundle of Perl5 modules for reading configuration files and parsing command line arguments."
-url="https://metacpan.org/release/AppConfig"
+url="https://metacpan.org/release/AppConfig/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
+checkdepends="perl-test-pod"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/AppConfig-$pkgver.tar.gz"
-
builddir="$srcdir/$_pkgreal-$pkgver"
-prepare() {
- default_prepare
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
-}
-
build() {
+ 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
}