# Generated by Xyne::Arch::CPAN 0.07 pkgname=perl-crypt-argon2 pkgver=0.020 pkgrel=9 pkgdesc="This module implements the Argon2 key derivation function." arch=('any') url="https://metacpan.org/pod/Crypt::Argon2" license=('PerlArtistic') source=("https://cpan.metacpan.org/authors/id/L/LE/LEONT/Crypt-Argon2-$pkgver.tar.gz") md5sums=('f416edbfd29302a28b5fe3ab0dac31d7') sha256sums=('16218c6fc96a9e3ee1322d9df87f635b5be117bc137ef9ce6d6d353404554a5a') depends=('perl') makedepends=('perl-module-build') options=(!emptydirs) build() { _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL') if [ ! -z "$_dir" ]; then cd $(dirname "$_dir") PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make else _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL') echo _dir is $_dir if [ ! -z "$_dir" ]; then cd "$(dirname $_dir)" PERL_MM_USE_DEFAULT=1 perl Build.PL INSTALLDIRS=vendor ./Build else echo "error: failed to detect build method for $pkgname" echo "you may be able to fix this by editing the PKGBUILD" return 1 fi fi } package() { echo "pkg starts here" _dir=$(find $srcdir -maxdepth 2 -type f -name 'Makefile.PL') if [ ! -z "$_dir" ]; then cd $(dirname "$_dir") make install DESTDIR="${pkgdir}" else _dir=$(find $srcdir -maxdepth 2 -type f -name 'Build.PL') if [ ! -z "$_dir" ]; then cd $(dirname "$_dir") ./Build install destdir=${pkgdir} else echo "error: failed to detect build method for $pkgname" echo "you may be able to fix this by editing the PKGBUILD" return 1 fi fi # remove perllocal.pod and .packlist find ${pkgdir} -name perllocal.pod -delete find ${pkgdir} -name .packlist -delete } # vim:set ts=2 sw=2 et: