python-smbc: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-16 18:47:40 +02:00
parent e19c96fc07
commit 61d93d0270
2 changed files with 12 additions and 11 deletions

View file

@ -1,11 +1,10 @@
# Template file for 'python-smbc' # Template file for 'python-smbc'
pkgname=python-smbc pkgname=python-smbc
version=1.0.15.5 version=1.0.15.5
revision=1 revision=2
wrksrc="pysmbc-${version}" wrksrc="pysmbc-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4" hostmakedepends="pkg-config python-devel python3-devel"
hostmakedepends="pkg-config python-devel python3.4-devel"
makedepends="${hostmakedepends/pkg-config/} samba-devel" makedepends="${hostmakedepends/pkg-config/} samba-devel"
pycompile_module="smbc" pycompile_module="smbc"
short_desc="Python2 bindings for libsmbclient" short_desc="Python2 bindings for libsmbclient"
@ -15,15 +14,16 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${PYPI_SITE}/p/pysmbc/pysmbc-${version}.tar.bz2" distfiles="${PYPI_SITE}/p/pysmbc/pysmbc-${version}.tar.bz2"
checksum=daf11350e0c2e120cc79cdca8d2058fccb9187dbf8697289ea7ee01ad388ba7d checksum=daf11350e0c2e120cc79cdca8d2058fccb9187dbf8697289ea7ee01ad388ba7d
pre_build() { python3-smbc_package() {
sed -i '/^#!/d' smbc/xattr.py
}
python3.4-smbc_package() {
pycompile_version="3.4"
pycompile_module="smbc" pycompile_module="smbc"
short_desc="${short_desc/Python2/Python3.4}" replaces="python3.4-smbc>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() { pkg_install() {
vmove usr/lib/python3.4 vmove usr/lib/python3*
} }
} }
python3.4-smbc_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-smbc>=${version}_${revision}"
}

1
srcpkgs/python3-smbc Symbolic link
View file

@ -0,0 +1 @@
python-smbc