summaryrefslogtreecommitdiff
path: root/perltidy/Pkgfile
diff options
context:
space:
mode:
authorAlexandr Savca <alexandr.savca89@gmail.com>2020-11-19 17:32:48 +0200
committerAlexandr Savca <alexandr.savca89@gmail.com>2020-11-19 17:32:48 +0200
commiteec927d25d8ea11c1ae9ab13309335b7d137040d (patch)
tree4e3a64d5645a42bcc1a585c25e4a34aa962ad2b7 /perltidy/Pkgfile
parent0df5e07a9f13025389f3a614628c50b3c2569f2b (diff)
downloadcontrib-eec927d25d8ea11c1ae9ab13309335b7d137040d.tar.gz
contrib-eec927d25d8ea11c1ae9ab13309335b7d137040d.tar.xz
perltidy: initial commit, v20201001
Diffstat (limited to 'perltidy/Pkgfile')
-rw-r--r--perltidy/Pkgfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/perltidy/Pkgfile b/perltidy/Pkgfile
new file mode 100644
index 000000000..1644c58e2
--- /dev/null
+++ b/perltidy/Pkgfile
@@ -0,0 +1,27 @@
+# Description: Perl script indenter and reformatter
+# URL: https://metacpan.org/release/Perl-Tidy
+# Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
+
+name=perltidy
+version=20201001
+release=1
+source=(https://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-$version.tar.gz)
+
+build() {
+ cd Perl-Tidy-$version
+
+ perl Makefile.PL
+
+ make
+ make DESTDIR=$PKG install
+
+ # remove perlcrap
+ find $PKG -name perllocal.pod \
+ -o -name "*.bs" \
+ -o -name .packlist \
+ -o -name autosplit.ix \
+ | xargs rm -f
+
+ # remove empty dirs
+ find $PKG -depth -type d -empty -delete
+}

Generated by cgit