aports/main/perl-dbd-sqlite/APKBUILD
2024-10-20 22:05:29 +00:00

49 lines
1.4 KiB
Text

# Automatically generated by apkbuild-cpan, template 4
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-dbd-sqlite
pkgver=1.76
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=DBD-SQLite
pkgdesc="Self Contained SQLite RDBMS in a DBI Driver"
url="https://metacpan.org/release/DBD-SQLite/"
arch="all"
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
"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
INSTALLDIRS=vendor \
NO_PACKLIST=1 \
NO_PERLLOCAL=1
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
}
doc() {
local file; find "$pkgdir" -name "*.pod" | while read -r file; do
amove "${file#"$pkgdir"}"
done
default_doc
}
sha512sums="
3c2d9f2dc9a544b03474913d416e09a3aa5ce74c9359603211dfd6ad7dfa91fd9920480ab3e1572ba8bea486372477214471a8859b9d88f384a1edfebc3ff926 DBD-SQLite-1.76.tar.gz
00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49 perl-DBD-SQLite-bz543982.patch
"