diff options
author | xRemaLx | 2016-04-26 13:06:22 +0300 |
---|---|---|
committer | xRemaLx | 2016-04-26 13:06:22 +0300 |
commit | 65573aa79a7eca182822a53cddae38842bbb2bfd (patch) | |
tree | 0b132fe4872a439e510604ee27abcdd900d87ecb | |
parent | 418758f6e8a8fe524ba21a8d155a4c8afa6a0398 (diff) | |
download | aur-65573aa79a7eca182822a53cddae38842bbb2bfd.tar.gz |
Update build process
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 41 insertions, 16 deletions
@@ -1,8 +1,10 @@ +# Generated by mksrcinfo v8 +# Tue Apr 26 10:05:15 UTC 2016 pkgbase = perl-dbix-contextualfetch pkgdesc = Add contextual fetches to DBI pkgver = 1.03 - pkgrel = 1 - url = http://search.cpan.org/~tmtm/DBIx-ContextualFetch-1.03/lib/DBIx/ContextualFetch.pm + pkgrel = 2 + url = http://search.cpan.org/dist/DBIx-ContextualFetch/ arch = any license = GPL license = PerlArtistic @@ -10,7 +12,7 @@ pkgbase = perl-dbix-contextualfetch depends = perl-dbi options = !emptydirs source = http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/DBIx-ContextualFetch-1.03.tar.gz - md5sums = 20a78432ae26b266216b7b30ff7941c3 + sha512sums = e563bb56026bc8f15ced939696caaa1532aa71def6603cf3e941016a1337ca090053e30c582623413af50008ea8f4c62981cb94a4f75d423d53d015300c66885 pkgname = perl-dbix-contextualfetch @@ -1,25 +1,48 @@ +# Maintainer: xRemaLx <anton.komolov@gmail.com> # Contributor: Ben Webb <bjwebb67 at googlemail dot com> + pkgname=perl-dbix-contextualfetch +_pkgname='DBIx-ContextualFetch' pkgver=1.03 -pkgrel=1 +pkgrel=2 pkgdesc="Add contextual fetches to DBI" arch=(any) -url="http://search.cpan.org/~tmtm/DBIx-ContextualFetch-1.03/lib/DBIx/ContextualFetch.pm" license=('GPL' 'PerlArtistic') -depends=('perl>=5.10.0' 'perl-dbi') options=(!emptydirs) -source=(http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/DBIx-ContextualFetch-$pkgver.tar.gz) -md5sums=('20a78432ae26b266216b7b30ff7941c3') +depends=('perl>=5.10.0' 'perl-dbi') +makedepends=() +url="http://search.cpan.org/dist/DBIx-ContextualFetch/" +source=("http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/${_pkgname}-${pkgver}.tar.gz") +sha512sums=('e563bb56026bc8f15ced939696caaa1532aa71def6603cf3e941016a1337ca090053e30c582623413af50008ea8f4c62981cb94a4f75d423d53d015300c66885') build() { - cd "$srcdir/DBIx-ContextualFetch-$pkgver" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null - # install module in vendor directories. - perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 - make install DESTDIR=${pkgdir} || return 1 + cd "${srcdir}/${_pkgname}-${pkgver}" + /usr/bin/perl Makefile.PL + make + ) +} - # remove perllocal.pod and .packlist - find "$pkgdir" -name perllocal.pod -delete - find "$pkgdir" -name .packlist -delete +check() { + cd "${srcdir}/${_pkgname}-${pkgver}" + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" + make test + ) } + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make install + find "$pkgdir" -name .packlist -o -name perllocal.pod -delete +} + +# Local Variables: +# mode: shell-script +# sh-basic-offset: 2 +# End: +# vim:set ts=2 sw=2 et: |