aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-config-inifiles
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2018-04-09 14:58:01 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-04-09 14:59:26 +0000
commit5c16b6d4bc89135df65922ec789914ef1b364c10 (patch)
tree86ca46d6d3d1465b9cc50abc560eb58853080bdb /main/perl-config-inifiles
parent950e952d1ef3244818c7380ec5c5db8cffb513c4 (diff)
downloadaports-5c16b6d4bc89135df65922ec789914ef1b364c10.tar.bz2
aports-5c16b6d4bc89135df65922ec789914ef1b364c10.tar.xz
main/perl-config-inifiles: modernize APKBUILD, add check()
Diffstat (limited to 'main/perl-config-inifiles')
-rw-r--r--main/perl-config-inifiles/APKBUILD29
1 files changed, 19 insertions, 10 deletions
diff --git a/main/perl-config-inifiles/APKBUILD b/main/perl-config-inifiles/APKBUILD
index de94f30100..b77a009e38 100644
--- a/main/perl-config-inifiles/APKBUILD
+++ b/main/perl-config-inifiles/APKBUILD
@@ -1,9 +1,9 @@
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-config-inifiles
-_pkgreal=Config-IniFiles
+_pkgname=Config-IniFiles
pkgver=2.96
-pkgrel=0
+pkgrel=1
pkgdesc="A module for reading .ini-style configuration files."
url="http://search.cpan.org/dist/Config-IniFiles/"
arch="noarch"
@@ -13,23 +13,32 @@ cpanmakedepends="perl-io-stringy"
depends="$cpandepends"
makedepends="perl-dev perl-module-build $cpanmakedepends"
subpackages="$pkgname-doc"
-source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/${_pkgreal}-${pkgver}.tar.gz"
-
-_builddir="$srcdir/$_pkgreal-$pkgver"
+source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/${_pkgname}-${pkgver}.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
- cd "$_builddir"
+ default_prepare
+
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
- cd "$_builddir"
- make && make test
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ make
+}
+
+check() {
+ cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ 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
}