summaryrefslogtreecommitdiff
path: root/user/perl-perl-tidy/APKBUILD
blob: 81fa61bb3a140a90b1da59b08f3c84c9cf88c3ae (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=20230912
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="aeb5e6bd531cc4a197dbddcc24dfb7acccc95f777ee10560f031e095072ac7e4ae50aa452016d904d58f25c8a89daa0ed31d9a088bd291766f129031f3daeefd  Perl-Tidy-20230912.tar.gz"