[arch-commits] Commit in perl-uri/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Nov 8 12:48:23 UTC 2018
Date: Thursday, November 8, 2018 @ 12:48:23
Author: felixonmars
Revision: 338372
update source and format
Modified:
perl-uri/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-11-08 12:47:14 UTC (rev 338371)
+++ PKGBUILD 2018-11-08 12:48:23 UTC (rev 338372)
@@ -3,34 +3,32 @@
# Contributor: Firmicus <francois.archlinux.org>
pkgname=perl-uri
-_realname=URI
pkgver=1.74
pkgrel=2
pkgdesc="Uniform Resource Identifiers (absolute and relative)"
arch=('any')
-url="http://search.cpan.org/dist/${_realname}/"
+url="http://search.cpan.org/dist/URI/"
license=('PerlArtistic')
depends=('perl')
checkdepends=('perl-test-needs')
provides=('perl-uri-escape=3.30')
options=('!emptydirs')
-source=("http://cpan.metacpan.org/authors/id/E/ET/ETHER/${_realname}-${pkgver}.tar.gz")
+source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/URI-$pkgver.tar.gz")
sha512sums=('b537bd09c355989a2bb1919e2c228cf189e57f993add4246fa482d8ee5ec814266c6fb3229befce2f294456ee784a819d9a54013c43a2ad41b5d8914fabf046b')
build() {
- cd "${srcdir}/${_realname}-$pkgver"
- # install module in vendor directories.
+ cd URI-$pkgver
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "${srcdir}/${_realname}-${pkgver}"
+ cd URI-$pkgver
make test
}
package() {
- cd "${srcdir}/${_realname}-$pkgver"
- make install DESTDIR="${pkgdir}"
+ cd URI-$pkgver
+ make install DESTDIR="$pkgdir"
}
# vim: ts=2 sw=2 et ft=sh
More information about the arch-commits
mailing list