mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 09:15:30 +03:00
35 lines
915 B
Text
35 lines
915 B
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=perl-tidy
|
|
pkgver=20250311
|
|
pkgrel=0
|
|
pkgdesc="Parses and beautifies perl source"
|
|
url="https://metacpan.org/dist/Perl-Tidy"
|
|
arch="noarch"
|
|
license="GPL-2.0-only"
|
|
depends="perl"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-$pkgver.tar.gz"
|
|
builddir="$srcdir/Perl-Tidy-$pkgver"
|
|
|
|
build() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
|
INSTALLDIRS=vendor \
|
|
NO_PACKLIST=1 \
|
|
NO_PERLLOCAL=1
|
|
make
|
|
}
|
|
|
|
check() {
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
684b6a8b56dbe9cdfa146acc13e37cf0c4ed50cf6e4ad617b82ef38d2177fc840e1152ee7e7bd701d155a770777702b429567782b2edeeac4ba133d3d6823db0 Perl-Tidy-20250311.tar.gz
|
|
"
|