Commit c853f217 authored by Jason St. John's avatar Jason St. John Committed by Dave Reisner
Browse files

PKGBUILD-perl.proto: Download sources by-module instead of by-author

CPAN apparently changed the by-authors download URL structures because
http://cpan.perl.org/modules/by-authors/id/$_author/

 does not work
anymore. The directory structure appears to be 'by-authors/id/<first
letter>/<first two letters>/$_author', which significantly reduces the
usefulness of _author in the default PKGBUILD.

I changed the source array to download by-module instead of by-author to
make things simple. The _author variable is no longer needed, and I
added a _modnamespace variable to handle CPAN's URL format.
Signed-off-by: default avatarJason St. John <jstjohn@purdue.edu>
parent 97581d79
......@@ -3,18 +3,22 @@
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# See http://wiki.archlinux.org/index.php/Perl_Package_Guidelines for more
# See https://wiki.archlinux.org/index.php/Perl_Package_Guidelines for more
# information on Perl packaging.
#
# _modnamespace is for the module's namespace. For example, use "Text" if the
# module name is Text::CSV::Unicode.
#
# Maintainer: Your Name <youremail@domain.com>
_author=AUTHOR_NAME
_perlmod=MODNAME
_modnamespace=MODULE-NAMESPACE
pkgname=perl-$_perlmod
pkgver=VERSION
pkgrel=1
pkgdesc=""
arch=()
url="http://search.cpan.org/~$_author/$_perlmod-$pkgver/"
url="http://search.cpan.org/dist/$_perlmod"
license=('GPL' 'PerlArtistic')
groups=()
depends=('perl>=5.10.0')
......@@ -23,9 +27,9 @@ provides=()
conflicts=()
replaces=()
backup=()
options=(!emptydirs)
options=('!emptydirs')
install=
source=(http://cpan.perl.org/modules/by-authors/id/$_author/$_perlmod-$pkgver.tar.gz)
source=("http://cpan.perl.org/modules/by-module/$_modnamespace/$_perlmod-$pkgver.tar.gz")
md5sums=()
build() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment