summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse2015-07-08 15:09:13 +0200
committerChristian Hesse2015-07-08 15:09:13 +0200
commit395471c26dc83e0eca862826492fdc1f5bb9ef45 (patch)
tree48bc63ad807738563bfafcab8dbd9d1b2b3f2fc3
downloadaur-395471c26dc83e0eca862826492fdc1f5bb9ef45.tar.gz
initial import of perl-string-random 0.26-3
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD42
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..572571c3fbf
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = perl-string-random
+ pkgdesc = Perl module to generate random strings based on a pattern
+ pkgver = 0.26
+ pkgrel = 3
+ url = https://metacpan.org/pod/String::Random
+ arch = any
+ license = PerlArtistic
+ license = GPL
+ depends = perl
+ options = !emptydirs
+ source = http://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/String-Random-0.26.tar.gz
+ sha256sums = d2fca6c3a54002b9a41d1888672db5a00c9e63deae041d992473544a3364b7f7
+
+pkgname = perl-string-random
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c726d3c4411
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Christian Hesse <arch@eworm.de>
+# Contributor: Erik Johnson (palehose at gmail dot com)
+
+pkgname=perl-string-random
+pkgver=0.26
+pkgrel=3
+pkgdesc='Perl module to generate random strings based on a pattern'
+arch=('any')
+url='https://metacpan.org/pod/String::Random'
+license=('PerlArtistic' 'GPL')
+depends=('perl')
+options=('!emptydirs')
+source=("http://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/String-Random-${pkgver}.tar.gz")
+sha256sums=('d2fca6c3a54002b9a41d1888672db5a00c9e63deae041d992473544a3364b7f7')
+
+build() {
+ cd "${srcdir}/String-Random-${pkgver}"
+
+ 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
+
+ /usr/bin/perl Build.PL INSTALLDIRS=vendor
+ ./Build
+}
+
+check() {
+ cd "${srcdir}/String-Random-${pkgver}"
+
+ ./Build test
+}
+
+package() {
+ cd "${srcdir}/String-Random-${pkgver}"
+
+ ./Build install
+
+ # remove perllocal.pod and .packlist
+ find "${pkgdir}" -name .packlist -o -name perllocal.pod -delete
+}
+