summaryrefslogtreecommitdiff
path: root/user/perl-perl-tidy/APKBUILD
blob: 8821460b51b564ef54f31f76134e7cf01fbc02b1 (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
34
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-perl-tidy
_pkgreal=Perl-Tidy
_author=SHANCOCK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=20221112
pkgrel=0
pkgdesc="Indent and reformat Perl scripts"
url="https://metacpan.org/release/Perl-Tidy"
arch="noarch"
license="GPL-2.0-only"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="06dd46754b676456e26414456caf48a9f6717d64553d08cd8719d3c98278d3f8e22dfb349c33c96c99dc3ca3f1a3d42c64383ae9dc283ec74ee39dea1c0c6d33  Perl-Tidy-20221112.tar.gz"