Guest User

Untitled

a guest
Mar 19th, 2016
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Subject: [PATCH] Update to 1.71; Make changes as per Perl package guidelines in Arch Wiki
  2.  
  3. ---
  4. .SRCINFO | 10 ++++++----
  5.  PKGBUILD | 36 +++++++++++++++++++-----------------
  6.  2 files changed, 25 insertions(+), 21 deletions(-)
  7.  
  8. diff --git a/.SRCINFO b/.SRCINFO
  9. index 8d73cbd..32e9545 100644
  10. --- a/.SRCINFO
  11. +++ b/.SRCINFO
  12. @@ -1,7 +1,9 @@
  13. +# Generated by mksrcinfo v8
  14. +# Sat Mar 19 18:18:30 UTC 2016
  15.  pkgbase = perl-module-starter
  16.     pkgdesc = a simple starter kit for any module
  17. -   pkgver = 1.62
  18. -   pkgrel = 2
  19. +   pkgver = 1.71
  20. +   pkgrel = 1
  21.     url = http://search.cpan.org/dist/Module-Starter
  22.     arch = any
  23.     license = PerlArtistic
  24. @@ -9,8 +11,8 @@ pkgbase = perl-module-starter
  25.     depends = perl
  26.     depends = perl-path-class
  27.     options = !emptydirs
  28. -   source = http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/Module-Starter-1.62.tar.gz
  29. -   sha256sums = ff08a7b9690f54709b7c0bc8bbb6df26209e4c7a7e6194f0697c5bbeb71ee5c3
  30. +   source = http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/Module-Starter-1.71.tar.gz
  31. +   sha256sums = e1b967f5c6b21cdfad0fe1eafd5681705d79bb5696db02ad9b5327e157bb050a
  32.  
  33.  pkgname = perl-module-starter
  34.  
  35. diff --git a/PKGBUILD b/PKGBUILD
  36. index cfdf945..3bcebf1 100644
  37. --- a/PKGBUILD
  38. +++ b/PKGBUILD
  39. @@ -2,37 +2,39 @@
  40.  # CPAN Name: Module-Starter
  41.  
  42.  pkgname=perl-module-starter
  43. -pkgver=1.62
  44. -pkgrel=2
  45. +pkgver=1.71
  46. +pkgrel=1
  47.  pkgdesc='a simple starter kit for any module'
  48. +_dist=Module-Starter
  49.  arch=('any')
  50. -url='http://search.cpan.org/dist/Module-Starter'
  51. +url="http://search.cpan.org/dist/$_dist"
  52.  license=('PerlArtistic' 'GPL')
  53.  depends=('perl' 'perl-path-class')
  54.  options=('!emptydirs')
  55. -source=("http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/Module-Starter-${pkgver}.tar.gz")
  56. -sha256sums=('ff08a7b9690f54709b7c0bc8bbb6df26209e4c7a7e6194f0697c5bbeb71ee5c3')
  57. +source=("http://search.cpan.org/CPAN/authors/id/X/XS/XSAWYERX/$_dist-$pkgver.tar.gz")
  58. +sha256sums=('e1b967f5c6b21cdfad0fe1eafd5681705d79bb5696db02ad9b5327e157bb050a')
  59.  
  60.  build() {
  61. -   cd "${srcdir}/Module-Starter-${pkgver}"
  62. -
  63. -   export PERL_AUTOINSTALL=--skipdeps PERL_MM_USE_DEFAULT=1
  64. -   perl Makefile.PL INSTALLDIRS=vendor
  65. -   make
  66. +  cd "$srcdir/$_dist-$pkgver"
  67. +  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  68. +  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
  69. +  /usr/bin/perl Makefile.PL
  70. +  make
  71.  }
  72.  
  73.  check() {
  74. -   cd "${srcdir}/Module-Starter-${pkgver}"
  75. -
  76. -   make test
  77. +  cd "$srcdir/$_dist-$pkgver"
  78. +  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  79. +  export PERL_MM_USE_DEFAULT=1
  80. +  make test
  81.  }
  82.  
  83.  
  84.  package() {
  85. -   cd "${srcdir}/Module-Starter-${pkgver}"
  86. -
  87. -   make DESTDIR="${pkgdir}" install
  88. +  cd "$srcdir/$_dist-$pkgver"
  89. +  unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
  90. +  make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
  91.  
  92. -   find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
  93. +  find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
  94.  }
  95.  
  96. --
  97. 2.7.4
RAW Paste Data