# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
# Contributor: Firmicus <francois.archlinux.org>

pkgname=perl-tidy
pkgver=20260204
pkgrel=1
pkgdesc="Parses and beautifies perl source"
arch=('any')
url="https://search.cpan.org/dist/Perl-Tidy"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/S/SH/SHANCOCK/Perl-Tidy-$pkgver.tar.gz)
sha256sums=('56a1fc2f1f813e49026a0f284b9209a6b2824620993e7598c85b01c444ff0f64')

build() {
  cd  "${srcdir}"/Perl-Tidy-$pkgver

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "${srcdir}"/Perl-Tidy-$pkgver

  make install DESTDIR="${pkgdir}"
}
