diff options
author | Jimmy Xu | 2020-09-27 21:55:30 +0000 |
---|---|---|
committer | Jimmy Xu | 2020-09-27 21:55:30 +0000 |
commit | e0dc21ad0d313d3965728182eefcad5f192d7bf5 (patch) | |
tree | fc4196d418500afff0f72b2f4d49970d849d1d9b | |
parent | 4f99ed03e075a4fd5f2f2cd05a592e9fcd46f1fc (diff) | |
download | aur-e0dc21ad0d313d3965728182eefcad5f192d7bf5.tar.gz |
perl-test-time: 0.08-1
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 57 |
2 files changed, 28 insertions, 39 deletions
@@ -1,16 +1,16 @@ pkgbase = perl-test-time pkgdesc = Overrides the time() and sleep() core functions for testing - pkgver = 0.04 + pkgver = 0.08 pkgrel = 1 url = http://search.cpan.org/dist/Test-Time arch = any - license = PerlArtistic license = GPL + license = PerlArtistic + depends = perl depends = perl-test-name-fromline options = !emptydirs - source = http://search.cpan.org/CPAN/authors/id/S/SA/SATOH/Test-Time-0.04.tar.gz - md5sums = 006c4b2134f33d8dc98ecf545d4f8508 - sha512sums = 99d258d8257dd858eab5f95211c8bb2c071155c63ec6af577541f7446c75c39329d249e9fd43d9d688d7c30a104953aa0b3774aec9b3ffc0fd96d1947d844c24 + source = http://cpan.perl.org/modules/by-module/Test/Test-Time-0.08.tar.gz + sha256sums = b8bc3b074bb2247e8588399c1e55d071f049cf6ce1c8b4192c38cf3c24559548 pkgname = perl-test-time @@ -1,50 +1,39 @@ +# Maintainer: Jimmy Xu <me at jimmyxu dot org> # Contributor: John D Jones III <j[nospace]n[nospace]b[nospace]e[nospace]k[nospace]1972 -_AT_- the domain name google offers a mail service at ending in dot com> -# Generator : CPANPLUS::Dist::Arch 1.25 -pkgname='perl-test-time' -pkgver='0.04' -pkgrel='1' +_perlmod='Test-Time' +_modnamespace=Test +pkgname=perl-test-time +pkgver=0.08 +pkgrel=1 pkgdesc="Overrides the time() and sleep() core functions for testing" -arch=('any') -license=('PerlArtistic' 'GPL') +arch=("any") +url="http://search.cpan.org/dist/$_perlmod" +license=('GPL' 'PerlArtistic') +depends=('perl' 'perl-test-name-fromline') options=('!emptydirs') -depends=('perl-test-name-fromline') -makedepends=() -url='http://search.cpan.org/dist/Test-Time' -source=('http://search.cpan.org/CPAN/authors/id/S/SA/SATOH/Test-Time-0.04.tar.gz') -md5sums=('006c4b2134f33d8dc98ecf545d4f8508') -sha512sums=('99d258d8257dd858eab5f95211c8bb2c071155c63ec6af577541f7446c75c39329d249e9fd43d9d688d7c30a104953aa0b3774aec9b3ffc0fd96d1947d844c24') -_distdir="Test-Time-0.04" +source=("http://cpan.perl.org/modules/by-module/$_modnamespace/$_perlmod-$pkgver.tar.gz") +sha256sums=('b8bc3b074bb2247e8588399c1e55d071f049cf6ce1c8b4192c38cf3c24559548') build() { - ( 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 + cd "$srcdir/$_perlmod-$pkgver" - cd "$srcdir/$_distdir" - /usr/bin/perl Makefile.PL - make - ) + # Install module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make } check() { - cd "$srcdir/$_distdir" - ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" - make test - ) + cd "$srcdir/$_perlmod-$pkgver" + + # Install module in vendor directories. + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor + make test } package() { - cd "$srcdir/$_distdir" - make install - - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + cd "$srcdir/$_perlmod-$pkgver" + make install DESTDIR="$pkgdir/" } -# Local Variables: -# mode: shell-script -# sh-basic-offset: 2 -# End: # vim:set ts=2 sw=2 et: |