blob: 30937fcc215431c63c62814dc25673f8290c9190 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-test-trailingspace
pkgver=0.0302
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="00ebea59fd55a7c296944bb74eba1ac8bc55ca9a92c7cb6a548fdd150d049bfe1496fb9e54007929219af85673dc5bb20881e52dc25945d437c0ebf772eaba95 Test-TrailingSpace-0.0302.tar.gz"
|