aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-class-dbi/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/perl-class-dbi/APKBUILD')
-rw-r--r--community/perl-class-dbi/APKBUILD31
1 files changed, 11 insertions, 20 deletions
diff --git a/community/perl-class-dbi/APKBUILD b/community/perl-class-dbi/APKBUILD
index 4962decf2c..6b63eb950a 100644
--- a/community/perl-class-dbi/APKBUILD
+++ b/community/perl-class-dbi/APKBUILD
@@ -1,43 +1,34 @@
-# 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-class-dbi
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Class-DBI
pkgver=3.0.17
-pkgrel=3
+pkgrel=4
pkgdesc="Simple Database Abstraction"
url="https://metacpan.org/release/Class-DBI/"
arch="noarch"
-license="GPL PerlArtistic"
-cpandepends="perl-universal-moniker perl-ima-dbi perl-clone
-perl-class-data-inheritable perl-class-accessor perl-class-trigger"
-cpanmakedepends=""
-depends="$cpandepends"
-makedepends="perl-dev $cpanmakedepends"
-checkdepends="perl-dbd-pg perl-dbd-sqlite perl-date-simple perl-test-pod"
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl perl-class-accessor perl-class-trigger perl-universal-moniker perl-class-data-inheritable perl-ima-dbi perl-clone"
+makedepends="perl-dev"
+checkdepends="perl-dbd-sqlite perl-date-simple perl-dbd-pg"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/T/TM/TMTM/$_pkgreal-v$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/T/TM/TMTM/Class-DBI-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-v$pkgver"
-prepare() {
- default_prepare
-
- cd "$builddir"
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
-}
-
build() {
- cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$builddir"
+ export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}