summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9636bbe539651740534d085ded7543a34eeba4b4 (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
# Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me)

pkgbase=python-pam
pkgname=("python-pam" "python2-pam")
pkgver=1.8.2
pkgrel=2
pkgdesc="Module that provides an authenticate function that allows the caller to authenticate a given username / password against the PAM system on Linux."
url="https://github.com/FirefighterBlu3/python-pam"
license=('MIT')
arch=('any')
depends=('pam')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://pypi.python.org/packages/source/${pkgbase:0:1}/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
sha256sums=('26efe4e79b869b10f97cd8c4a6bbb04a4e54d41186364e975b4108c9c071812c')

package_python-pam() {
  depends=('python')

	cd "$srcdir/${pkgbase}-${pkgver}"
	python setup.py install --root="$pkgdir"
}

package_python2-pam() {
  depends=('python2')

	cd "$srcdir/${pkgbase}-${pkgver}"
	python2 setup.py install --root="$pkgdir"
}