APKBUILD 969 Bytes
Newer Older
A. Wilcox's avatar
A. Wilcox committed
1
2
3
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-perl-tidy
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
4
5
6
7
_pkgreal=Perl-Tidy
_author=SHANCOCK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
8
pkgver=20181120
A. Wilcox's avatar
A. Wilcox committed
9
10
11
12
13
pkgrel=0
pkgdesc="Indent and reformat Perl scripts"
url="https://metacpan.org/release/Perl-Tidy"
arch="noarch"
license="GPL-2.0-only"
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
14
depends="perl"
15
makedepends="perl-dev"
A. Wilcox's avatar
A. Wilcox committed
16
subpackages="$pkgname-doc"
Síle Ekaterin Aman's avatar
Síle Ekaterin Aman committed
17
18
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
A. Wilcox's avatar
A. Wilcox committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

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
}

34
sha512sums="5b75178f9fd874fa173a562d765091c66a8fc56b1efc16ace9cf0f6215688d7a334b7d68255aad20aa9da87bf79f9cc72604a52c56398952157512f01e53b5ca  Perl-Tidy-20181120.tar.gz"