summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90d0a290d6860c169a3e8a8cf5d6987b0f4a0c0d (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
pkgname=pypam2-bzr
pkgver=17
pkgrel=1
arch=('any')
license=('GPL')
makedepends=('bzr')
depends=('pam' 'python2')
url="https://launchpad.net/ubuntu/quantal/+source/python-pam"
pkgdesc="A Python interface to the PAM library (configured to build for python2)"
conflicts=('pypam2')
provides=('pypam2')

_urel="quantal"
_bzrtrunk="http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/${_urel}/python-pam/${_urel}"
_bzrmod=python-pam

build()
{
	cd "${srcdir}"
	if [[ -d "$_bzrmod" ]]; then
		cd "$_bzrmod" && bzr --no-plugins pull "$_bzrtrunk" -r "$pkgver"
		msg "The local files are updated."
	else
		bzr --no-plugins branch "$_bzrtrunk" "$_bzrmod" -q -r "$pkgver"
		cd python-pam
	fi
	python2 setup.py build 
}

package()
{
	cd "${srcdir}/python-pam"
	python2 setup.py install --root="${pkgdir}"
}