aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2021-08-13 07:43:36 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-08-15 20:19:56 +0000
commit9c30bc4112c3af0170cba55405fe8a11daaba419 (patch)
tree2cb83525f99a621684b3482dc24982039ee1c3d3
parentba285207e16ec96cedf309760312985eadee3840 (diff)
downloadaports-9c30bc4112c3af0170cba55405fe8a11daaba419.tar.gz
aports-9c30bc4112c3af0170cba55405fe8a11daaba419.tar.bz2
aports-9c30bc4112c3af0170cba55405fe8a11daaba419.tar.xz
main/perl-dbi: modernize
-rw-r--r--main/perl-dbi/APKBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/main/perl-dbi/APKBUILD b/main/perl-dbi/APKBUILD
index 920d367de2..1a91f9a277 100644
--- a/main/perl-dbi/APKBUILD
+++ b/main/perl-dbi/APKBUILD
@@ -1,18 +1,20 @@
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbi
-_realpkgname=DBI
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=DBI
pkgver=1.643
-pkgrel=2
+pkgrel=3
pkgdesc="Database independent interface for Perl"
-url="https://metacpan.org/release/DBI"
+url="https://metacpan.org/release/DBI/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-$pkgver.tar.gz"
-builddir="$srcdir"/$_realpkgname-$pkgver
+builddir="$srcdir/$_pkgreal-$pkgver"
# secfixes:
# 1.643-r0:
@@ -21,18 +23,21 @@ builddir="$srcdir"/$_realpkgname-$pkgver
# - CVE-2014-10402
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
}
package() {
make DESTDIR="$pkgdir" install
- # creates file collision among perl modules
- find "$pkgdir" -name perllocal.pod -delete
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="03812f3eb1e43c8290dadb8cb14bbced9ec6e237228ea2a2ba91f22e52143906a91a7e82945dab30b1d1b9fc925073721111adafd9a09fac070808ab88f908b8 DBI-1.643.tar.gz"
+sha512sums="
+03812f3eb1e43c8290dadb8cb14bbced9ec6e237228ea2a2ba91f22e52143906a91a7e82945dab30b1d1b9fc925073721111adafd9a09fac070808ab88f908b8 DBI-1.643.tar.gz
+"