Date: Thursday, April 11, 2019 @ 10:44:51 Author: felixonmars Revision: 451072
addpkg: perl-ppi 1.236-1 Added: perl-ppi/ perl-ppi/repos/ perl-ppi/trunk/ perl-ppi/trunk/PKGBUILD ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Added: perl-ppi/trunk/PKGBUILD =================================================================== --- perl-ppi/trunk/PKGBUILD (rev 0) +++ perl-ppi/trunk/PKGBUILD 2019-04-11 10:44:51 UTC (rev 451072) @@ -0,0 +1,31 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=perl-ppi +pkgver=1.236 +pkgrel=1 +pkgdesc="Parse, Analyze and Manipulate Perl (without perl)" +arch=('any') +license=('PerlArtistic') +url="https://metacpan.org/release/PPI" +depends=('perl-clone' 'perl-io-string' 'perl-list-moreutils' 'perl-params-util' 'perl-task-weaken') +makedepends=('perl-class-inspector' 'perl-file-remove' 'perl-test-deep' 'perl-test-object' + 'perl-test-subcalls') +options=('!emptydirs') +source=("https://cpan.metacpan.org/authors/id/M/MI/MITHALDU/PPI-$pkgver.tar.gz") +sha512sums=('93a7f4059b12156bdcba77958c17841ab43d85cb0045d0c58d087d6e637e09e253a559cfe465d9d8699329098582759cb8381978c121b9661a9a755e919dece1') + +build() { + cd PPI-$pkgver + perl Makefile.PL INSTALLDIRS=vendor + make +} + +check() { + cd PPI-$pkgver + make test +} + +package() { + cd PPI-$pkgver + make DESTDIR="$pkgdir" install +}