# Maintainer: Jose Riha # Maintainer: Amish # Contributor: Christian Hesse # Contributor: mr_nuub pkgname=perl-authen-pam pkgver=0.16 pkgrel=11 pkgdesc="Perl interface to PAM library" _dist=Authen-PAM arch=('any') url="https://metacpan.org/release/${_dist}" license=('GPL' 'PerlArtistic') depends=('perl') options=('!emptydirs' purge) source=("https://cpan.metacpan.org/authors/id/N/NI/NIKIP/${_dist}-${pkgver}.tar.gz") md5sums=('7278471dfa694d9ef312bc92d7099af2') sha512sums=('2419698193697cb8c9ac3a1527a25abefffd9f15f4b492006081b2c8e7fe9e01e00f33e8fed6a07611b725b38ed92d9feb51b8ba61e4c23313cc5ff9ea1c05fd') prepare() { cd "${srcdir}/${_dist}-${pkgver}" sed -i -e 's#require "pam.cfg"#require "./pam.cfg"#g' Makefile.PL } build() { cd "${srcdir}/${_dist}-${pkgver}" unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps /usr/bin/perl Makefile.PL make } check() { cd "${srcdir}/${_dist}-${pkgver}" unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT export PERL_MM_USE_DEFAULT=1 echo skipped for now as tests asks for user password #make test } package() { cd "${srcdir}/${_dist}-${pkgver}" unset PERL5LIB PERL_MM_OPT PERL_LOCAL_LIB_ROOT make install INSTALLDIRS=vendor DESTDIR="${pkgdir}" }