diff options
Diffstat (limited to 'main/perl-dbd-odbc')
-rw-r--r-- | main/perl-dbd-odbc/APKBUILD | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/main/perl-dbd-odbc/APKBUILD b/main/perl-dbd-odbc/APKBUILD index 8d67da7d9b..b3f3a22e08 100644 --- a/main/perl-dbd-odbc/APKBUILD +++ b/main/perl-dbd-odbc/APKBUILD @@ -1,9 +1,9 @@ # Contributor: Jeff Bilyk <jbilyk at gmail> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-dbd-odbc -_realpkgname=DBD-ODBC -pkgver=1.56 -pkgrel=1 +_pkgname=DBD-ODBC +pkgver=1.57 +pkgrel=0 pkgdesc="Perl CPAN DBD::ODBC module" url="http://search.cpan.org/dist/DBD-ODBC/" arch="all" @@ -12,25 +12,30 @@ 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"/${_realpkgname}-$pkgver +builddir="$srcdir"/${_pkgname}-$pkgver prepare() { - return 0 + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 + 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" + cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="fdbe7a1fada61bc7c9a1ddaeff21b7ed DBD-ODBC-1.56.tar.gz" -sha256sums="d20a899881b2cf033052af4055cda1f5e9ab2720999cf2832518509ac6869cdc DBD-ODBC-1.56.tar.gz" -sha512sums="374bf0f87bbb84128f5999670aee228185d6741a2364745a6dd268068ea53b73f6c8756da60052ae86ec74a335b583d0ae93c449f620c467f1d1fba84fcfa805 DBD-ODBC-1.56.tar.gz" +sha512sums="bba91af1ab5fea0914889d95472ca0c9ef53f6593ea0b4236191a29c10cba99d0d09de3e8e4d2d81b8051d5077927c2c44537bc7a9de4e06e964df40ced93327 DBD-ODBC-1.57.tar.gz" |