blob: f015faba1cdbf322ded0fb76e1dc8cba4bb73df2 (
plain) (
tree)
|
|
# Contributor: Jeff Bilyk <jbilyk at gmail>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-dbd-sqlite
_pkgreal=DBD-SQLite
_author=ISHIGAKI
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.72
pkgrel=0
pkgdesc="Perl DBI SQLite module"
url="https://metacpan.org/release/DBD-SQLite"
arch="all"
license="GPL-2.0-only OR Artistic-1.0-Perl"
depends="perl-dbi"
makedepends="perl-dev sqlite-dev"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz
perl-DBD-SQLite-bz543982.patch
"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="67a90c618a3626b3ae0b333b5eb4d4d0c8c13712bbcd50c135bf74e83dc252301664089803597c1bcbebf7f1eda040673d4438e70e2dae0aef3b8ebeeecd2f79 DBD-SQLite-1.72.tar.gz
00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49 perl-DBD-SQLite-bz543982.patch"
|