aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Legge <timlegge@gmail.com>2021-08-13 17:51:52 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-08-15 20:19:56 +0000
commit241ecb6f01d0d87d650bf0d9a9d693dc67bf5244 (patch)
treea374db813672345181279891f8a52ca0f826c7b5
parent9c30bc4112c3af0170cba55405fe8a11daaba419 (diff)
main/perl-dbd-sqlite: modernize
-rw-r--r--main/perl-dbd-sqlite/APKBUILD32
1 files changed, 13 insertions, 19 deletions
diff --git a/main/perl-dbd-sqlite/APKBUILD b/main/perl-dbd-sqlite/APKBUILD
index 062481a4cc3..e390b9b1566 100644
--- a/main/perl-dbd-sqlite/APKBUILD
+++ b/main/perl-dbd-sqlite/APKBUILD
@@ -1,41 +1,35 @@
+# Automatically generated by apkbuild-cpan, template 3
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbd-sqlite
-_pkgname=DBD-SQLite
+#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
+_pkgreal=DBD-SQLite
pkgver=1.70
-pkgrel=0
-pkgdesc="Perl CPAN DBD::SQLite module"
-url="https://metacpan.org/release/$_pkgname"
+pkgrel=1
+pkgdesc="Self Contained SQLite RDBMS in a DBI Driver"
+url="https://metacpan.org/release/DBD-SQLite/"
arch="all"
-license="GPL PerlArtistic"
-depends="perl-dbi"
-makedepends="perl perl-dev sqlite-dev"
-source="https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/${_pkgname}-$pkgver.tar.gz
+license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+depends="perl perl-dbi"
+makedepends="perl-dev sqlite-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/DBD-SQLite-$pkgver.tar.gz
perl-DBD-SQLite-bz543982.patch
"
-subpackages="$pkgname-dev $pkgname-doc"
-builddir="$srcdir"/${_pkgname}-$pkgver
-
-prepare() {
- cd "$builddir"
- export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
-}
+builddir="$srcdir/$_pkgreal-$pkgver"
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
}