summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-08-30 05:49:56 +0200
committerErich Eckner <git@eckner.net>2021-08-30 05:49:56 +0200
commit987cf12c0f19efcd54f8b4be4c048373b87b017e (patch)
tree8beea31c8d1f8491ecbbee709e113774943016d1
parent0a5cbca6a6774a0d2b9ca276c22bc0ab09f88bd0 (diff)
downloadarchlinuxewe-987cf12c0f19efcd54f8b4be4c048373b87b017e.tar.xz
perl-file-treecreate neu
-rw-r--r--perl-file-treecreate/PKGBUILD73
1 files changed, 73 insertions, 0 deletions
diff --git a/perl-file-treecreate/PKGBUILD b/perl-file-treecreate/PKGBUILD
new file mode 100644
index 000000000..089c9b1ba
--- /dev/null
+++ b/perl-file-treecreate/PKGBUILD
@@ -0,0 +1,73 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Generator : neuesPerlPaket (0c476839304014b3b390c98c3d10da7c9e9b90f6f2116cff2a40fd771cd232410b62e0bd8a40e44de6f8aec20cbe5938f6784a3f1c1c01b6a48894948722fb91)
+
+pkgname='perl-file-treecreate'
+pkgver='0.0.1'
+pkgrel='1'
+pkgdesc='recursively create a directory tree.'
+arch=('any')
+license=('PerlArtistic' 'GPL')
+options=('!emptydirs')
+depends=(
+ 'perl-autodie'
+ 'perl-carp'
+ 'perl-pathtools'
+)
+makedepends=(
+ 'perl-file-path'
+ 'perl-io'
+ 'perl-module-build>=0.28'
+ 'perl-pathtools'
+ 'perl-test-simple>=0.88'
+)
+url='https://metacpan.org/dist/File-TreeCreate'
+_distdir="File-TreeCreate-${pkgver}"
+source=("https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/${_distdir}.tar.gz")
+sha512sums=('736c850db328b74d4ef4ea52e01e76d8e6473243b4676c59549904dc8c7ee486601d7512b3347f67f6e6ee3a7639a38edbe74198ec3526c6b94e1f2227ce524b')
+
+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
+}