[arch-commits] Commit in perl-html-tagset/trunk (PKGBUILD)

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


    Date: Monday, March 16, 2020 @ 14:20:56
  Author: felixonmars
Revision: 377789

quote pkgdir

Modified:
  perl-html-tagset/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 14:20:01 UTC (rev 377788)
+++ PKGBUILD	2020-03-16 14:20:56 UTC (rev 377789)
@@ -3,22 +3,19 @@
 # Contributor: Manolis Tzanidakis
 
 pkgname=perl-html-tagset
-_realname=HTML-Tagset
 pkgver=3.20
 pkgrel=8
 pkgdesc="Data tables useful in parsing HTML"
 arch=('any')
 license=('PerlArtistic')
-url="https://search.cpan.org/dist/${_realname}/"
-depends=('perl>=5.10.0')
-replaces=('html-tagset')
-provides=('html-tagset')
+url="https://search.cpan.org/dist/HTML-Tagset/"
+depends=('perl')
 options=(!emptydirs)
-source=(https://www.cpan.org/authors/id/P/PE/PETDANCE/${_realname}-${pkgver}.tar.gz)
+source=(https://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tagset-$pkgver.tar.gz)
 md5sums=('d2bfa18fe1904df7f683e96611e87437')
 
 build() {
-  cd ${srcdir}/${_realname}-${pkgver}
+  cd HTML-Tagset-$pkgver
   # install module in vendor directories.
   perl Makefile.PL INSTALLDIRS=vendor
   make
@@ -25,13 +22,13 @@
 }
 
 check() {
-  cd ${srcdir}/${_realname}-${pkgver}
+  cd HTML-Tagset-$pkgver
   make test
 }
 
 package() {
-  cd ${srcdir}/${_realname}-${pkgver}
-  make install DESTDIR=${pkgdir}
+  cd HTML-Tagset-$pkgver
+  make install DESTDIR="$pkgdir"
 }
 
 # vim: ts=2 sw=2 et ft=sh



More information about the arch-commits mailing list