# Maintainer: huakim-tyk pkgname='libdpkg-parse-perl' pkgver='4.6.2' pkgrel='1' pkgdesc="Library for resolving shared library dependencies for dpkg-based systems" arch=('all') license=('PerlArtistic' 'GPL') depends=( 'libclass-accessor-perl' 'libclass-c3-perl' 'libparams-validate-perl' ) makedepends=( 'coreutils' 'findutils' 'make' 'libtest-simple-perl' 'libmodule-build-tiny-perl' ) checkdepends=() url='https://metacpan.org/release/Moose' _distdir='DPKG-Parse' source=("git+https://github.com/huakim-tyk/${_distdir}.git") sha512sums=('SKIP') build() { export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ PERL_AUTOINSTALL=--skipdeps \ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ MODULEBUILDRC=/dev/null cd "$srcdir/$_distdir" /usr/bin/perl Makefile.PL make } check() { cd "$srcdir/$_distdir" export PERL_MM_USE_DEFAULT=1 PERL5LIB="." make test } package() { cd "$srcdir/$_distdir" make install find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete }