diff options
Diffstat (limited to 'main/perl-dbd-sqlite')
-rw-r--r-- | main/perl-dbd-sqlite/APKBUILD | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/main/perl-dbd-sqlite/APKBUILD b/main/perl-dbd-sqlite/APKBUILD index c1e008feea..61c24bac93 100644 --- a/main/perl-dbd-sqlite/APKBUILD +++ b/main/perl-dbd-sqlite/APKBUILD @@ -1,47 +1,44 @@ # Contributor: Jeff Bilyk <jbilyk at gmail> # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=perl-dbd-sqlite -_realpkgname=DBD-SQLite -pkgver=1.54 -pkgrel=1 +_pkgname=DBD-SQLite +pkgver=1.56 +pkgrel=0 pkgdesc="Perl CPAN DBD::SQLite module" -url="http://search.cpan.org/dist/${_realpkgname}" +url="http://search.cpan.org/dist/$_pkgname" arch="all" license="GPL PerlArtistic" depends="perl-dbi" makedepends="perl perl-dev sqlite-dev" -source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/${_realpkgname}-$pkgver.tar.gz +source="http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/${_pkgname}-$pkgver.tar.gz perl-DBD-SQLite-bz543982.patch " subpackages="$pkgname-dev $pkgname-doc" - -_builddir="$srcdir"/${_realpkgname}-$pkgver +builddir="$srcdir"/${_pkgname}-$pkgver prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + cd "$builddir" + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - CC="${CC:-gcc}" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make OPTIMIZE="$CFLAGS" || 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" - make DESTDIR="$pkgdir" install || return 1 - # creates file collision among perl modules - find "$pkgdir" -name perllocal.pod -delete + cd "$builddir" + make DESTDIR="$pkgdir" install + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="8f835ddacb9a4a92a52bbe2d24d18a8e DBD-SQLite-1.54.tar.gz -1e4c06fb631f6357f21d0acb5e3027bc perl-DBD-SQLite-bz543982.patch" -sha256sums="3929a6dbd8d71630f0cb57f85dcef9588cd7ac4c9fa12db79df77b9d3a4d7269 DBD-SQLite-1.54.tar.gz -e0491021edd7234276d222f79be6be9987cde463707efdd0b4dfa857b3721568 perl-DBD-SQLite-bz543982.patch" -sha512sums="a8daff59679973467dff80c013b6ff9d7229a505b62c0312bdf7f9288af64dcd2e99f889b66eb98103b0e6ac7a9b0fa7c9c517c5c2673ee7f84b3b6b5d26173e DBD-SQLite-1.54.tar.gz +sha512sums="1c9be3557691f76a9e543fe4bd6656a6b82f53fba4bc05261a55affa0a38b4eaa1cf876da975234c9c09985ba25b21f6f7a735f1cc47104169edf7fdd3a2e314 DBD-SQLite-1.56.tar.gz 00961932f9f89d9b46e6134150c2628aadd4cfa7159cb1604de023fedc919087fbf982b72fd51610e1ca390234cd939e74430b270131d0b30cedb97ba6203b49 perl-DBD-SQLite-bz543982.patch" |