[arch-commits] Commit in perl-date-calc/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Mar 16 14:18:49 UTC 2020


    Date: Monday, March 16, 2020 @ 14:18:49
  Author: felixonmars
Revision: 377787

quote pkgdir

Modified:
  perl-date-calc/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 14:15:46 UTC (rev 377786)
+++ PKGBUILD	2020-03-16 14:18:49 UTC (rev 377787)
@@ -9,14 +9,14 @@
 pkgdesc="Perl module for Gregorian calendar date calculations"
 arch=(any)
 license=('PerlArtistic')
-url="https://search.cpan.org/dist/${_realname}/"
+url="https://search.cpan.org/dist/Date-Calc/"
 depends=('perl-bit-vector' 'perl')
 options=(!emptydirs)
-source=(https://search.cpan.org/CPAN/authors/id/S/ST/STBEY/${_realname}-${pkgver}.tar.gz)
+source=(https://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Calc-$pkgver.tar.gz)
 md5sums=('69c635070d38c884682bfd4657031a8d')
 
 build() {
-  cd "${srcdir}/${_realname}-${pkgver}"
+  cd Date-Calc-$pkgver
   # install module in vendor directories.
   perl Makefile.PL INSTALLDIRS=vendor
   make
@@ -23,6 +23,6 @@
 }
 
 package() {
-  cd "${srcdir}/${_realname}-${pkgver}"
-  make install DESTDIR=${pkgdir}
+  cd Date-Calc-$pkgver
+  make install DESTDIR="$pkgdir"
 }



More information about the arch-commits mailing list