python-pam: build python3 module too

This commit is contained in:
Enno Boland 2014-05-02 09:20:23 +02:00
parent 777c9223f8
commit 1c7b3b6c41
2 changed files with 12 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# Template file for 'python-pam' # Template file for 'python-pam'
pkgname=python-pam pkgname=python-pam
version=0.1.4 version=0.1.4
revision=1 revision=2
wrksrc="${pkgname/python-}-${version}" wrksrc="${pkgname/python-}-${version}"
build_style=python-module build_style=python-module
hostmakedepends="python python-distribute" hostmakedepends="python python-distribute"
@ -9,9 +9,18 @@ makedepends="python-devel pam-devel"
noarch=yes noarch=yes
pycompile_module="pam.py" pycompile_module="pam.py"
depends="python pam" depends="python pam"
short_desc="Python module for PAM authentication" short_desc="Python module for PAM authentication (Python2)"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://atlee.ca/software/pam/" homepage="http://atlee.ca/software/pam/"
license="MIT" license="MIT"
distfiles="http://pypi.python.org/packages/source/p/pam/${pkgname/python-/}-${version}.tar.gz" distfiles="http://pypi.python.org/packages/source/p/pam/${pkgname/python-/}-${version}.tar.gz"
checksum=35e88575afc37a2a5f96e20b22fa55d3e3213370d4ce640af1597c2a1dde226b checksum=35e88575afc37a2a5f96e20b22fa55d3e3213370d4ce640af1597c2a1dde226b
python3-pam_package() {
noarch=yes
depends="python3"
short_desc="${short_desc//Python2/Python3}"
pkg_install() {
vmove /usr/lib/python3.3
}
}

1
srcpkgs/python3-pam Symbolic link
View file

@ -0,0 +1 @@
python-pam