summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-06-03 09:57:41 +0200
committerErich Eckner <git@eckner.net>2016-06-03 09:57:41 +0200
commitf6e08b5f0a9647bce466a38e9833cdf9b2b034d6 (patch)
tree6a508b21454687aa188deb1ef0490f1af4e7368f
parent5b7cf9d298fc2343b6bcf48ea15402880426711a (diff)
downloadarchlinuxewe.git.save-f6e08b5f0a9647bce466a38e9833cdf9b2b034d6.tar.xz
_distfile in PKGBUILD von Perl-Paketen eingefügt
-rw-r--r--perl-alien-wxwidgets/PKGBUILD14
-rw-r--r--perl-astro-fits-header/PKGBUILD9
-rwxr-xr-xperl-chemistry-elements/PKGBUILD11
-rw-r--r--perl-class-load-xs/PKGBUILD9
-rwxr-xr-xperl-config-ini/PKGBUILD15
-rw-r--r--perl-convert-uu/PKGBUILD21
-rw-r--r--perl-cpan-meta-check/PKGBUILD17
-rw-r--r--perl-data-alias/PKGBUILD9
-rw-r--r--perl-data-visitor/PKGBUILD10
-rw-r--r--perl-datetime-format-mysql/PKGBUILD5
-rw-r--r--perl-eval-closure/PKGBUILD9
-rw-r--r--perl-extutils-f77/PKGBUILD9
-rw-r--r--perl-extutils-xspp/PKGBUILD10
-rw-r--r--perl-file-find-object/PKGBUILD10
-rw-r--r--perl-file-map/PKGBUILD9
-rw-r--r--perl-file-monitor/PKGBUILD12
-rw-r--r--perl-file-sharedir-install/PKGBUILD10
-rw-r--r--perl-inline-c/PKGBUILD9
-rw-r--r--perl-module-compile/PKGBUILD9
-rw-r--r--perl-module-refresh/PKGBUILD9
-rw-r--r--perl-moosex-aliases/PKGBUILD9
-rw-r--r--perl-ole-storage-lite/PKGBUILD9
-rw-r--r--perl-pdl-stats/PKGBUILD9
-rw-r--r--perl-pdl/PKGBUILD9
-rw-r--r--perl-perlio-layers/PKGBUILD9
-rw-r--r--perl-syntax-highlight-perl/PKGBUILD12
-rw-r--r--perl-task-weaken/PKGBUILD5
-rw-r--r--perl-test-use-ok/PKGBUILD29
-rw-r--r--perl-tie-toobject/PKGBUILD10
-rw-r--r--perl-wx/PKGBUILD11
-rw-r--r--perl-xmlrpc-lite/PKGBUILD13
31 files changed, 188 insertions, 153 deletions
diff --git a/perl-alien-wxwidgets/PKGBUILD b/perl-alien-wxwidgets/PKGBUILD
index 3921c62e..9fd382d4 100644
--- a/perl-alien-wxwidgets/PKGBUILD
+++ b/perl-alien-wxwidgets/PKGBUILD
@@ -15,12 +15,11 @@ depends=('perl>=5.10.0' 'wxgtk' 'perl-module-pluggable') # Install perl-module-p
makedepends=('perl-module-build')
checkdepends=('perl-test-pod' 'perl-test-pod-coverage')
options=(!emptydirs)
-source=("http://www.cpan.org/modules/by-module/${_cpan_name%%-*}/${_cpan_name}-${pkgver}.tar.gz"
- )
+_distdir="${_cpan_name}-${pkgver}"
+source=("http://www.cpan.org/modules/by-module/${_cpan_name%%-*}/${_distdir}.tar.gz")
sha512sums=('633547a4417a42e96621a9409a83e736ba94c8692b7791a1887cf8497aaade9bc827a1279db169f737e834c5070c6f0d485c005133708bbf76a279acf1684092')
prepare() {
- export _src_dir="${_cpan_name}-${pkgver}"
# Setting these env variables overwrites any command-line-options we don't want...
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
@@ -38,26 +37,25 @@ prepare() {
# https://rt.cpan.org/Public/Bug/Display.html?id=94367
# https://rt.cpan.org/Public/Bug/Display.html?id=87202
# {
-# cd "$_src_dir"
+# cd "$_distdir"
# patch < ${srcdir}/wx-config-version-and-env.patch
# patch ./lib/Alien/wxWidgets/Utility.pm < ${srcdir}/Alien-wxWidgets-0.64-returnor.patch
# }
}
build() {
- cd "$_src_dir"
+ cd "$_distdir"
/usr/bin/perl Makefile.PL
make
}
check () {
- cd "$_src_dir"
+ cd "$_distdir"
make test
}
package () {
- cd "$_src_dir"
- echo "$_src_dir"
+ cd "$_distdir"
make install
# remove perllocal.pod and .packlist
diff --git a/perl-astro-fits-header/PKGBUILD b/perl-astro-fits-header/PKGBUILD
index a679a1d5..92b648f4 100644
--- a/perl-astro-fits-header/PKGBUILD
+++ b/perl-astro-fits-header/PKGBUILD
@@ -11,7 +11,8 @@ depends=('perl')
makedepends=('perl-module-build')
checkdepends=('perl-starlink-ast' 'perl-astro-fits-cfitsio') # 'perl-gsd' 'perl-ndf')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/T/TJ/TJENNESS/${_pkgname}-${pkgver}.tar.gz")
+_distdir="${_pkgname}-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/T/TJ/TJENNESS/${_distdir}.tar.gz")
sha256sums=('530d59ef0c0935f9862d187187a2d7583b12c639bb67db14f983322b161892d9')
build() {
@@ -21,21 +22,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Build.PL
perl Build
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
perl Build test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Build install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-chemistry-elements/PKGBUILD b/perl-chemistry-elements/PKGBUILD
index e6f4b89a..c429adb8 100755
--- a/perl-chemistry-elements/PKGBUILD
+++ b/perl-chemistry-elements/PKGBUILD
@@ -16,14 +16,13 @@ conflicts=()
replaces=()
backup=()
options=()
-source=(
- "http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Chemistry-Elements-${pkgver}.tar.gz"
-)
+_distdir="Chemistry-Elements-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/${_distdir}.tar.gz")
sha512sums=('bfed7ab91c2554f01cb8923ac311dae8986fdbdbde35f6868aa59d3c1b9c10ac047e222b5473204fd4b464e3fc93ac7fb80a907b57ceeb9bea3afb1d7850445f')
build() {
- cd Chemistry-Elements-${pkgver}
+ cd ${_distdir}
perl Makefile.PL
make
@@ -32,7 +31,7 @@ build() {
check() {
- cd Chemistry-Elements-${pkgver}
+ cd ${_distdir}
make test
@@ -40,7 +39,7 @@ check() {
package() {
- cd Chemistry-Elements-${pkgver}
+ cd ${_distdir}
make DESTDIR="${pkgdir}" install
diff --git a/perl-class-load-xs/PKGBUILD b/perl-class-load-xs/PKGBUILD
index 812a4800..8e291e76 100644
--- a/perl-class-load-xs/PKGBUILD
+++ b/perl-class-load-xs/PKGBUILD
@@ -15,7 +15,8 @@ options=('!emptydirs')
depends=('perl-class-load' 'perl-namespace-clean')
checkdepends=('perl-module-implementation' 'perl-test-fatal' 'perl-test-requires' 'perl-test-without-module')
url="https://metacpan.org/release/${_pkgname}"
-source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
+_distdir="${_pkgname}-${pkgver}"
+source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_distdir}.tar.gz)
sha512sums=('9b24637cf7b035ba369f05e42c0bd5a8590e001f2395b46df078635a50bb3df58ad57850be0010d092ae2530d9a545bbcc5f0055f6ae7f166c93905c022d469d')
build() {
@@ -24,15 +25,15 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Makefile.PL
make
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make test
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make install
}
diff --git a/perl-config-ini/PKGBUILD b/perl-config-ini/PKGBUILD
index 421f625f..7c09ce08 100755
--- a/perl-config-ini/PKGBUILD
+++ b/perl-config-ini/PKGBUILD
@@ -19,16 +19,13 @@ conflicts=()
replaces=()
backup=()
options=()
-source=(
- "http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Config-INI-${pkgver}.tar.gz"
-)
-sha256sums=(
- '628bf76d5b91f89dde22d4813ec033026ebf71b772bb61ccda909da00c869732'
-)
+_distdir="Config-INI-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/${_distdir}.tar.gz")
+sha256sums=('628bf76d5b91f89dde22d4813ec033026ebf71b772bb61ccda909da00c869732')
build() {
- cd Config-INI-${pkgver}
+ cd ${_distdir}
perl Makefile.PL
make
@@ -37,7 +34,7 @@ build() {
check() {
- cd Config-INI-${pkgver}
+ cd ${_distdir}
make test
@@ -45,7 +42,7 @@ check() {
package() {
- cd Config-INI-${pkgver}
+ cd ${_distdir}
make DESTDIR="${pkgdir}" install
diff --git a/perl-convert-uu/PKGBUILD b/perl-convert-uu/PKGBUILD
index 96f81187..311237cf 100644
--- a/perl-convert-uu/PKGBUILD
+++ b/perl-convert-uu/PKGBUILD
@@ -11,31 +11,32 @@ depends=('perl')
makedepends=()
checkdepends=('perl-test-pod>=1.00' 'perl-test-pod-coverage')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/${_pkgname}-${pkgver}.tar.gz")
+_distdir="${_pkgname}-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/${_distdir}.tar.gz")
sha256sums=('92329ce1c32b5952c48e1223db018c8c58ceafef03bfa0fd4817cd89c355a3bd')
build() {
- ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
- PERL_AUTOINSTALL=--skipdeps \
- PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
- PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
- /usr/bin/perl Makefile.PL
+ cd "${srcdir}/${_distdir}"
+ perl Makefile.PL
make
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-cpan-meta-check/PKGBUILD b/perl-cpan-meta-check/PKGBUILD
index 87b9b961..04d1fe1c 100644
--- a/perl-cpan-meta-check/PKGBUILD
+++ b/perl-cpan-meta-check/PKGBUILD
@@ -11,21 +11,22 @@ options=('!emptydirs')
depends=('perl')
makedepends=('perl-test-deep')
url='http://search.cpan.org/dist/CPAN-Meta-Check'
-source=("https://cpan.metacpan.org/authors/id/L/LE/LEONT/CPAN-Meta-Check-${pkgver}.tar.gz")
+_distdir="CPAN-Meta-Check-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/L/LE/LEONT/${_distdir}.tar.gz")
sha512sums=('99ec6721dfb6be8fae7e5a4f6418d4d12d8d093df11f0596480ecc19a46ef3af3fc3da91ccdd7110f974e8f4d04e33166d76804b673a019bc4994f96b7078e7d')
prepare_environment() {
- export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
- PERL_AUTOINSTALL=--skipdeps \
- PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
- PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
+ export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
+ PERL_AUTOINSTALL=--skipdeps \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/CPAN-Meta-Check-${pkgver}"
+ cd "${srcdir}/${_distdir}"
}
build() {
prepare_environment
- /usr/bin/perl Makefile.PL
+ perl Makefile.PL
make
}
@@ -37,7 +38,7 @@ check() {
package() {
prepare_environment
make install
- find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
}
# Local Variables:
diff --git a/perl-data-alias/PKGBUILD b/perl-data-alias/PKGBUILD
index ea7ffaaa..6f70955e 100644
--- a/perl-data-alias/PKGBUILD
+++ b/perl-data-alias/PKGBUILD
@@ -22,11 +22,12 @@ replaces=()
backup=()
options=(!emptydirs)
install=
-source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+_distdir="${_perlmod}-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
noextract=()
build(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
# Setting these env variables overwrites any command-line-options we don't want...
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
@@ -45,7 +46,7 @@ build(){
fi
}
check(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
# If using Makefile.PL
if [ -r Makefile.PL ]; then
@@ -56,7 +57,7 @@ check(){
fi
}
package(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
# If using Makefile.PL
if [ -r Makefile.PL ]; then
diff --git a/perl-data-visitor/PKGBUILD b/perl-data-visitor/PKGBUILD
index 4e2992fe..c49ca4ff 100644
--- a/perl-data-visitor/PKGBUILD
+++ b/perl-data-visitor/PKGBUILD
@@ -14,24 +14,24 @@ depends=('perl-class-load>=0.06' 'perl-moose>=0.89' 'perl-namespace-clean>=0.19'
makedepends=('perl-test-requires')
checkdepends=('perl-data-alias')
url='http://search.cpan.org/dist/Data-Visitor'
-_cpanName="Data-Visitor-${pkgver}"
-source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/${_cpanName}.tar.gz")
+_distdir="Data-Visitor-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/D/DO/DOY/${_distdir}.tar.gz")
sha512sums=('cdd3f5076dbbfb3afce714677e936417b96315dd50735c015795fb2c9d143d4e2ceeb305366f9985032b17899b911267dbafefa56493ff20f16c74da1a9330a8')
build() {
- cd "$srcdir/${_cpanName}"
+ cd "$srcdir/${_distdir}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$srcdir/${_cpanName}"
+ cd "$srcdir/${_distdir}"
PERL_MM_USE_DEFAULT=1
make test
}
package() {
- cd "$srcdir/${_cpanName}"
+ cd "$srcdir/${_distdir}"
make install DESTDIR="$pkgdir"
find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete
}
diff --git a/perl-datetime-format-mysql/PKGBUILD b/perl-datetime-format-mysql/PKGBUILD
index d6723a34..585a5e90 100644
--- a/perl-datetime-format-mysql/PKGBUILD
+++ b/perl-datetime-format-mysql/PKGBUILD
@@ -10,7 +10,8 @@ license=('perl')
url="http://search.cpan.org/~drolsky/DateTime-Format-MySQL"
options=(!emptydirs)
depends=('perl-datetime' 'perl-datetime-format-builder')
-source=("https://cpan.metacpan.org/authors/id/X/XM/XMIKEW/DateTime-Format-MySQL-${pkgver}.tar.gz")
+_distdir="DateTime-Format-MySQL-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/X/XM/XMIKEW/${_distdir}.tar.gz")
md5sums=('60b84516b5f29e0c639cd1a0f12333d2')
sha512sums=('56ea114f45e848f7a2389e1fea306b0e97d78e7033d745426db71bbfc527bb90affef8e2a697c213d855aced530b990424eedd92576354abcd4a3bbc3d6f1e69')
@@ -20,7 +21,7 @@ prepare_environment() {
PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/DateTime-Format-MySQL-${pkgver}"
+ cd "${srcdir}/${_distdir}"
}
build() {
diff --git a/perl-eval-closure/PKGBUILD b/perl-eval-closure/PKGBUILD
index 2e268ca0..239ffa90 100644
--- a/perl-eval-closure/PKGBUILD
+++ b/perl-eval-closure/PKGBUILD
@@ -13,7 +13,8 @@ options=('!emptydirs')
depends=('perl-try-tiny' 'perl-sub-exporter')
checkdepends=('perl-test-requires' 'perl-test-fatal' 'perl-test-output' 'perl-devel-lexalias' 'perl-padwalker')
url="https://metacpan.org/release/${_pkgname}"
-source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_pkgname}-${pkgver}.tar.gz)
+_distdir="${_pkgname}-${pkgver}"
+source=(https://cpan.metacpan.org/authors/id/${_lastauthor}/${_distdir}.tar.gz)
sha512sums=('fc55206bd39c4cb39360d06b6f39a65743f34b5e59d1a1ce99bf5831b9d88a03fb6dadf32fa9f0868e140fce719d53a7b13027f397cdd7f6ca05cc81277bdc08')
build() {
@@ -22,15 +23,15 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Makefile.PL
make
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make test
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make install
}
diff --git a/perl-extutils-f77/PKGBUILD b/perl-extutils-f77/PKGBUILD
index a1017780..b270d348 100644
--- a/perl-extutils-f77/PKGBUILD
+++ b/perl-extutils-f77/PKGBUILD
@@ -11,7 +11,8 @@ arch=('any')
url='https://metacpan.org/release/ExtUtils-F77'
license=('PerlArtistic' 'GPL')
depends=('perl' 'gcc-fortran')
-source=(http://search.cpan.org/CPAN/authors/id/C/CH/CHM/ExtUtils-F77-${pkgver}.tar.gz)
+_distdir="ExtUtils-F77-${pkgver}"
+source=(http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_distdir}.tar.gz)
options=(!emptydirs)
sha512sums=('0d7cf351d84676d3dea2ec781b1e230ab4a737d34de4c15c5045603ac6e6e411b5d9b235e68bb9ba0552cc4de0ea67c8355c160840b3205429802ea1569f0400')
@@ -21,20 +22,20 @@ sanitize() {
}
build() {
- cd ExtUtils-F77-${pkgver}
+ cd ${_distdir}
sanitize
perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd ExtUtils-F77-${pkgver}
+ cd ${_distdir}
sanitize
F77LIBS='-lgfortran -lm' make test
}
package() {
- cd ExtUtils-F77-${pkgver}
+ cd ${_distdir}
sanitize
make install DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
diff --git a/perl-extutils-xspp/PKGBUILD b/perl-extutils-xspp/PKGBUILD
index 322aa61c..afe5d9dc 100644
--- a/perl-extutils-xspp/PKGBUILD
+++ b/perl-extutils-xspp/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=perl-extutils-xspp
pkgver=0.18
pkgrel=1
_author=S/SM/SMUELLER
-_perlmod=ExtUtils-XSpp
+_distdir="ExtUtils-XSpp-${pkgver}"
pkgdesc='ExtUtils::XSpp - XS for C++'
arch=('any')
url="http://search.cpan.org/dist/ExtUtils-XSpp/"
@@ -67,11 +67,11 @@ perl-extutils-xspp-typemap-simple
perl-extutils-xspp-typemap-wrapper
)
options=(!emptydirs)
-source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
sha256sums=('9176ad646729e3bd27cf7abf114bedd3424bff1ba61185cfc7d54f3a9223a8ff')
build(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
# Setting these env variables overwrites any command-line-options we don't want...
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
@@ -83,11 +83,11 @@ build(){
perl Build
}
check(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
perl Build test
}
package(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "$srcdir/${_distdir}"
perl Build install
# remove perllocal.pod and .packlist
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
diff --git a/perl-file-find-object/PKGBUILD b/perl-file-find-object/PKGBUILD
index 0ea01de9..9ab9009e 100644
--- a/perl-file-find-object/PKGBUILD
+++ b/perl-file-find-object/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=perl-file-find-object
pkgver=0.2.13
pkgrel=1
_author="S/SH/SHLOMIF"
-_perlmod="File-Find-Object"
+_distdir="File-Find-Object-v${pkgver}"
pkgdesc="File::Find::Object - An object oriented File::Find replacement"
arch=('any')
url="http://search.cpan.org/dist/File-Find-Object/"
@@ -21,10 +21,10 @@ perl-file-find-object-result
perl-file-find-object-toppath
)
options=(!emptydirs)
-source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-v$pkgver.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
sha512sums=('4d3dd12d0e80ac0873182667efabeafd411204332374f81a339bf1b7dd82258567745aaddf026207da449cc99248679d8ff4e80951a2096327afdc9a760b6cfd')
build(){
- cd "$srcdir"/$_perlmod-v$pkgver
+ cd "$srcdir/${_distdir}"
# Setting these env variables overwrites any command-line-options we don't want...
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \
@@ -43,7 +43,7 @@ build(){
fi
}
check(){
- cd "$srcdir"/$_perlmod-v$pkgver
+ cd "$srcdir/${_distdir}"
# If using Makefile.PL
if [ -r Makefile.PL ]; then
@@ -54,7 +54,7 @@ check(){
fi
}
package(){
- cd "$srcdir"/$_perlmod-v$pkgver
+ cd "$srcdir/${_distdir}"
# If using Makefile.PL
if [ -r Makefile.PL ]; then
diff --git a/perl-file-map/PKGBUILD b/perl-file-map/PKGBUILD
index d361557e..e0b94396 100644
--- a/perl-file-map/PKGBUILD
+++ b/perl-file-map/PKGBUILD
@@ -3,6 +3,7 @@ pkgname=perl-file-map
_pkgname='File-Map'
pkgver=0.64
pkgrel=1
+_distdir="${_pkgname}-${pkgver}"
pkgdesc="Memory mapping made simple and safe."
arch=('x86_64' 'i686')
url="https://github.com/Leont/file-map"
@@ -11,7 +12,7 @@ depends=('perl')
makedepends=('perl-perlio-layers' 'perl-test-warnings' 'perl-module-build')
checkdepends=('perl-sub-exporter-progressive' 'perl-test-fatal')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_pkgname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_distdir}.tar.gz")
sha256sums=('03e42eb2de185b1e257c7a0ed9761a20b7d51f522464c713b20f43d47491a8c9')
build() {
@@ -21,21 +22,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Build.PL
perl Build
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
perl Build test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Build install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-file-monitor/PKGBUILD b/perl-file-monitor/PKGBUILD
index 3f598932..3ddcfefa 100644
--- a/perl-file-monitor/PKGBUILD
+++ b/perl-file-monitor/PKGBUILD
@@ -6,6 +6,7 @@ pkgname=perl-file-monitor
_realname=File-Monitor
pkgver=1.00
pkgrel=0
+_distdir="${_realname}-${pkgver}"
pkgdesc="Portable implementation of file-mon"
arch=(any)
url="http://search.cpan.org/~andya/File-Monitor-1.00/lib/File/Monitor.pm"
@@ -13,16 +14,21 @@ license=(GPL PerlArtistic)
depends=(perl)
options=('!emptydirs')
_author=PLICEASE
-source=("http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/${_realname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/A/AN/ANDYA/${_distdir}.tar.gz")
sha512sums=('86d38c4664c1ebdbc40c01f1837697cf6a8e7b58c3bb3b5ee731fc2e1340f0150d842990bea8bd8baa19dfa87db7912ba929f494a38ec5f8c546d1883eeb9628')
build() {
- cd "$srcdir/${_realname}-${pkgver}"
+ cd "$srcdir/${_distdir}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
+check() {
+ cd "$srcdir/${_distdir}"
+ make test
+}
+
package() {
- cd "$srcdir/${_realname}-${pkgver}"
+ cd "$srcdir/${_distdir}"
make install DESTDIR="$pkgdir"
}
diff --git a/perl-file-sharedir-install/PKGBUILD b/perl-file-sharedir-install/PKGBUILD
index 38b86cf7..3fc097c4 100644
--- a/perl-file-sharedir-install/PKGBUILD
+++ b/perl-file-sharedir-install/PKGBUILD
@@ -3,7 +3,6 @@
# Contributor: AUR Perl <aurperl@juster.info>
_perlmod=File-ShareDir-Install
-_modnamespace=File
pkgname=perl-file-sharedir-install
pkgver=0.10
pkgrel=1
@@ -13,11 +12,12 @@ url="http://search.cpan.org/dist/${_perlmod}"
license=('GPL' 'PerlArtistic')
checkdepends=('perl-test-pod' 'perl-test-pod-coverage')
options=('!emptydirs')
-source=("http://cpan.org/modules/by-module/${_modnamespace}/${_perlmod}-${pkgver}.tar.gz")
+_distdir="${_perlmod}-${pkgver}"
+source=("http://cpan.org/modules/by-module/${_perlmod%%-*}/${_distdir}.tar.gz")
sha512sums=('96c3a94da78e51c97223f16892c6bdb6a93f9602643aca6ee73fd661aefb0a018938f03b8265f255dc3daba467e01a2d2a924f33a5e1e4d2e9c9fe2698a3d09f')
build() {
- cd "${_perlmod}-${pkgver}"
+ cd "${_distdir}"
# Install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
@@ -25,11 +25,11 @@ build() {
}
check() {
- cd "${_perlmod}-${pkgver}"
+ cd "${_distdir}"
make test
}
package() {
- cd "${_perlmod}-${pkgver}"
+ cd "${_distdir}"
make install DESTDIR="${pkgdir}"
}
diff --git a/perl-inline-c/PKGBUILD b/perl-inline-c/PKGBUILD
index b341f829..9a43dc3d 100644
--- a/perl-inline-c/PKGBUILD
+++ b/perl-inline-c/PKGBUILD
@@ -6,6 +6,7 @@
pkgname=perl-inline-c
pkgver=0.76
pkgrel=2
+_distdir="Inline-C-${pkgver}"
pkgdesc='Perl module providing a way to write Perl subroutines in C'
arch=('any')
url='https://metacpan.org/release/Inline-C'
@@ -21,11 +22,11 @@ checkdepends=(
'perl-io-all'
'perl-test-warn>=0.23'
'perl-yaml-libyaml')
-source=(http://search.cpan.org/CPAN/authors/id/I/IN/INGY/Inline-C-${pkgver}.tar.gz)
+source=(http://search.cpan.org/CPAN/authors/id/I/IN/INGY/${_distdir}.tar.gz)
sha512sums=('43bf0bc6addf08c4c3347b074babdc514b1d6cee052d1124c5d9d4a4b52bd0e92ac79f8393f35252a98ef337fb18a9da47cdf545b1010b3f0d9c4b7fd9eb8c6d')
build() {
- cd Inline-C-${pkgver}
+ cd ${_distdir}
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
@@ -33,14 +34,14 @@ build() {
}
check() {
- cd Inline-C-${pkgver}
+ cd ${_distdir}
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1
make test
}
package() {
- cd Inline-C-${pkgver}
+ cd ${_distdir}
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
diff --git a/perl-module-compile/PKGBUILD b/perl-module-compile/PKGBUILD
index 3f00f182..77f668e0 100644
--- a/perl-module-compile/PKGBUILD
+++ b/perl-module-compile/PKGBUILD
@@ -3,6 +3,7 @@ pkgname=perl-module-compile
_pkgname='Module-Compile'
pkgver=0.35
pkgrel=1
+_distdir="${_pkgname}-${pkgver}"
pkgdesc="Perl Module Compilation"
arch=('any')
url="http://pdl.perl.org/"
@@ -10,7 +11,7 @@ license=('GPL' 'PerlArtistic')
depends=('perl')
makedepends=('perl-digest-sha1')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/I/IN/INGY/${_pkgname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/I/IN/INGY/${_distdir}.tar.gz")
sha256sums=('224205297e1d85e4c7821e551d94fa76c43f9b89a0c6fbb0b4a741ced5d896cb')
build() {
@@ -20,21 +21,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
/usr/bin/perl Makefile.PL
make
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-module-refresh/PKGBUILD b/perl-module-refresh/PKGBUILD
index f08cb241..56950fa7 100644
--- a/perl-module-refresh/PKGBUILD
+++ b/perl-module-refresh/PKGBUILD
@@ -7,6 +7,7 @@
pkgname=perl-module-refresh
pkgver=0.17
pkgrel=1
+_distdir="Module-Refresh-${pkgver}"
pkgdesc="Perl module to refresh %INC files when updated on disk"
arch=("any")
license=("GPL" "PerlArtistic")
@@ -14,22 +15,22 @@ url="http://search.cpan.org/dist/Module-Refresh"
options=(!emptydirs)
depends=("perl")
checkdepends=("perl-path-class") # 'perl' provides 'perl-test-simple' and 'perl-file-temp'
-source=("http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Module-Refresh-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/${_distdir}.tar.gz")
sha512sums=('48bbcf14d5c6f13217b41c9a4683fd5ff492d3d33f8d6d50e89eae8a6336f306358e0070ecf1617d68c6eb9f91caaec6e1048e09b741d3fa0a19f6d38a75f17f')
build() {
- cd "$srcdir/Module-Refresh-${pkgver}"
+ cd "${srcdir}/${_distdir}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$srcdir/Module-Refresh-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make test
}
package() {
- cd "$srcdir/Module-Refresh-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make install DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-moosex-aliases/PKGBUILD b/perl-moosex-aliases/PKGBUILD
index cc305e35..994a4b71 100644
--- a/perl-moosex-aliases/PKGBUILD
+++ b/perl-moosex-aliases/PKGBUILD
@@ -6,6 +6,7 @@ _module='MooseX-Aliases'
_author='D/DO/DOY'
pkgver='0.11'
pkgrel='3'
+_distdir="${_module}-${pkgver}"
pkgdesc='Easy aliasing of methods and attributes in Moose.'
arch=('any')
url="https://metacpan.org/release/$_module"
@@ -13,14 +14,14 @@ license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-moose>=2.0000')
checkdepends=('perl-test-fatal' 'perl-test-output')
-source=("http://search.cpan.org/CPAN/authors/id/$_author/$_module-$pkgver.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
sha512sums=('5a999c417ea59aa609ad6f0f3e9d9f18aaeeb683f2e05255d8577608f4699a49befcd42ecb968064f9164e8355edf460be220f1b92415d020d4ce122d580ffcc')
build() {
(
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT='1' PERL_AUTOINSTALL='--skipdeps'
- cd "$_module-$pkgver"
+ cd "${_distdir}"
/usr/bin/perl Makefile.PL
make
)
@@ -28,7 +29,7 @@ build() {
check() {
(
- cd "$_module-$pkgver"
+ cd "${_distdir}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT='1'
make test
@@ -37,7 +38,7 @@ check() {
package() {
(
- cd "$_module-$pkgver"
+ cd "${_distdir}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS='vendor' DESTDIR="$pkgdir"
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
diff --git a/perl-ole-storage-lite/PKGBUILD b/perl-ole-storage-lite/PKGBUILD
index c2317b87..0d733527 100644
--- a/perl-ole-storage-lite/PKGBUILD
+++ b/perl-ole-storage-lite/PKGBUILD
@@ -5,13 +5,14 @@ pkgname=perl-ole-storage-lite
_pkgname='OLE-Storage_Lite'
pkgver=0.19
pkgrel=2
+_distdir="${_pkgname}-${pkgver}"
pkgdesc="Simple Class for OLE document interface"
arch=('any')
url="http://search.cpan.org/dist/OLE-Storage_Lite/"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/${_pkgname}-$pkgver.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/${_distdir}.tar.gz")
sha256sums=('e72e055c35bd85ad7c20cf2adb6c89bdbf5725df969484fa6dc981d531ef2c9d')
build() {
@@ -21,21 +22,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
/usr/bin/perl Makefile.PL
make
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-pdl-stats/PKGBUILD b/perl-pdl-stats/PKGBUILD
index ad9387d9..69e59916 100644
--- a/perl-pdl-stats/PKGBUILD
+++ b/perl-pdl-stats/PKGBUILD
@@ -3,6 +3,7 @@ pkgname=perl-pdl-stats
_pkgname='PDL-Stats'
pkgver=0.74
pkgrel=1
+_distdir="${_pkgname}-${pkgver}"
pkgdesc="a collection of statistics modules in Perl Data Language, with a quick-start guide for non-PDL people."
arch=('x86_64' 'i686')
url="http://search.cpan.org/dist/OLE-Storage_Lite/"
@@ -10,7 +11,7 @@ license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
makedepends=('perl-pdl')
-source=("http://search.cpan.org/CPAN/authors/id/M/MA/MAGGIEXYZ/${_pkgname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/M/MA/MAGGIEXYZ/${_distdir}.tar.gz")
sha256sums=('82f2451817d697db535240fdbb7c6d9a5cb3a3dcc04c690865bec669070277bc')
build() {
@@ -20,21 +21,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
/usr/bin/perl Makefile.PL
make
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make pure_install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-pdl/PKGBUILD b/perl-pdl/PKGBUILD
index 6f13fabc..56be2c73 100644
--- a/perl-pdl/PKGBUILD
+++ b/perl-pdl/PKGBUILD
@@ -3,6 +3,7 @@ pkgname=perl-pdl
_pkgname='PDL'
pkgver=2.016
pkgrel=1
+_distdir="${_pkgname}-${pkgver}"
pkgdesc="the Perl Data Language"
arch=('x86_64' 'i686')
url="http://pdl.perl.org/"
@@ -12,7 +13,7 @@ depends=('perl-devel-checklib' 'perl-astro-fits-header'
'hdf4' 'perl-gd')
makedepends=('perl-extutils-f77' 'perl-test-exception' 'perl-test-warn' 'perl-test-deep' 'perl-file-map')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_pkgname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_distdir}.tar.gz")
sha512sums=('7822e12688ed94c4c2fdd4937d7ec3869b08d9831ddd7307706e404e11c6f8b40792912d05b6022ede982ba870aae426141d0fd4030d43aef72ca0be46f673c8')
build() {
@@ -22,21 +23,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
/usr/bin/perl Makefile.PL
make
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make pure_install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-perlio-layers/PKGBUILD b/perl-perlio-layers/PKGBUILD
index f1fe7084..13637cd3 100644
--- a/perl-perlio-layers/PKGBUILD
+++ b/perl-perlio-layers/PKGBUILD
@@ -3,6 +3,7 @@ pkgname=perl-perlio-layers
_pkgname='PerlIO-Layers'
pkgver=0.011
pkgrel=1
+_distdir="${_pkgname}-${pkgver}"
pkgdesc="Querying your filehandle's capabilities"
arch=('x86_64' 'i686')
url="https://github.com/Leont/perlio-layers"
@@ -10,7 +11,7 @@ license=('GPL' 'PerlArtistic')
depends=('perl')
makedepends=('perl-digest-sha1' 'perl-module-build')
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_pkgname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/${_distdir}.tar.gz")
sha256sums=('1d77e164aa5d5d24699a5479a423abdc1b07973fbe5a22d304fef2c560254b42')
build() {
@@ -20,21 +21,21 @@ build() {
PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
MODULEBUILDRC=/dev/null
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Build.PL
perl Build
)
}
check() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
perl Build test
)
}
package() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Build install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
diff --git a/perl-syntax-highlight-perl/PKGBUILD b/perl-syntax-highlight-perl/PKGBUILD
index 0f2a84a3..7ece515c 100644
--- a/perl-syntax-highlight-perl/PKGBUILD
+++ b/perl-syntax-highlight-perl/PKGBUILD
@@ -5,24 +5,30 @@ pkgname=perl-syntax-highlight-perl
_perlmod=Syntax-Highlight-Perl
pkgver=1.0
pkgrel=4
+_distdir="${_perlmod}-${pkgver}"
pkgdesc="Syntax-Highlight-Perl perl module (highlighting of Perl Syntactical Structures)"
arch=("any")
url="http://search.cpan.org/~johnsca/Syntax-Highlight-Perl/"
license=("GPL" "Artistic")
depends=('perl>=5.10.0')
-source=(http://search.cpan.org/CPAN/authors/id/J/JO/JOHNSCA/$_perlmod-$pkgver.tar.gz)
+source=(http://search.cpan.org/CPAN/authors/id/J/JO/JOHNSCA/${_distdir}.tar.gz)
sha512sums=('be1959493fb563137095e0b151fa56fe2192d1c4bf52e2ef32d6d2310b821a905e675a443e4cfb83da7d0dfa4cc267ac087d49d0ee807a07413cf839621ebe8b')
options=(!emptydirs)
build() {
- cd $srcdir/$_perlmod-$pkgver
+ cd "${srcdir}/${_distdir}"
# Install module in vendor directories.
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
+check() {
+ cd "${srcdir}/${_distdir}"
+ make test
+}
+
package() {
- cd $srcdir/$_perlmod-$pkgver
+ cd "${srcdir}/${_distdir}"
make install DESTDIR="$pkgdir/"
}
diff --git a/perl-task-weaken/PKGBUILD b/perl-task-weaken/PKGBUILD
index 2e6bd0b2..35fc46d5 100644
--- a/perl-task-weaken/PKGBUILD
+++ b/perl-task-weaken/PKGBUILD
@@ -6,19 +6,20 @@ pkgname=perl-task-weaken
_cpanname="Task-Weaken"
pkgver=1.04
pkgrel='3'
+_distdir="${_cpanname}-${pkgver}"
pkgdesc="Ensure that a platform has weaken support"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl>=5.5.0')
url="http://search.cpan.org/dist/$_cpanname"
-source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/$_cpanname-$pkgver.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/${_distdir}.tar.gz")
sha512sums=('19749fada2b030a082d745abbc172125c3e195be5e1166ff02511fbf08aa8d37092cb0ea2cbf95452fef70f2e1cd0062d32f04d74aa52b30f6e85108f9ca80ff')
# Function to change to the working directory and set
# environment variables to override undesired options.
prepareEnvironment() {
- cd "$srcdir/$_cpanname-$pkgver"
+ cd "${srcdir}/${_distdir}"
export \
PERL_MM_USE_DEFAULT=1 \
PERL_AUTOINSTALL=--skipdeps \
diff --git a/perl-test-use-ok/PKGBUILD b/perl-test-use-ok/PKGBUILD
index 8eb4ae42..65c68e80 100644
--- a/perl-test-use-ok/PKGBUILD
+++ b/perl-test-use-ok/PKGBUILD
@@ -4,6 +4,7 @@ pkgname='perl-test-use-ok'
_realname='Test-use-ok'
pkgver='0.11'
pkgrel=2
+_distdir="${_realname}-${pkgver}"
pkgdesc="Alternative to Test::More::use_ok"
arch=('any')
license=('perl')
@@ -12,21 +13,27 @@ options=(!emptydirs)
depends=('perl>=5.8.9')
-source=("http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/${_realname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/${_distdir}.tar.gz")
sha512sums=('ff831546c7a34edfd1a9e574300f6b299fa280ea7d3be6b3285cf173f8695d2dc51a302954dae95d2b1bb5c3f1b945081a06dc703c465ac0d4e229ce81d45293')
build() {
-cd "$_realname-$pkgver"
-# install module in vendor directories.
-export PERL_MM_USE_DEFAULT=1
-perl Makefile.PL
-make
+ cd "${_distdir}"
+ # install module in vendor directories.
+ export PERL_MM_USE_DEFAULT=1
+ perl Makefile.PL
+ make
}
+
+check() {
+ cd "${_distdir}"
+ make test
+}
+
package() {
-cd "$_realname-$pkgver"
-make install INSTALLDIRS=vendor DESTDIR=${pkgdir}
+ cd "${_distdir}"
+ make install INSTALLDIRS=vendor DESTDIR=${pkgdir}
-# remove perllocal.pod and .packlist
-find ${pkgdir} -name perllocal.pod -delete
-find ${pkgdir} -name .packlist -delete
+ # remove perllocal.pod and .packlist
+ find ${pkgdir} -name perllocal.pod -delete
+ find ${pkgdir} -name .packlist -delete
}
diff --git a/perl-tie-toobject/PKGBUILD b/perl-tie-toobject/PKGBUILD
index 15ebae7f..dfa4f5d2 100644
--- a/perl-tie-toobject/PKGBUILD
+++ b/perl-tie-toobject/PKGBUILD
@@ -12,24 +12,24 @@ options=('!emptydirs')
depends=('perl')
makedepends=('perl-test-use-ok')
url='http://search.cpan.org/dist/Tie-ToObject'
-_cpanName="Tie-ToObject-${pkgver}"
-source=("http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/${_cpanName}.tar.gz")
+_distdir="Tie-ToObject-${pkgver}"
+source=("http://search.cpan.org/CPAN/authors/id/N/NU/NUFFIN/${_distdir}.tar.gz")
sha512sums=('b3d2060d35e943e9aae28159ec71c7a6f01f47aa2905f5a218fafda8b1eb9e9da52038471617effe9f513f882b02e59946ddddf522058221b9132970e78ec94f')
build() {
- cd "$srcdir/${_cpanName}"
+ cd "${srcdir}/${_distdir}"
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
- cd "$srcdir/${_cpanName}"
+ cd "${srcdir}/${_distdir}"
PERL_MM_USE_DEFAULT=1
make test
}
package() {
- cd "$srcdir/${_cpanName}"
+ cd "${srcdir}/${_distdir}"
make install DESTDIR="$pkgdir"
find "$pkgdir" -name '.packlist' -o -name '*.pod' -delete
}
diff --git a/perl-wx/PKGBUILD b/perl-wx/PKGBUILD
index ca859d9b..1a73bec9 100644
--- a/perl-wx/PKGBUILD
+++ b/perl-wx/PKGBUILD
@@ -6,6 +6,7 @@ pkgver=0.9928
_author=M/MD/MDOOTSON
_perlmod=Wx
pkgrel=3
+_distdir="${_perlmod}-${pkgver}"
pkgdesc="Wx - interface to the wxWidgets GUI toolkit"
arch=('i686' 'x86_64')
url="http://search.cpan.org/dist/Wx"
@@ -89,18 +90,19 @@ perl-build-wx-xsp-overload
perl-build-wx-xsp-virtual
)
options=('!emptydirs')
-source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/$_author/${_distdir}.tar.gz")
sha256sums=('58e06c094c07817617b1e69fa0501f2cee80cd4700ac7a62c516179f7aa85b42')
build(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "${srcdir}/${_distdir}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
/usr/bin/perl Makefile.PL
make
}
+
check(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "${srcdir}/${_distdir}"
if [[ -z "$DISPLAY" || -x /usr/bin/xvfb-run ]]; then
# warning 'Empty $DISPLAY - falling back to xvfb-run (xorg-server-xvfb)'
xvfb-run -a -s "+extension GLX -screen 0 1280x1024x24" make test
@@ -108,8 +110,9 @@ check(){
make test
fi
}
+
package(){
- cd "$srcdir"/$_perlmod-$pkgver
+ cd "${srcdir}/${_distdir}"
unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
}
diff --git a/perl-xmlrpc-lite/PKGBUILD b/perl-xmlrpc-lite/PKGBUILD
index d50b2158..617afc03 100644
--- a/perl-xmlrpc-lite/PKGBUILD
+++ b/perl-xmlrpc-lite/PKGBUILD
@@ -1,32 +1,33 @@
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Yardena Cohen <yardenack at gmail dot com>
-_cpaname=XMLRPC-Lite
+_cpanname=XMLRPC-Lite
_cpanauthor=PHRED
pkgname=perl-xmlrpc-lite
pkgver=0.717
pkgrel=1
+_distdir="${_cpanname}-${pkgver}"
pkgdesc="client and server implementation of XML-RPC protocol"
arch=('any')
-url="http://search.cpan.org/dist/${_cpaname}/"
+url="http://search.cpan.org/dist/${_cpanname}/"
license=('unknown')
options=('!emptydirs')
depends=('perl' 'perl-soap-lite')
-source=("http://search.cpan.org/CPAN/authors/id/${_cpanauthor::1}/${_cpanauthor::2}/${_cpanauthor}/${_cpaname}-${pkgver}.tar.gz")
+source=("http://search.cpan.org/CPAN/authors/id/${_cpanauthor::1}/${_cpanauthor::2}/${_cpanauthor}/${_distdir}.tar.gz")
sha256sums=('3a9fa5f2cb1faf8b7c66b4c386eab35cac6088afc4dbc757d4f77d284dab4524')
build() {
- cd "${srcdir}/${_cpaname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
perl Makefile.PL
make
}
check() {
- cd "${srcdir}/${_cpaname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make test
}
package () {
- cd "${srcdir}/${_cpaname}-${pkgver}"
+ cd "${srcdir}/${_distdir}"
make install INSTALLDIRS=vendor DESTDIR="${pkgdir}"
}