summaryrefslogtreecommitdiff
path: root/user/perl-perl-tidy/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 19:20:48 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-02 19:20:48 +0000
commit2e7e8ea0a6bdfdd8d23e4901a6bb3834a89ac428 (patch)
treeb1c134d32253548fdf1588c9fc638267b0e93e9f /user/perl-perl-tidy/APKBUILD
parent92077d1b130c77707099afa18557b2fe1509c2a2 (diff)
downloadpackages-2e7e8ea0a6bdfdd8d23e4901a6bb3834a89ac428.tar.gz
packages-2e7e8ea0a6bdfdd8d23e4901a6bb3834a89ac428.tar.bz2
packages-2e7e8ea0a6bdfdd8d23e4901a6bb3834a89ac428.tar.xz
packages-2e7e8ea0a6bdfdd8d23e4901a6bb3834a89ac428.zip
user/perl-perl-tidy: new package
Diffstat (limited to 'user/perl-perl-tidy/APKBUILD')
-rw-r--r--user/perl-perl-tidy/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-perl-tidy/APKBUILD b/user/perl-perl-tidy/APKBUILD
new file mode 100644
index 000000000..84361f161
--- /dev/null
+++ b/user/perl-perl-tidy/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-perl-tidy
+pkgver=20180220
+pkgrel=0
+pkgdesc="Indent and reformat Perl scripts"
+url="https://metacpan.org/release/Perl-Tidy"
+arch="noarch"
+license="GPL-2.0-only"
+depends=""
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-$pkgver.tar.gz"
+builddir="$srcdir/Perl-Tidy-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="93bdf2c18efdd9d62d5bb666ded9d9502a722370049a2a51f9d41107d7fa67acd91dfdd184a11eaab287f11a901ad686585e959f09407b0493719d19ce5d842e Perl-Tidy-20180220.tar.gz"