diff options
author | sL1pKn07 | 2017-09-24 19:19:48 +0200 |
---|---|---|
committer | sL1pKn07 | 2017-09-24 19:19:48 +0200 |
commit | 37eb79d7c264f5181ece9a4648abc9a6fdc57559 (patch) | |
tree | facd5205c286413acce68dfac97b6c0b409c9a72 | |
parent | 6dd4cedf24ba33b1272da0d987b3704deb409c78 (diff) | |
download | aur-37eb79d7c264f5181ece9a4648abc9a6fdc57559.tar.gz |
Fix build
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 57 |
2 files changed, 41 insertions, 22 deletions
@@ -1,7 +1,9 @@ +# Generated by mksrcinfo v8 +# Sun Sep 24 17:19:39 UTC 2017 pkgbase = perl-test-use-ok pkgdesc = Alternative to Test::More::use_ok pkgver = 0.11 - pkgrel = 2 + pkgrel = 3 url = http://search.cpan.org/~audreyt/Test-use-ok arch = any license = perl @@ -13,7 +15,7 @@ pkgbase = perl-test-use-ok provides = perl-test-use-ok=0.11 options = !emptydirs source = http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/Test-use-ok-0.11.tar.gz - md5sums = 014364cc2f0df651d8416ebb60451f18 + sha256sums = 014364cc2f0df651d8416ebb60451f18 pkgname = perl-test-use-ok @@ -1,32 +1,49 @@ -pkgname='perl-test-use-ok' -_realname='Test-use-ok' -pkgver='0.11' -pkgrel=2 +pkgname=perl-test-use-ok +_realname=Test-use-ok +pkgver=0.11 +pkgrel=3 pkgdesc="Alternative to Test::More::use_ok" arch=('any') license=('perl') -url="http://search.cpan.org/~audreyt/Test-use-ok" +url='http://search.cpan.org/~audreyt/Test-use-ok' options=(!emptydirs) - depends=('perl>=5.8.9') - -provides=('test-use-ok=0.11' 'ok=0.11' 'perl-ok=0.11' 'Test::use::ok=0.11' 'perl-test-use-ok=0.11') - +provides=('test-use-ok=0.11' + 'ok=0.11' + 'perl-ok=0.11' + 'Test::use::ok=0.11' + 'perl-test-use-ok=0.11' + ) source=('http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/Test-use-ok-0.11.tar.gz') -md5sums=('014364cc2f0df651d8416ebb60451f18') +sha256sums=('014364cc2f0df651d8416ebb60451f18') build() { -cd "$_realname-$pkgver" -# install module in vendor directories. -export PERL_MM_USE_DEFAULT=1 -perl Makefile.PL -make + cd "${_realname}-${pkgver}" + # install module in vendor directories. + ( export PERL_MM_USE_DEFAULT=1 \ + PERL5LIB="${srcdir}/${_realname}-${pkgver}" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \ + PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \ + MODULEBUILDRC=/dev/null + + /usr/bin/perl Makefile.PL + make + ) } + +check() { + cd "${_realname}-${pkgver}" + ( export PERL_MM_USE_DEFAULT=1 \ + PERL5LIB="${srcdir}/${_realname}-${pkgver}" + + make test + ) +} + package() { -cd "$_realname-$pkgver" -make install INSTALLDIRS=vendor DESTDIR=${pkgdir} + cd "${_realname}-${pkgver}" + make install -# remove perllocal.pod and .packlist -find ${pkgdir} -name perllocal.pod -delete -find ${pkgdir} -name .packlist -delete + find "${pkgdir}" -name '.packlist' -o -name 'perllocal.pod' -delete } |