[arch-commits] Commit in perl-digest-hmac/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Nov 8 13:20:17 UTC 2018


    Date: Thursday, November 8, 2018 @ 13:20:17
  Author: felixonmars
Revision: 338384

update source and format

Modified:
  perl-digest-hmac/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-08 13:18:55 UTC (rev 338383)
+++ PKGBUILD	2018-11-08 13:20:17 UTC (rev 338384)
@@ -9,29 +9,26 @@
 pkgdesc="Perl Module: Keyed-Hashing for Message Authentication."
 arch=('any')
 license=('PerlArtistic')
-url="http://search.cpan.org/dist/${_realname}/"
-depends=('perl-digest-sha1' 'perl>=5.10.0')
+url="http://search.cpan.org/dist/Digest-HMAC/"
+depends=('perl-digest-sha1' 'perl')
 options=(!emptydirs)
-replaces=('digest-hmac')
-provides=('digest-hmac')
-source=(http://www.cpan.org/authors/id/G/GA/GAAS/${_realname}-${pkgver}.tar.gz)
+source=("https://www.cpan.org/authors/id/G/GA/GAAS/Digest-HMAC-$pkgver.tar.gz")
 md5sums=('e6a5d6f552da16eacb5157ea4369ff9d')
 
 build() {
-  cd ${srcdir}/${_realname}-${pkgver}
-  # install module in vendor directories.
+  cd Digest-HMAC-$pkgver
   PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
   make
 }
 
 check() {
-  cd ${srcdir}/${_realname}-${pkgver}
+  cd Digest-HMAC-$pkgver
   make test
 }
 
 package() {
-  cd ${srcdir}/${_realname}-${pkgver}
-  make install DESTDIR=${pkgdir}
+  cd Digest-HMAC-$pkgver
+  make install DESTDIR="$pkgdir"
 }
 
 # vim: ts=2 sw=2 et ft=sh



More information about the arch-commits mailing list