summaryrefslogtreecommitdiff
path: root/perl-test-version
diff options
context:
space:
mode:
Diffstat (limited to 'perl-test-version')
-rw-r--r--perl-test-version/PKGBUILD80
1 files changed, 80 insertions, 0 deletions
diff --git a/perl-test-version/PKGBUILD b/perl-test-version/PKGBUILD
new file mode 100644
index 00000000..fbea798e
--- /dev/null
+++ b/perl-test-version/PKGBUILD
@@ -0,0 +1,80 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (c76f19eeb8ac0e674222223e3f2f0b1a4250e725fbc76c117ed5a925d0a78bc530c4457ecc3b31370951fc9b8729fc0272fa9206231f2dcd7aab2565a892a173)
+
+pkgname='perl-test-version'
+pkgver='2.05'
+pkgrel='1'
+pkgdesc='Check to see that version'"'"'s in modules are sane'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl>=5.6.0'
+ 'perl-carp'
+ 'perl-exporter'
+ 'perl-file-find-rule-perl'
+ 'perl-module-metadata>=1.000020'
+ 'perl-parent'
+ 'perl-test-simple>=0.94'
+ 'perl-version>=0.86'
+)
+makedepends=(
+ 'perl>=1.01'
+ 'perl-extutils-makemaker'
+ 'perl-io'
+ 'perl-pathtools'
+ 'perl-test-exception'
+ 'perl-test-simple>=0.94'
+ 'perl-test-tester'
+)
+url='https://metacpan.org/release/Test-Version'
+_distdir="Test-Version-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/${_distdir}.tar.gz")
+sha512sums=('23a3ebe99f37143956ac1ac2f6d2aaa4b4b701b96475c52ecb5695d011fe2d0dbd0f27e6e25ee133d75807c03df029f71e27de23e3de52651644fb3105ae7a9f')
+
+build() {
+ 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 \
+ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='${pkgdir}'" \
+ PERL_MB_OPT="--installdirs vendor --destdir '${pkgdir}'" \
+ MODULEBUILDRC=/dev/null
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ perl Makefile.PL
+ make
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build.PL
+ perl Build
+ fi
+}
+
+check() {
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make test
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build test
+ fi
+}
+
+package() {
+ cd "${srcdir}/${_distdir}"
+
+ # If using Makefile.PL
+ if [ -r Makefile.PL ]; then
+ make install
+ # If using Build.PL
+ elif [ -r Build.PL ]; then
+ perl Build install
+ fi
+
+ # remove perllocal.pod and .packlist
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
+}