blob: b415bad63eb93fb776c5ca60a99f9c630411d266 (
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.74
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="46bb26ffac07ca6d25d44101bd59fe7ebb397d159154fe10528e4ca4ee270e62159a40be0325099237ce28fb6ce11b5dc1da5396c3e9a3e0e03062a65c16cbab DBD-SQLite-1.74.tar.gz
00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49 perl-DBD-SQLite-bz543982.patch"
|