diff options
-rw-r--r-- | user/perl-test-trailingspace/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/user/perl-test-trailingspace/APKBUILD b/user/perl-test-trailingspace/APKBUILD new file mode 100644 index 000000000..ccaf8e873 --- /dev/null +++ b/user/perl-test-trailingspace/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-test-trailingspace +pkgver=0.0301 +pkgrel=0 +pkgdesc="Test for trailing spaces in Perl source files" +url="https://metacpan.org/release/Test-TrailingSpace" +arch="noarch" +license="MIT" +depends="perl-file-find-object-rule" +makedepends="perl-dev perl-module-build" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Test-TrailingSpace-$pkgver.tar.gz" +builddir="$srcdir/Test-TrailingSpace-$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="9ec511759b12265c2a98a06a54081e0ca0377e707b29174fb874fd505330e0abfafebe910f7ceba9f8a6bcbfcf5d74fc8ffdca2e17b9cad15c207213449085d4 Test-TrailingSpace-0.0301.tar.gz" |