From 2e7e8ea0a6bdfdd8d23e4901a6bb3834a89ac428 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 2 Oct 2018 19:20:48 +0000 Subject: user/perl-perl-tidy: new package --- user/perl-perl-tidy/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/perl-perl-tidy/APKBUILD (limited to 'user/perl-perl-tidy') 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 +# Maintainer: Adélie Perl Team +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" -- cgit v1.2.3-70-g09d2