python-smbc: add python3.4 subpkg
pysmbc is now python3 compatible.
This commit is contained in:
parent
1fa555c69e
commit
3576a325f7
2 changed files with 20 additions and 6 deletions
|
@ -1,17 +1,30 @@
|
|||
# Template file for 'python-smbc'
|
||||
pkgname=python-smbc
|
||||
version=1.0.15.3
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="pysmbc-${version}"
|
||||
build_style=python-module
|
||||
hostmakedepends="pkg-config python"
|
||||
makedepends="python-devel samba-devel"
|
||||
depends="python libsmbclient"
|
||||
replaces="pysmbc>=0"
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="pkg-config python-devel python3.4-devel"
|
||||
makedepends="${hostmakedepends/pkg-config/} samba-devel"
|
||||
pycompile_module="smbc"
|
||||
short_desc="Python2 bindings for libsmbclient"
|
||||
homepage="https://pypi.python.org/pypi/pysmbc/"
|
||||
license="GPL-2"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
update_pkgname="pysmbc"
|
||||
distfiles="http://pypi.python.org/packages/source/p/pysmbc/pysmbc-${version}.tar.bz2"
|
||||
distfiles="${PYPI_SITE}/p/pysmbc/pysmbc-${version}.tar.bz2"
|
||||
checksum=e12e397a4d23ddad8b7ef74abb9f8eef55fdf54d91f622bf5224a0a591b17854
|
||||
|
||||
post_install() {
|
||||
sed -i 's,#!/usr/bin/python,&3.4,' ${DESTDIR}/usr/lib/python3.4/site-packages/smbc/xattr.py
|
||||
}
|
||||
|
||||
python3.4-smbc_package() {
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="smbc"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3.4
|
||||
}
|
||||
}
|
||||
|
|
1
srcpkgs/python3.4-smbc
Symbolic link
1
srcpkgs/python3.4-smbc
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-smbc
|
Loading…
Reference in a new issue