summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73fa53c938708cc8e94aa7f8b0ea76cbc875bb12 (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
# Maintainer: Maikel Wever <maikelwever@gmail.com>

pkgname=python2-pypam
pkgver=1.0.6
pkgrel=1
pkgdesc="PAM module that runs the Python interpreter and so allows PAM modules to be written in Python."
arch=('x86_64')
url="http://pam-python.sourceforge.net/"
license=('AGPL3')
depends=('python2')
options=('!strip' '!emptydirs')
makedepends=('python2-sphinx')
source=(
    "https://downloads.sourceforge.net/project/pam-python/pam-python-1.0.6-1/pam-python-1.0.6.tar.gz"
)

md5sums=('2da730f15d62b10b87e1f18c21e16fb4')

build() {
  cd pam-python-${pkgver}
  sed -i'' 's|#!/usr/bin/python -W default|#!/usr/bin/python2 -W default|g' src/setup.py
  sed -i'' 's|#!/usr/bin/python -W default|#!/usr/bin/python2 -W default|g' src/test.py
  sed -i'' 's|LIBDIR ?= /lib/security|LIBDIR ?= /usr/lib/security|g' src/Makefile
  sed -i'' 's|sphinx-build|sphinx-build2|g' doc/Makefile

  make
}

package() {
  cd pam-python-${pkgver}
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: