summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Cousin2020-10-13 10:04:26 +0200
committerMarc Cousin2020-10-13 10:04:26 +0200
commit65f33e149cd6d5d6b41002765a93bb269014d1b4 (patch)
treecdc2e35fcd7c058033bd9eda7d7529984e04d5b8
downloadaur-perl-validate-simple.tar.gz
initial version
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD50
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2884f5792d6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = perl-validate-simple
+ pkgdesc = (Relatively) Simple way to validate input parameters
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://metacpan.org/release/Validate-Simple
+ arch = any
+ license = PerlArtistic
+ license = GPL
+ checkdepends = perl-test-deep>=0
+ checkdepends = perl-test-exception>=0
+ depends = perl-data-types>=0
+ depends = perl>=5.10.0
+ options = !emptydirs
+ source = http://search.cpan.org/CPAN/authors/id/A/AN/ANDREIP/Validate-Simple-v0.3.0.tar.gz
+ md5sums = ef62bb901c08e6d02e2ba1a64c809053
+ sha512sums = e110b79c36af13b35ef38b7907c72bb4885663f896694d2d3bb9afff8b899560ac6b8b080ae6d9fcffaee21b9beb5edb22edab1da8c6ebb7e080f96a21d965a4
+
+pkgname = perl-validate-simple
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..26445268b37
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Contributor: Marc Cousin <cousinmarc@gmail.com>
+# Generator : CPANPLUS::Dist::Arch 1.32
+
+pkgname='perl-validate-simple'
+pkgver='0.3.0'
+pkgrel='1'
+pkgdesc="(Relatively) Simple way to validate input parameters"
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=('perl-data-types>=0' 'perl>=5.10.0')
+makedepends=()
+checkdepends=('perl-test-deep>=0' 'perl-test-exception>=0')
+url='https://metacpan.org/release/Validate-Simple'
+source=('http://search.cpan.org/CPAN/authors/id/A/AN/ANDREIP/Validate-Simple-v0.3.0.tar.gz')
+md5sums=('ef62bb901c08e6d02e2ba1a64c809053')
+sha512sums=('e110b79c36af13b35ef38b7907c72bb4885663f896694d2d3bb9afff8b899560ac6b8b080ae6d9fcffaee21b9beb5edb22edab1da8c6ebb7e080f96a21d965a4')
+_distdir="Validate-Simple-v0.3.0"
+
+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'" \
+ MODULEBUILDRC=/dev/null
+
+ cd "$srcdir/$_distdir"
+ /usr/bin/perl Makefile.PL
+ make
+ )
+}
+
+check() {
+ cd "$srcdir/$_distdir"
+ ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
+ make test
+ )
+}
+
+package() {
+ cd "$srcdir/$_distdir"
+ make install
+ find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
+}
+
+# Local Variables:
+# mode: shell-script
+# sh-basic-offset: 2
+# End:
+# vim:set ts=2 sw=2 et: