summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD38
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b8d205f09cd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = perl-types-xsd
+ pkgdesc = type constraints based on XML schema datatypes
+ pkgver = 0.005
+ pkgrel = 1
+ url = https://metacpan.org/release/Types-XSD
+ arch = any
+ license = PerlArtistic
+ checkdepends = perl-type-tiny>=0.004
+ checkdepends = perl-test-simple>=0.96
+ depends = perl
+ depends = perl-types-xsd-lite>=0.004
+ depends = perl-type-tiny>=0.004
+ depends = perl-xml-regexp>=0
+ depends = perl-datetimex-auto>=0.004
+ depends = perl-datetime-incomplete>=0
+ options = !emptydirs
+ options = purge
+ source = http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/Types-XSD-0.005.tar.gz
+ sha256sums = 72a9be0095ec6544c746f4a67a164df8f94f9828666bd7daf110d32637a07c49
+
+pkgname = perl-types-xsd
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9f9125b991a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Kars Wang <jaklsy AT gmail.com>
+
+pkgname='perl-types-xsd'
+pkgver=0.005
+pkgrel=1
+pkgdesc='type constraints based on XML schema datatypes'
+_dist='Types-XSD'
+arch=('any')
+url="https://metacpan.org/release/$_dist"
+license=('PerlArtistic')
+depends=('perl' 'perl-types-xsd-lite>=0.004' 'perl-type-tiny>=0.004' 'perl-xml-regexp>=0' 'perl-datetimex-auto>=0.004' 'perl-datetime-incomplete>=0')
+checkdepends=('perl-type-tiny>=0.004' 'perl-test-simple>=0.96')
+makedepends=()
+provides=()
+options=('!emptydirs' 'purge')
+source=("http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/$_dist-$pkgver.tar.gz")
+sha256sums=('72a9be0095ec6544c746f4a67a164df8f94f9828666bd7daf110d32637a07c49')
+
+build() (
+ cd "$srcdir/$_dist-$pkgver"
+ 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/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ export PERL_MM_USE_DEFAULT=1
+ make test
+)
+
+package() (
+ cd "$srcdir/$_dist-$pkgver"
+ unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT
+ make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
+)