# Contributor: Jeff Bilyk # Maintainer: Leonardo Arena pkgname=perl-dbd-odbc _pkgname=DBD-ODBC pkgver=1.60 pkgrel=1 pkgdesc="Perl CPAN DBD::ODBC module" url="http://search.cpan.org/dist/DBD-ODBC/" arch="all" license="GPL PerlArtistic" depends="perl perl-dbi" makedepends="perl perl-dev unixodbc-dev" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MJ/MJEVANS/DBD-ODBC-$pkgver.tar.gz" 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 } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') 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 } sha512sums="35a365ff305e412c59cb24e6be4f06d2f0fab15154023689a14c928af87a801dad26f95ab91212469dd3e3170a1b7b73aac660b306c25f87d2fd2e02c03048ed DBD-ODBC-1.60.tar.gz"