summaryrefslogtreecommitdiffstats
path: root/abs/core/perl_modules/perl-authen-pam/PKGBUILD
blob: 09392e54c9eca9a200047387e106cb2ce93343df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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}"
}