diff options
Diffstat (limited to 'abs/core/perl_modules/perl-authen-pam')
-rw-r--r-- | abs/core/perl_modules/perl-authen-pam/PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/abs/core/perl_modules/perl-authen-pam/PKGBUILD b/abs/core/perl_modules/perl-authen-pam/PKGBUILD new file mode 100644 index 0000000..09392e5 --- /dev/null +++ b/abs/core/perl_modules/perl-authen-pam/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Jose Riha <jose1711 gmail com> +# Maintainer: Amish <contact at via dot aur> +# Contributor: Christian Hesse <mail@earthworm.de> +# Contributor: mr_nuub + +pkgname=perl-authen-pam +pkgver=0.16 +pkgrel=7 +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}" +} |