[arch-commits] Commit in perl-file-basedir/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Mar 16 14:20:02 UTC 2020


    Date: Monday, March 16, 2020 @ 14:20:01
  Author: felixonmars
Revision: 377788

quote pkgdir

Modified:
  perl-file-basedir/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 14:18:49 UTC (rev 377787)
+++ PKGBUILD	2020-03-16 14:20:01 UTC (rev 377788)
@@ -3,22 +3,21 @@
 # Contributor: K. Piche <kpiche at rogers.com>
 
 pkgname=perl-file-basedir
-_realname=File-BaseDir
 pkgver=0.08
 pkgrel=3
 pkgdesc='Use the Freedesktop.org base directory specification'
 arch=('any')
 license=('GPL' 'PerlArtistic')
-url="https://search.cpan.org/dist/${_realname}/"
+url="https://search.cpan.org/dist/File-BaseDir/"
 depends=('perl-ipc-system-simple')
 makedepends=('perl-module-build>0.4205')
 checkdepends=('perl-test-pod' 'perl-test-pod-coverage' 'perl-file-which' 'xdg-user-dirs')
 options=('!emptydirs')
-source=("https://search.cpan.org/CPAN/authors/id/K/KI/KIMRYAN/${_realname}-$pkgver.tar.gz")
+source=("https://search.cpan.org/CPAN/authors/id/K/KI/KIMRYAN/File-BaseDir-$pkgver.tar.gz")
 sha512sums=('6b44edca34906c34d574933c21c0e3a1a236a431a3ac12caeabcc2638688dfe1c02efc9a1e75a2c2cd522de0dca00df0620cd262c184ec938cc97766d1121f99')
 
 build() {
-  cd "${srcdir}/${_realname}-${pkgver}"
+  cd File-BaseDir-$pkgver
   perl Makefile.PL INSTALLDIRS=vendor
   make
 }
@@ -25,11 +24,11 @@
 
 check() {
   mkdir .config
-  cd "${srcdir}/${_realname}-${pkgver}"
+  cd File-BaseDir-$pkgver
   HOME="$srcdir" make test
 }
 
 package() {
-  cd ${srcdir}/${_realname}-${pkgver}
-  make install DESTDIR=${pkgdir}
+  cd File-BaseDir-$pkgver
+  make install DESTDIR="$pkgdir"
 }



More information about the arch-commits mailing list